Skip to content

Commit

Permalink
Improved test of SolutionFunction with Exodus
Browse files Browse the repository at this point in the history
Exodus file containing solution has multiple steps and spatially varying
field.  Aux variable is set from solution so we can directly check results.
Just reading a single specified time step for now, but this test will be used
for interpolation between steps.  ref #1017

r11186
  • Loading branch information
bwspenc authored and permcody committed Feb 14, 2014
1 parent 3f5ede1 commit d6fc61b
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 22 deletions.
Binary file modified test/tests/solution_function_test/cubesource.e
Binary file not shown.
Binary file not shown.
88 changes: 66 additions & 22 deletions test/tests/solution_function_test/solution_function_exodus_test.i
Original file line number Diff line number Diff line change
Expand Up @@ -3,63 +3,107 @@
[]

[Variables]
active = 'u'

[./u]
order = FIRST
family = LAGRANGE
initial_condition = 0.0
[../]
[]

[AuxVariables]
[./nn]
order = FIRST
family = LAGRANGE
[../]
# [./ne]
# order = FIRST
# family = LAGRANGE
# [../]
[./en]
order = CONSTANT
family = MONOMIAL
[../]
# [./ee]
# order = CONSTANT
# family = MONOMIAL
# [../]
[]

[Functions]
active = 'source'
[./source]
[./sourcen]
type = SolutionFunction
file_type = exodusII
mesh = cubesource.e
variable = Source
system = AuxSystem
variable = source_nodal
timestep = 2
# system = AuxSystem
[../]
# [./sourcee]
# type = SolutionFunction
# file_type = exodusII
# mesh = cubesource.e
# variable = source_element
# [../]
[]

[Kernels]
active = 'diff fvol'

[./diff]
type = Diffusion
variable = u
[../]
[./fvol]
type = UserForcingFunction
variable = u
function = source
[]

[AuxKernels]
[./nn]
type = FunctionAux
variable = nn
function = sourcen
[../]
# [./ne]
# type = FunctionAux
# variable = ne
# function = sourcee
# [../]
[./en]
type = FunctionAux
variable = en
function = sourcen
[../]
# [./ee]
# type = FunctionAux
# variable = ee
# function = sourcee
# [../]
[]

[BCs]
active = 'stuff'

[./stuff]
type = DirichletBC
variable = u
boundary = '1'
value = 0
boundary = '1 2'
value = 0.0
[../]

[]

#[Executioner]
# type = Steady
# petsc_options = '-snes'
# l_max_its = 800
# nl_rel_tol = 1e-10
#[]

[Executioner]
type = Steady
petsc_options = '-snes'
type = Transient
petsc_options = '-snes'
l_max_its = 800
nl_rel_tol = 1e-10
# petsc_options = '-snes_mf_operator'
# nl_rel_tol = 1e-10
num_steps = 50
end_time = 5
dt = 0.5
[]

[Output]
exodus = true
perf_log = true
[]


0 comments on commit d6fc61b

Please sign in to comment.