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.
Add tests for improvements to MultiAppCopyTransfer
(refs idaholab#13754)
- Loading branch information
1 parent
c9f290f
commit 6dacb2c
Showing
8 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
test/tests/transfers/multiapp_copy_transfer/aux_to_aux/from_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,34 @@ | ||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
[] | ||
|
||
[MultiApps/sub] | ||
type = TransientMultiApp | ||
input_files = sub.i | ||
[] | ||
|
||
[Transfers/from_sub] | ||
type = MultiAppCopyTransfer | ||
direction = from_multiapp | ||
multi_app = sub | ||
source_variable = aux | ||
variable = x | ||
[] | ||
|
||
[AuxVariables/x] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 1 | ||
[] | ||
|
||
[Outputs] | ||
execute_on = 'FINAL' | ||
exodus = true | ||
[] |
Binary file added
BIN
+25.7 KB
test/tests/transfers/multiapp_copy_transfer/aux_to_aux/gold/from_sub_out.e
Binary file not shown.
Binary file added
BIN
+19.8 KB
test/tests/transfers/multiapp_copy_transfer/aux_to_aux/gold/from_sub_out_sub0.e
Binary file not shown.
Binary file added
BIN
+25.7 KB
test/tests/transfers/multiapp_copy_transfer/aux_to_aux/gold/to_sub_out.e
Binary file not shown.
Binary file added
BIN
+19.8 KB
test/tests/transfers/multiapp_copy_transfer/aux_to_aux/gold/to_sub_out_sub0.e
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
test/tests/transfers/multiapp_copy_transfer/aux_to_aux/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,22 @@ | ||
[Problem] | ||
type = FEProblem | ||
solve = false | ||
[] | ||
|
||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
[] | ||
|
||
[AuxVariables/aux] | ||
initial_condition = 1980 | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
[] | ||
|
||
[Outputs] | ||
execute_on = 'FINAL' | ||
exodus = true | ||
[] |
44 changes: 44 additions & 0 deletions
44
test/tests/transfers/multiapp_copy_transfer/aux_to_aux/tests
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,44 @@ | ||
[Tests] | ||
issues = '#13754' | ||
design = 'MultiAppCopyTransfer.md' | ||
|
||
[transfer] | ||
requirement = "The system shall support the transfer of auxiliary field variables between identical meshes:" | ||
[from_sub_to_master] | ||
type = Exodiff | ||
input = from_sub.i | ||
exodiff = 'from_sub_out.e from_sub_out_sub0.e' | ||
|
||
detail = 'from a sub-application and' | ||
[] | ||
|
||
[to_sub_to_master] | ||
type = Exodiff | ||
input = to_sub.i | ||
exodiff = 'to_sub_out.e to_sub_out_sub0.e' | ||
|
||
detail = 'to a sub-application.' | ||
[] | ||
[] | ||
|
||
[errors] | ||
requirement = "The system shall error if a variable, during a direct copy of auxiliary field variables, does not exist" | ||
[error_from_sub_to_master] | ||
type = RunException | ||
input = from_sub.i | ||
cli_args = 'sub0:AuxVariables/active="" sub0:Outputs/exodus=false' | ||
expect_err = "The variable 'aux' does not exist." | ||
|
||
detail = "in the sub-application when transferring form it and" | ||
[] | ||
|
||
[error_to_sub_to_master] | ||
type = RunException | ||
input = to_sub.i | ||
cli_args = 'AuxVariables/active="" Outputs/exodus=false' | ||
expect_err = "The variable 'x' does not exist." | ||
|
||
detail = "in the master application when transferring for it." | ||
[] | ||
[] | ||
[] |
35 changes: 35 additions & 0 deletions
35
test/tests/transfers/multiapp_copy_transfer/aux_to_aux/to_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,35 @@ | ||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
[] | ||
|
||
[MultiApps/sub] | ||
type = TransientMultiApp | ||
input_files = sub.i | ||
[] | ||
|
||
[Transfers/from_sub] | ||
type = MultiAppCopyTransfer | ||
direction = to_multiapp | ||
multi_app = sub | ||
source_variable = x | ||
variable = aux | ||
[] | ||
|
||
[AuxVariables/x] | ||
initial_condition = 1949 | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 1 | ||
[] | ||
|
||
[Outputs] | ||
execute_on = 'FINAL' | ||
exodus = true | ||
[] |