Skip to content
Permalink
Browse files

Merge pull request #13465 from permcody/restart_tests

Restart tests reorg
  • Loading branch information...
lindsayad committed Jun 4, 2019
2 parents 0f54368 + 9226108 commit 50cc2856faf726848147b191f73fb83e3bf035b9
Showing with 199 additions and 1,698 deletions.
  1. +2 −2 framework/doc/content/source/kernels/BodyForce.md
  2. +24 −3 framework/doc/content/syntax/ICs/index.md
  3. 0 test/tests/{restart/restart → ics/from_exodus_solution}/elem_part1.i
  4. 0 test/tests/{restart/restart → ics/from_exodus_solution}/elem_part2.i
  5. BIN test/tests/{restart/restart → ics/from_exodus_solution}/gold/elem_part1_out.e
  6. BIN test/tests/{restart/restart → ics/from_exodus_solution}/gold/elem_part2_out.e
  7. BIN test/tests/{restart/restart → ics/from_exodus_solution}/gold/out_nodal_part1.e
  8. BIN test/tests/{restart/restart → ics/from_exodus_solution}/gold/out_nodal_var_restart.e
  9. 0 test/tests/{restart/restart → ics/from_exodus_solution}/nodal_part1.i
  10. 0 test/tests/{restart/restart/nodal_var_restart.i → ics/from_exodus_solution/nodal_part2.i}
  11. +42 −0 test/tests/ics/from_exodus_solution/tests
  12. +0 −61 test/tests/restart/restart/tests
  13. +2 −3 test/tests/restart/{restart/xda_restart_part2.i → restart_add_variable/add_variable_restart.i}
  14. BIN ...art/{restart/gold/out_xda_restart_part2.e → restart_add_variable/gold/add_variable_restart_out.e}
  15. BIN .../{restart/gold/out_xda_restart_part1.e → restart_add_variable/gold/transient_with_stateful_out.e}
  16. +21 −0 test/tests/restart/restart_add_variable/tests
  17. +0 −1 test/tests/restart/{restart/xda_restart_part1.i → restart_add_variable/transient_with_stateful.i}
  18. +0 −2 test/tests/restart/restart_refined_mesh/README
  19. +0 −797 test/tests/restart/restart_refined_mesh/bad1.i
  20. +0 −810 test/tests/restart/restart_refined_mesh/bad2.i
  21. BIN ...estart/gold/out_part2.e → restart_steady_from_transient/gold/steady_from_transient_restart_out.e}
  22. BIN test/tests/restart/{restart/gold/out_part1.e → restart_steady_from_transient/gold/transient_out.e}
  23. +2 −7 test/tests/restart/{restart/part2.i → restart_steady_from_transient/steady_from_transient_restart.i}
  24. +21 −0 test/tests/restart/restart_steady_from_transient/tests
  25. +0 −1 test/tests/restart/{restart/part1.i → restart_steady_from_transient/transient.i}
  26. BIN test/tests/restart/restart_transient_from_steady/gold/restart_from_steady_out.e
  27. BIN test/tests/restart/restart_transient_from_steady/gold/steady_out.e
  28. +11 −11 .../restart_diffusion_transient_from_steady.i → restart_transient_from_steady/restart_from_steady.i}
  29. +52 −0 test/tests/restart/restart_transient_from_steady/steady.i
  30. +22 −0 test/tests/restart/restart_transient_from_steady/tests
@@ -35,9 +35,9 @@ parameter is equivalent to setting its value to unity.
## Example Syntax

The case below demonstrates the use of `BodyForce` where the force term is
supplied solely through the constant value $c$ (denoted by `value`):
supplied based upon a function form:

!listing test/tests/restart/restart_diffusion/restart_diffusion_transient_from_steady.i block=Kernels
!listing test/tests/kernels/block_kernel/block_kernel_test.i block=Kernels

!syntax parameters /Kernels/BodyForce

