forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request idaholab#8286 from permcody/bad_subcycle
Stateful materials fixup with subcycling
- Loading branch information
Showing
9 changed files
with
127 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ts/multiapps/stateful_material_sub_cycling/gold/material_sub_app_test_master_out_sub0.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
time,matl_integral,x | ||
0,0,0 | ||
1,1,0 | ||
2,2,0 | ||
3,4,0 | ||
4,8,0 | ||
5,16,0 | ||
6,32,0 | ||
7,64,0 | ||
8,128,0 | ||
9,256,0 | ||
10,512,0 | ||
|
33 changes: 33 additions & 0 deletions
33
test/tests/multiapps/stateful_material_sub_cycling/material_sub_app_test_master.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[Mesh] #dummy | ||
type = GeneratedMesh | ||
dim = 2 | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
start_time = 0.0 | ||
dt = 1 | ||
end_time = 10.0 | ||
[] | ||
|
||
[MultiApps] | ||
[./sub] | ||
type = TransientMultiApp | ||
app_type = MooseTestApp | ||
execute_on = timestep_end | ||
input_files = material_sub_app_test_sub.i | ||
|
||
# Test that stateful material properties | ||
# are updated properly with subcycling | ||
sub_cycling = true | ||
[../] | ||
[] | ||
|
||
[Outputs] | ||
csv = false | ||
exodus = false | ||
[] |
53 changes: 53 additions & 0 deletions
53
test/tests/multiapps/stateful_material_sub_cycling/material_sub_app_test_sub.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[GlobalParams] | ||
dim = 2 | ||
[] | ||
|
||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 10 | ||
ny = 10 | ||
[] | ||
|
||
[AuxVariables] | ||
[./x] | ||
family = SCALAR | ||
order = FIRST | ||
[../] | ||
[] | ||
|
||
[AuxScalarKernels] | ||
[./const_x] | ||
type = ConstantScalarAux | ||
variable = x | ||
value = 0 | ||
[../] | ||
[] | ||
|
||
[Materials] | ||
[./stateful] | ||
type = StatefulMaterial | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
[] | ||
|
||
[Postprocessors] | ||
[./matl_integral] | ||
type = ElementIntegralMaterialProperty | ||
mat_prop = diffusivity | ||
execute_on = timestep_end | ||
outputs = 'console csv' | ||
[../] | ||
[] | ||
|
||
[Outputs] | ||
csv = true | ||
exodus = true | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Tests] | ||
[./test_stateful_subcycle] | ||
type = 'CSVDiff' | ||
input = 'material_sub_app_test_master.i' | ||
csvdiff = 'material_sub_app_test_master_out_sub0.csv' | ||
[../] | ||
[] |
4 changes: 2 additions & 2 deletions
4
test/tests/restart/restart_subapp_not_master/two_step_solve_sub_restart.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters