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.
Fix high-order shape functions in Proj.Transfer
refs idaholab#1913
- Loading branch information
Showing
6 changed files
with
173 additions
and
7 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
+37.8 KB
test/tests/transfers/multiapp_projection_transfer/gold/high_order_master_out.e
Binary file not shown.
Binary file added
BIN
+32.9 KB
test/tests/transfers/multiapp_projection_transfer/gold/high_order_master_out_sub0.e
Binary file not shown.
95 changes: 95 additions & 0 deletions
95
test/tests/transfers/multiapp_projection_transfer/high_order_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,95 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 4 | ||
ny = 4 | ||
[] | ||
|
||
[Functions] | ||
[./test_function] | ||
type = ParsedFunction | ||
value = '2.5*x^2 + 0.75*y^2 + 0.15*x*y' | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./from_sub] | ||
family = monomial | ||
order = first | ||
[../] | ||
[./test_var] | ||
family = monomial | ||
order = first | ||
[./InitialCondition] | ||
type = FunctionIC | ||
function = test_function | ||
[../] | ||
[../] | ||
[] | ||
|
||
[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] | ||
type = Steady | ||
solve_type = PJFNK | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
print_linear_residuals = true | ||
[] | ||
|
||
[MultiApps] | ||
[./sub] | ||
type = FullSolveMultiApp | ||
app_type = MooseTestApp | ||
execute_on = initial | ||
positions = '0.0 0.0 0.0' | ||
input_files = high_order_sub.i | ||
[../] | ||
[] | ||
|
||
[Transfers] | ||
[./from] | ||
type = MultiAppProjectionTransfer | ||
direction = from_multiapp | ||
execute_on = same_as_multiapp | ||
multi_app = sub | ||
source_variable = test_var | ||
variable = from_sub | ||
[../] | ||
[./to] | ||
type = MultiAppProjectionTransfer | ||
direction = to_multiapp | ||
execute_on = same_as_multiapp | ||
multi_app = sub | ||
source_variable = test_var | ||
variable = from_master | ||
[../] | ||
[] | ||
|
66 changes: 66 additions & 0 deletions
66
test/tests/transfers/multiapp_projection_transfer/high_order_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,66 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 4 | ||
ny = 4 | ||
[] | ||
|
||
[Functions] | ||
[./test_function] | ||
type = ParsedFunction | ||
value = '2.5*x^2 + 0.75*y^2 + 0.15*x*y' | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./from_master] | ||
family = monomial | ||
order = first | ||
[../] | ||
[./test_var] | ||
family = monomial | ||
order = first | ||
[./InitialCondition] | ||
type = FunctionIC | ||
function = test_function | ||
[../] | ||
[../] | ||
[] | ||
|
||
[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] | ||
type = Steady | ||
solve_type = PJFNK | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
print_linear_residuals = 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