@@ -1,10 +1,31 @@
<!-- MOOSE Documentation Stub: Remove this when content is added. -->

# ICs System

## Description

The `ICs` block within an input file is utilized to define the initial (starting) conditions for
the variables within your simulation. Initial conditions may be applied to both the "unknowns"
(nonlinear or scalar variables) or auxiliary variables. The interface for defining an Initial
Condition is to support a function that returns a value at a "Point", and optionally higher order
derivatives at that point (e.g. Gradient, Second).

## ICs Block

The preferred syntax is to create a top-level "ICs" block with subblocks defining the initial
conditions for one or more variables.

!listing function_ic/parsed_function.i block=ICs

## ICs from an Exodus File

MOOSE contains a shortcut syntax for reading solutions from an Exodus file for the initial
condition from right within the [Variables](Variables/index.html). The name of the variable
and the time step from which to read the solution must be supplied.

!listing from_exodus_solution/nodal_part2.i block=Variables


!syntax list /ICs objects=True actions=False subsystems=False

!syntax list /ICs objects=False actions=False subsystems=True

!syntax list /ICs objects=False actions=True subsystems=False

File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,42 @@
[Tests]
design = "syntax/ICs/index.md"
issues = '#13438'
[nodal_var_1]
type = 'Exodiff'
input = 'nodal_part1.i'
exodiff = 'out_nodal_part1.e'

requirement = 'The system shall write output files containing nodal solutions in ExodusII format suitable for restart.'
[]
[nodal_var_2]
type = 'Exodiff'
input = 'nodal_part2.i'
exodiff = 'out_nodal_var_restart.e'
max_parallel = 1
prereq = 'nodal_var_1'
abs_zero = 1e-9

requirement = 'The system shall be able to populate nodal initial conditions from a previous solution file in ExodusII format.'
[]

[elem_var_1]
type = 'Exodiff'
input = 'elem_part1.i'
exodiff = 'elem_part1_out.e'
use_old_floor = true
abs_zero = 1e-09

requirement = 'The system shall write output files containing elemental solutions in ExodusII format suitable for restart.'
[]
[elem_var_2]
type = 'Exodiff'
input = 'elem_part2.i'
exodiff = 'elem_part2_out.e'
use_old_floor = true
abs_zero = 1e-09
max_parallel = 1
prereq = 'elem_var_1'

requirement = 'The system shall be able to populate elemental initial conditions from a previous solution file in ExodusII format.'
[]
[]

This file was deleted.

@@ -5,7 +5,7 @@
#

[Mesh]
file = out_xda_restart_part1.e
file = transient_with_stateful_out.e
[]

[Functions]
@@ -118,7 +118,6 @@
[]

[Outputs]
file_base = out_xda_restart_part2
[./out]
type = Exodus
elemental_as_nodal = true
@@ -127,5 +126,5 @@
[]

[Problem]
restart_file_base = out_xda_restart_part1_cp/0005
restart_file_base = transient_with_stateful_out_cp/LATEST
[]
@@ -0,0 +1,21 @@
[Tests]
design = 'restart_recover.md'
[./transient_with_stateful]
type = 'Exodiff'
input = 'transient_with_stateful.i'
exodiff = 'transient_with_stateful_out.e'

requirement = 'The systen shall support running and saving off a transient solution with stateful material properties for a restart test.'
issues = '#13438'
[../]

[./add_variable_restart]
type = 'Exodiff'
input = 'add_variable_restart.i'
exodiff = 'add_variable_restart_out.e'
prereq = 'transient_with_stateful'

requirement = 'The systen shall support restart with a solution containing only a subset of the variables in the restart simulation.'
issues = '#13438'
[../]
[]
@@ -91,7 +91,6 @@
[]

[Outputs]
file_base = out_xda_restart_part1
checkpoint = true
[./out]
type = Exodus

This file was deleted.

0 comments on commit 50cc285

Please sign in to comment.
You can’t perform that action at this time.