-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 #1 from friedmud/mesh_function_transfer_displaced_…
…mesh_3372 Adding tests for displaced mesh with MeshFunctionTransfer
- Loading branch information
Showing
13 changed files
with
243 additions
and
10 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
Binary file added
BIN
+42.3 KB
test/tests/transfers/multiapp_mesh_function_transfer/gold/master_source_displaced_out.e
Binary file not shown.
Binary file modified
BIN
+13.6 KB
(150%)
test/tests/transfers/multiapp_mesh_function_transfer/gold/tosub_master_out_sub0.e
Binary file not shown.
Binary file modified
BIN
+13.6 KB
(150%)
test/tests/transfers/multiapp_mesh_function_transfer/gold/tosub_master_out_sub1.e
Binary file not shown.
Binary file modified
BIN
+13.6 KB
(150%)
test/tests/transfers/multiapp_mesh_function_transfer/gold/tosub_master_out_sub2.e
Binary file not shown.
Binary file added
BIN
+41.9 KB
...s/transfers/multiapp_mesh_function_transfer/gold/tosub_master_target_displaced_out_sub0.e
Binary file not shown.
Binary file added
BIN
+41.9 KB
...s/transfers/multiapp_mesh_function_transfer/gold/tosub_master_target_displaced_out_sub1.e
Binary file not shown.
Binary file added
BIN
+41.9 KB
...s/transfers/multiapp_mesh_function_transfer/gold/tosub_master_target_displaced_out_sub2.e
Binary file not shown.
93 changes: 93 additions & 0 deletions
93
test/tests/transfers/multiapp_mesh_function_transfer/master_source_displaced.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,93 @@ | ||
[Mesh] | ||
# The MultiAppMeshFunctionTransfer doesn't work with ParallelMesh. | ||
# 2145 for more information. | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 10 | ||
ny = 10 | ||
distribution = serial | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./transferred_u] | ||
[../] | ||
[./elemental_transferred_u] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = Diffusion | ||
variable = u | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./left] | ||
type = DirichletBC | ||
variable = u | ||
boundary = left | ||
value = 0 | ||
[../] | ||
[./right] | ||
type = DirichletBC | ||
variable = u | ||
boundary = right | ||
value = 1 | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
# Preconditioned JFNK (default) | ||
type = Transient | ||
num_steps = 1 | ||
dt = 1 | ||
solve_type = PJFNK | ||
petsc_options_iname = '-pc_type -pc_hypre_type' | ||
petsc_options_value = 'hypre boomeramg' | ||
[] | ||
|
||
[Outputs] | ||
output_initial = true | ||
exodus = true | ||
[./console] | ||
type = Console | ||
perf_log = true | ||
linear_residuals = true | ||
[../] | ||
[] | ||
|
||
[MultiApps] | ||
[./sub] | ||
positions = '.099 .099 0 .599 .599 0 0.599 0.099 0' | ||
type = TransientMultiApp | ||
app_type = MooseTestApp | ||
input_files = sub.i | ||
[../] | ||
[] | ||
|
||
[Transfers] | ||
[./from_sub] | ||
source_variable = sub_u | ||
direction = from_multiapp | ||
variable = transferred_u | ||
type = MultiAppMeshFunctionTransfer | ||
multi_app = sub | ||
displaced_source_mesh = true | ||
[../] | ||
[./elemental_from_sub] | ||
source_variable = sub_u | ||
direction = from_multiapp | ||
variable = elemental_transferred_u | ||
type = MultiAppMeshFunctionTransfer | ||
multi_app = sub | ||
displaced_source_mesh = 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
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
92 changes: 92 additions & 0 deletions
92
test/tests/transfers/multiapp_mesh_function_transfer/tosub_master_target_displaced.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,92 @@ | ||
[Mesh] | ||
# The MultiAppMeshFunctionTransfer doesn't work with ParallelMesh. | ||
# To start debugging this issue, you can add 'error_on_miss = true' | ||
# to the 'to_sub' and 'elemental_to_sub' blocks below, and you should | ||
# get an error message like: | ||
# Point not found! (x,y,z)=( 0.62, 0.6, 0) | ||
# 2145. | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 10 | ||
ny = 10 | ||
distribution = serial | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = Diffusion | ||
variable = u | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./left] | ||
type = DirichletBC | ||
variable = u | ||
boundary = left | ||
value = 0 | ||
[../] | ||
[./right] | ||
type = DirichletBC | ||
variable = u | ||
boundary = right | ||
value = 1 | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
# Preconditioned JFNK (default) | ||
type = Transient | ||
num_steps = 1 | ||
dt = 1 | ||
solve_type = PJFNK | ||
petsc_options_iname = '-pc_type -pc_hypre_type' | ||
petsc_options_value = 'hypre boomeramg' | ||
[] | ||
|
||
[Outputs] | ||
output_initial = true | ||
exodus = true | ||
[./console] | ||
type = Console | ||
perf_log = true | ||
linear_residuals = true | ||
[../] | ||
[] | ||
|
||
[MultiApps] | ||
[./sub] | ||
positions = '.1 .1 0 0.6 0.6 0 0.6 0.1 0' | ||
type = TransientMultiApp | ||
app_type = MooseTestApp | ||
input_files = tosub_sub.i | ||
execute_on = timestep | ||
[../] | ||
[] | ||
|
||
[Transfers] | ||
[./to_sub] | ||
source_variable = u | ||
direction = to_multiapp | ||
variable = transferred_u | ||
execute_on = timestep | ||
type = MultiAppMeshFunctionTransfer | ||
multi_app = sub | ||
displaced_target_mesh = true | ||
[../] | ||
[./elemental_to_sub] | ||
source_variable = u | ||
direction = to_multiapp | ||
variable = elemental_transferred_u | ||
execute_on = timestep | ||
type = MultiAppMeshFunctionTransfer | ||
multi_app = sub | ||
displaced_target_mesh = 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