forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for source displaced mesh where the displacement is pretty…
… large to really test things refs idaholab#3372 idaholab#1868
- Loading branch information
1 parent
a43044a
commit 9524a8c
Showing
4 changed files
with
153 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
xmin = 0 | ||
ymin = 0 | ||
xmax = 0.2 | ||
ymax = 0.5 | ||
nx = 5 | ||
ny = 15 | ||
elem_type = QUAD4 | ||
[] | ||
displacements = 'disp_x disp_y' | ||
[] | ||
|
||
|
||
[Problem] | ||
kernel_coverage_check = false | ||
skip_nl_system_check = true | ||
[] | ||
|
||
[AuxVariables] | ||
[solid_indicator] | ||
initial_condition = 1.0 | ||
[] | ||
[disp_x] | ||
[] | ||
[disp_y] | ||
[] | ||
[] | ||
|
||
[AuxKernels] | ||
[move] | ||
type = FunctionAux | ||
variable = disp_x | ||
function = 't' | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 1 | ||
solve_type = 'NEWTON' | ||
petsc_options_iname = '-pc_type -pc_factor_mat_solver_type -pc_factor_shift_type' | ||
petsc_options_value = 'lu superlu_dist NONZERO' | ||
nl_max_its = 40 | ||
l_max_its = 15 | ||
line_search = 'none' | ||
nl_abs_tol = 1e-5 | ||
nl_rel_tol = 1e-4 | ||
automatic_scaling = true | ||
[] | ||
|
||
[Outputs] | ||
[out] | ||
type = Exodus | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[] | ||
[] |
Binary file added
BIN
+211 KB
test/tests/transfers/general_field/shape_evaluation/displaced/gold/parent_out.e
Binary file not shown.
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,84 @@ | ||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
xmin = -0.5 | ||
xmax = 1.5 | ||
ymin = 0.0 | ||
ymax = 0.5 | ||
nx = 50 | ||
ny = 3 | ||
elem_type = QUAD9 | ||
[] | ||
[] | ||
|
||
[Problem] | ||
kernel_coverage_check = false | ||
skip_nl_system_check = true | ||
solve = false | ||
verbose_multiapps = true | ||
[] | ||
|
||
[AuxVariables] | ||
[indicator_const_mon] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
initial_condition = 0.0 | ||
[] | ||
[indicator_nodal] | ||
initial_condition = 0.0 | ||
[] | ||
[indicator_higher_order] | ||
family = MONOMIAL | ||
order = THIRD | ||
initial_condition = 0.0 | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
dt = 0.05 | ||
num_steps = 10 | ||
[] | ||
|
||
[Outputs] | ||
[out] | ||
type = Exodus | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[] | ||
[] | ||
|
||
[MultiApps] | ||
[solid_domain] | ||
type = TransientMultiApp | ||
input_files = child.i | ||
execute_on = 'initial timestep_begin' | ||
[] | ||
[] | ||
|
||
[Transfers] | ||
[pull_indicator_constmon] | ||
type = MultiAppGeneralFieldShapeEvaluationTransfer | ||
from_multi_app = solid_domain | ||
source_variable = solid_indicator | ||
variable = indicator_const_mon | ||
displaced_source_mesh = true | ||
execute_on = 'initial timestep_begin' | ||
[] | ||
[pull_indicator_nodal] | ||
type = MultiAppGeneralFieldShapeEvaluationTransfer | ||
from_multi_app = solid_domain | ||
source_variable = solid_indicator | ||
variable = indicator_nodal | ||
displaced_source_mesh = true | ||
execute_on = 'initial timestep_begin' | ||
[] | ||
[pull_indicator_higher] | ||
type = MultiAppGeneralFieldShapeEvaluationTransfer | ||
from_multi_app = solid_domain | ||
source_variable = solid_indicator | ||
variable = indicator_higher_order | ||
displaced_source_mesh = true | ||
execute_on = 'initial timestep_begin' | ||
[] | ||
[] |
10 changes: 10 additions & 0 deletions
10
test/tests/transfers/general_field/shape_evaluation/displaced/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,10 @@ | ||
[Tests] | ||
issues = '#16427 #16429' | ||
design = 'transfers/MultiAppGeneralFieldShapeEvaluationTransfer.md' | ||
[same_var_type] | ||
type = 'Exodiff' | ||
input = 'parent.i' | ||
exodiff = 'parent_out.e' | ||
requirement = "The system shall be able to transfer from a source application that is being displaced." | ||
[] | ||
[] |