Skip to content

Commit

Permalink
Created individual directories for individual pps.
Browse files Browse the repository at this point in the history
This is for issue #2281.
  • Loading branch information
Tami Grimmett committed Feb 18, 2015
1 parent 3ad9dc2 commit 8309530
Show file tree
Hide file tree
Showing 28 changed files with 1,441 additions and 0 deletions.
134 changes: 134 additions & 0 deletions test/tests/postprocessors/avg_nodal_var_value/avg_nodal_var_value.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
[Mesh]
file = square-2x2-nodeids.e
[]

[Variables]
active = 'u v'

[./u]
order = SECOND
family = LAGRANGE
[../]

[./v]
order = SECOND
family = LAGRANGE
[../]
[]

[Functions]
active = 'force_fn exact_fn left_bc'

[./force_fn]
type = ParsedFunction
value = '1-x*x+2*t'
[../]

[./exact_fn]
type = ParsedFunction
value = '(1-x*x)*t'
[../]

[./left_bc]
type = ParsedFunction
value = t
[../]
[]

[Kernels]
active = '
time_u diff_u ffn_u
time_v diff_v'

[./time_u]
type = TimeDerivative
variable = u
[../]

[./diff_u]
type = Diffusion
variable = u
[../]

[./ffn_u]
type = UserForcingFunction
variable = u
function = force_fn
[../]

[./time_v]
type = TimeDerivative
variable = v
[../]

[./diff_v]
type = Diffusion
variable = v
[../]
[]

[BCs]
active = 'all_u left_v right_v'

[./all_u]
type = FunctionDirichletBC
variable = u
boundary = '1'
function = exact_fn
[../]

[./left_v]
type = FunctionDirichletBC
variable = v
boundary = '3'
function = left_bc
[../]

[./right_v]
type = DirichletBC
variable = v
boundary = '2'
value = 0
[../]
[]

[Postprocessors]
[./l2]
type = ElementL2Error
variable = u
function = exact_fn
[../]

[./node1]
type = AverageNodalVariableValue
variable = u
boundary = 10
[../]

[./node4]
type = AverageNodalVariableValue
variable = v
boundary = 13
[../]
[]

[Executioner]
type = Transient

# Preconditioned JFNK (default)
solve_type = 'PJFNK'

dt = 0.1
start_time = 0
end_time = 1
[]

[Outputs]
file_base = out_avg_nodal_var_value
exodus = true
[./console]
type = Console
perf_log = true
output_on = 'failed nonlinear linear timestep_end'
[../]
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
[Mesh]
file = square-2x2-nodeids.e
[]

[Variables]
active = 'u v'

[./u]
order = SECOND
family = LAGRANGE
[../]

[./v]
order = SECOND
family = LAGRANGE
[../]
[]

[Functions]
active = 'force_fn exact_fn left_bc'

[./force_fn]
type = ParsedFunction
value = '1-x*x+2*t'
[../]

[./exact_fn]
type = ParsedFunction
value = '(1-x*x)*t'
[../]

[./left_bc]
type = ParsedFunction
value = t
[../]
[]

[Kernels]
active = '
time_u diff_u ffn_u
time_v diff_v'

[./time_u]
type = TimeDerivative
variable = u
[../]

[./diff_u]
type = Diffusion
variable = u
[../]

[./ffn_u]
type = UserForcingFunction
variable = u
function = force_fn
[../]

[./time_v]
type = TimeDerivative
variable = v
[../]

[./diff_v]
type = Diffusion
variable = v
[../]
[]

[BCs]
active = 'all_u left_v right_v'

[./all_u]
type = FunctionDirichletBC
variable = u
boundary = '1'
function = exact_fn
[../]

[./left_v]
type = FunctionDirichletBC
variable = v
boundary = '3'
function = left_bc
[../]

[./right_v]
type = DirichletBC
variable = v
boundary = '2'
value = 0
[../]
[]

[Postprocessors]
[./l2]
type = ElementL2Error
variable = u
function = exact_fn
[../]

[./node1]
type = AverageNodalVariableValue
variable = u
boundary = 10
execute_on = TIMESTEP_BEGIN
[../]

[./node4]
type = AverageNodalVariableValue
variable = v
boundary = 13
[../]
[]

[Executioner]
type = Transient

# Preconditioned JFNK (default)
solve_type = 'PJFNK'

dt = 0.1
start_time = 0
end_time = 1
[]

[Outputs]
file_base = out_avg_nodal_var_value_ts_begin
exodus = true
[./console]
type = Console
perf_log = true
output_on = 'failed nonlinear linear timestep_end'
[../]
[]
Binary file not shown.
Binary file not shown.
13 changes: 13 additions & 0 deletions test/tests/postprocessors/avg_nodal_var_value/tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Tests]
[./test_avg_nodal_var_value]
type = 'Exodiff'
input = 'avg_nodal_var_value.i'
exodiff = 'out_avg_nodal_var_value.e'
[../]

[./test_avg_nodal_var_value_ts_begin]
type = 'Exodiff'
input = 'avg_nodal_var_value_ts_begin.i'
exodiff = 'out_avg_nodal_var_value_ts_begin.e'
[../]
[]
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 8309530

Please sign in to comment.