Skip to content

Commit

Permalink
Add a test for source displaced mesh where the displacement is pretty…
Browse files Browse the repository at this point in the history
… large to really test things

refs idaholab#3372 idaholab#1868
  • Loading branch information
GiudGiud authored and MengnanLi91 committed Feb 21, 2023
1 parent 9dbcaa0 commit 82d9934
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 0 deletions.
@@ -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 not shown.
@@ -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'
[]
[]
@@ -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."
[]
[]

0 comments on commit 82d9934

Please sign in to comment.