diff --git a/test/tests/unit/auxkernels/gold/mug.e b/test/tests/unit/auxkernels/gold/mug.e deleted file mode 100644 index 6770d8dd..00000000 Binary files a/test/tests/unit/auxkernels/gold/mug.e and /dev/null differ diff --git a/test/tests/unit/auxkernels/lagrange_vector_variable_from_components_aux.i b/test/tests/unit/auxkernels/lagrange_vector_variable_from_components_aux.i index 843bd453..9fbeb202 100644 --- a/test/tests/unit/auxkernels/lagrange_vector_variable_from_components_aux.i +++ b/test/tests/unit/auxkernels/lagrange_vector_variable_from_components_aux.i @@ -1,14 +1,13 @@ [Mesh] - type = CoupledMFEMMesh - file = gold/mug.e + type = GeneratedMesh + nx = 5 + ny = 5 + nz = 5 dim = 3 [] -[Variables] - [moose_diffused] - family = LAGRANGE - order = FIRST - [] +[Problem] + solve = false [] [AuxVariables] @@ -49,13 +48,6 @@ [] [] -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - [Functions] [function_target_x] type = ParsedFunction @@ -106,22 +98,6 @@ [] [] -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - [Postprocessors] [element_l2_difference] type = ElementVectorL2Difference diff --git a/test/tests/unit/auxkernels/lagrange_vector_variable_to_components_aux.i b/test/tests/unit/auxkernels/lagrange_vector_variable_to_components_aux.i index bc1f97ac..6466378c 100644 --- a/test/tests/unit/auxkernels/lagrange_vector_variable_to_components_aux.i +++ b/test/tests/unit/auxkernels/lagrange_vector_variable_to_components_aux.i @@ -1,14 +1,13 @@ [Mesh] - type = CoupledMFEMMesh - file = gold/mug.e + type = GeneratedMesh + nx = 5 + ny = 5 + nz = 5 dim = 3 [] -[Variables] - [moose_diffused] - family = LAGRANGE - order = FIRST - [] +[Problem] + solve = false [] [AuxVariables] @@ -104,13 +103,6 @@ [] [] -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - [Postprocessors] # 4. Compare test and target components. Should match! [compare_x] @@ -132,22 +124,6 @@ [] [] -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - [Executioner] type = Transient dt = 1.0 diff --git a/test/tests/unit/auxkernels/monomial_vector_variable_from_components_aux.i b/test/tests/unit/auxkernels/monomial_vector_variable_from_components_aux.i index 1215cfda..463b9226 100644 --- a/test/tests/unit/auxkernels/monomial_vector_variable_from_components_aux.i +++ b/test/tests/unit/auxkernels/monomial_vector_variable_from_components_aux.i @@ -1,14 +1,13 @@ [Mesh] - type = CoupledMFEMMesh - file = gold/mug.e + type = GeneratedMesh + nx = 5 + ny = 5 + nz = 5 dim = 3 [] -[Variables] - [moose_diffused] - family = LAGRANGE - order = FIRST - [] +[Problem] + solve = false [] [AuxVariables] @@ -49,13 +48,6 @@ [] [] -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - [Functions] [function_target_x] type = ParsedFunction @@ -106,22 +98,6 @@ [] [] -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - [Postprocessors] [element_l2_difference] type = ElementVectorL2Difference diff --git a/test/tests/unit/auxkernels/monomial_vector_variable_to_components_aux.i b/test/tests/unit/auxkernels/monomial_vector_variable_to_components_aux.i index 70991523..84b50ff1 100644 --- a/test/tests/unit/auxkernels/monomial_vector_variable_to_components_aux.i +++ b/test/tests/unit/auxkernels/monomial_vector_variable_to_components_aux.i @@ -1,14 +1,13 @@ [Mesh] - type = CoupledMFEMMesh - file = gold/mug.e + type = GeneratedMesh + nx = 5 + ny = 5 + nz = 5 dim = 3 [] -[Variables] - [moose_diffused] - family = LAGRANGE - order = FIRST - [] +[Problem] + solve = false [] [AuxVariables] @@ -104,13 +103,6 @@ [] [] -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - [Postprocessors] # 4. Compare test and target components. Should match! [compare_x] @@ -132,22 +124,6 @@ [] [] -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - [Executioner] type = Transient dt = 1.0 diff --git a/test/tests/unit/postprocessors/gold/lagrange_vector_l2_difference_out.csv b/test/tests/unit/postprocessors/gold/lagrange_vector_l2_difference_out.csv index 373a60ca..90ca55b3 100644 --- a/test/tests/unit/postprocessors/gold/lagrange_vector_l2_difference_out.csv +++ b/test/tests/unit/postprocessors/gold/lagrange_vector_l2_difference_out.csv @@ -1,3 +1,3 @@ time,primary_secondary_difference,primary_tertiary_difference 0,0,0 -1,1148.411411755,0 +1,99.498743710662,0 diff --git a/test/tests/unit/postprocessors/gold/monomial_vector_l2_difference_out.csv b/test/tests/unit/postprocessors/gold/monomial_vector_l2_difference_out.csv index dcd53324..90ca55b3 100644 --- a/test/tests/unit/postprocessors/gold/monomial_vector_l2_difference_out.csv +++ b/test/tests/unit/postprocessors/gold/monomial_vector_l2_difference_out.csv @@ -1,3 +1,3 @@ time,primary_secondary_difference,primary_tertiary_difference 0,0,0 -1,1146.8877748405,0 +1,99.498743710662,0 diff --git a/test/tests/unit/postprocessors/gold/mug.e b/test/tests/unit/postprocessors/gold/mug.e deleted file mode 100644 index 6770d8dd..00000000 Binary files a/test/tests/unit/postprocessors/gold/mug.e and /dev/null differ diff --git a/test/tests/unit/postprocessors/lagrange_vector_l2_difference.i b/test/tests/unit/postprocessors/lagrange_vector_l2_difference.i index ced0b57e..af0defd5 100644 --- a/test/tests/unit/postprocessors/lagrange_vector_l2_difference.i +++ b/test/tests/unit/postprocessors/lagrange_vector_l2_difference.i @@ -1,14 +1,13 @@ [Mesh] - type = CoupledMFEMMesh - file = gold/mug.e + type = GeneratedMesh + nx = 5 + ny = 5 + nz = 5 dim = 3 [] -[Variables] - [moose_diffused] - family = LAGRANGE - order = FIRST - [] +[Problem] + solve = false [] [AuxVariables] @@ -28,13 +27,6 @@ [] [] -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - [Functions] [primary_function] type = ParsedVectorFunction @@ -78,22 +70,6 @@ [] [] -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - [Postprocessors] [primary_secondary_difference] type = ElementVectorL2Difference @@ -117,5 +93,4 @@ [Outputs] csv = true - exodus = false [] diff --git a/test/tests/unit/postprocessors/monomial_vector_l2_difference.i b/test/tests/unit/postprocessors/monomial_vector_l2_difference.i index 11be97b1..5d239221 100644 --- a/test/tests/unit/postprocessors/monomial_vector_l2_difference.i +++ b/test/tests/unit/postprocessors/monomial_vector_l2_difference.i @@ -1,14 +1,13 @@ [Mesh] - type = CoupledMFEMMesh - file = gold/mug.e + type = GeneratedMesh + nx = 5 + ny = 5 + nz = 5 dim = 3 [] -[Variables] - [moose_diffused] - family = LAGRANGE - order = FIRST - [] +[Problem] + solve = false [] [AuxVariables] @@ -28,13 +27,6 @@ [] [] -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - [Functions] [primary_function] type = ParsedVectorFunction @@ -78,22 +70,6 @@ [] [] -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - [Postprocessors] [primary_secondary_difference] type = ElementVectorL2Difference diff --git a/test/tests/unit/transfers/one_way_lagrange_vector_transfer_master.i b/test/tests/unit/transfers/one_way_lagrange_vector_transfer_master.i deleted file mode 100644 index eea08b5c..00000000 --- a/test/tests/unit/transfers/one_way_lagrange_vector_transfer_master.i +++ /dev/null @@ -1,136 +0,0 @@ -[Mesh] - type = CoupledMFEMMesh - file = gold/mug.e - dim = 3 -[] - -[Variables] - [moose_diffused] - family = LAGRANGE - order = FIRST - [] -[] - -[AuxVariables] - # Lagrange vector on MOOSE side. - [moose_lagrange_vector] - family = LAGRANGE_VEC - order = FIRST - [] - - # Lagrange vector from MFEM side. - [mfem_lagrange_vector] - family = LAGRANGE_VEC - order = FIRST - [] - - # MFEM Lagrange vector components. - [mfem_lagrange_vector_x] - family = LAGRANGE - order = FIRST - [] - - [mfem_lagrange_vector_y] - family = LAGRANGE - order = FIRST - [] - - [mfem_lagrange_vector_z] - family = LAGRANGE - order = FIRST - [] -[] - -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - -[ICs] - # 1. Setup the MOOSE lagrange vector for comparison purposes. - [do_something_with_lagrange_vector] - type = VectorFunctionIC - variable = moose_lagrange_vector - function = update_lagrange_vector - [] -[] - -[AuxKernels] - # 2. Rebuild received MFEM lagrange vector from components after transfer finished. - [rebuild_mfem_lagrange_vector] - type = VectorVariableFromComponentsAux - variable = mfem_lagrange_vector - component_x = mfem_lagrange_vector_x - component_y = mfem_lagrange_vector_y - component_z = mfem_lagrange_vector_z - execute_on = timestep_end - [] -[] - -[Functions] - [update_lagrange_vector] - type = ParsedVectorFunction - expression_x = '100 * x * x' - expression_y = '100 * y * y' - expression_z = '100 * z * z' - [] -[] - -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - -[Postprocessors] - # Compare MOOSE and MFEM lagrange vectors. - [vector_l2_difference] - type = ElementVectorL2Difference - variable = moose_lagrange_vector - other_variable = mfem_lagrange_vector - [] -[] - -[MultiApps] - [sub_app] - type = TransientMultiApp - positions = '0 0 0' - input_files = 'one_way_lagrange_vector_transfer_mfem.i' - execute_on = timestep_begin - [] -[] - -[Transfers] - # Pull the MFEM lagrange vector from the miniapp. - [pull] - type = MultiAppGeneralFieldNearestLocationTransfer - from_multi_app = sub_app - source_type = 'variable_default variable_default variable_default' - source_variable = 'mfem_lagrange_vector_x mfem_lagrange_vector_y mfem_lagrange_vector_z' - variable = 'mfem_lagrange_vector_x mfem_lagrange_vector_y mfem_lagrange_vector_z' - [] -[] - -[Executioner] - type = Transient - dt = 1.0 - start_time = 0.0 - end_time = 1.0 -[] - -[Outputs] - csv = true - exodus = false -[] diff --git a/test/tests/unit/transfers/one_way_lagrange_vector_transfer_mfem.i b/test/tests/unit/transfers/one_way_lagrange_vector_transfer_mfem.i deleted file mode 100644 index 94af73f3..00000000 --- a/test/tests/unit/transfers/one_way_lagrange_vector_transfer_mfem.i +++ /dev/null @@ -1,130 +0,0 @@ -[Mesh] - type = CoupledMFEMMesh - file = gold/mug.e - dim = 3 -[] - -[Problem] - type = MFEMProblem - use_glvis = true -[] - -[Formulation] - type = CustomFormulation -[] - -[AuxVariables] - [mfem_diffused] - family = LAGRANGE - order = FIRST - [] - - [mfem_lagrange_vector] - family = LAGRANGE_VEC - order = FIRST - [] - - # Components of MFEM Lagrange vector. - [mfem_lagrange_vector_x] - family = LAGRANGE - order = FIRST - [] - - [mfem_lagrange_vector_y] - family = LAGRANGE - order = FIRST - [] - - [mfem_lagrange_vector_z] - family = LAGRANGE - order = FIRST - [] -[] - -[Kernels] - [diffusion] - type = MFEMDiffusionKernel - variable = mfem_diffused - coefficient = one - [] -[] - -[ICs] - # 1. Setup the MFEM lagrange vector. - [do_something_with_lagrange_vector] - type = VectorFunctionIC - variable = mfem_lagrange_vector - function = update_lagrange_vector - [] -[] - -[AuxKernels] - # 2. Prepare for transfer back to master app. Need to update x y z components. - [prepare_for_transfer_back] - type = VectorVariableToComponentsAux - variable = mfem_lagrange_vector - component_x = mfem_lagrange_vector_x - component_y = mfem_lagrange_vector_y - component_z = mfem_lagrange_vector_z - execute_on = timestep_end - [] -[] - -[Functions] - [update_lagrange_vector] - type = ParsedVectorFunction - expression_x = '100 * x * x' - expression_y = '100 * y * y' - expression_z = '100 * z * z' - [] - - [value_bottom] - type = ParsedFunction - expression = 1.0 - [] - - [value_top] - type = ParsedFunction - expression = 0.0 - [] -[] - -[BCs] - [bottom] - type = MFEMScalarDirichletBC - variable = mfem_diffused - boundary = '1' - coefficient = BottomValue - [] - [low_terminal] - type = MFEMScalarDirichletBC - variable = mfem_diffused - boundary = '2' - coefficient = TopValue - [] -[] - -[Coefficients] - [one] - type = MFEMConstantCoefficient - value = 1.0 - [] - [TopValue] - type = MFEMFunctionCoefficient - function = value_top - [] - [BottomValue] - type = MFEMFunctionCoefficient - function = value_bottom - [] -[] - -[Executioner] - type = Transient - dt = 1.0 - start_time = 0.0 - end_time = 1.0 - - l_tol = 1e-16 - l_max_its = 1000 -[] \ No newline at end of file diff --git a/test/tests/unit/transfers/one_way_monomial_vector_transfer_master.i b/test/tests/unit/transfers/one_way_monomial_vector_transfer_master.i deleted file mode 100644 index 340a057a..00000000 --- a/test/tests/unit/transfers/one_way_monomial_vector_transfer_master.i +++ /dev/null @@ -1,136 +0,0 @@ -[Mesh] - type = CoupledMFEMMesh - file = gold/mug.e - dim = 3 -[] - -[Variables] - [moose_diffused] - family = LAGRANGE - order = FIRST - [] -[] - -[AuxVariables] - # Monomial vector on MOOSE side. - [moose_monomial_vector] - family = MONOMIAL_VEC - order = CONSTANT - [] - - # Monomial vector from MFEM side. - [mfem_monomial_vector] - family = MONOMIAL_VEC - order = CONSTANT - [] - - # MFEM monomial vector components. - [mfem_monomial_vector_x] - family = MONOMIAL - order = CONSTANT - [] - - [mfem_monomial_vector_y] - family = MONOMIAL - order = CONSTANT - [] - - [mfem_monomial_vector_z] - family = MONOMIAL - order = CONSTANT - [] -[] - -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - -[ICs] - # 1. Setup the MOOSE monomial vector for comparison purposes. - [do_something_with_monomial_vector] - type = VectorFunctionIC - variable = moose_monomial_vector - function = update_monomial_vector - [] -[] - -[AuxKernels] - # 2. Rebuild received MFEM monomial vector from components after transfer finished. - [rebuild_mfem_monomial_vector] - type = VectorVariableFromComponentsAux - variable = mfem_monomial_vector - component_x = mfem_monomial_vector_x - component_y = mfem_monomial_vector_y - component_z = mfem_monomial_vector_z - execute_on = timestep_end - [] -[] - -[Functions] - [update_monomial_vector] - type = ParsedVectorFunction - expression_x = '100 * x * x' - expression_y = '100 * y * y' - expression_z = '100 * z * z' - [] -[] - -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - -[Postprocessors] - # Compare MOOSE and MFEM monomial vectors. - [vector_l2_difference] - type = ElementVectorL2Difference - variable = moose_monomial_vector - other_variable = mfem_monomial_vector - [] -[] - -[MultiApps] - [sub_app] - type = TransientMultiApp - positions = '0 0 0' - input_files = 'one_way_monomial_vector_transfer_mfem.i' - execute_on = timestep_begin - [] -[] - -[Transfers] - # Pull the MFEM monomial vector from the miniapp. - [pull] - type = MultiAppGeneralFieldNearestLocationTransfer - from_multi_app = sub_app - source_type = 'variable_default variable_default variable_default' - source_variable = 'mfem_monomial_vector_x mfem_monomial_vector_y mfem_monomial_vector_z' - variable = 'mfem_monomial_vector_x mfem_monomial_vector_y mfem_monomial_vector_z' - [] -[] - -[Executioner] - type = Transient - dt = 1.0 - start_time = 0.0 - end_time = 1.0 -[] - -[Outputs] - csv = true - exodus = false -[] diff --git a/test/tests/unit/transfers/one_way_monomial_vector_transfer_mfem.i b/test/tests/unit/transfers/one_way_monomial_vector_transfer_mfem.i deleted file mode 100644 index d5f3feda..00000000 --- a/test/tests/unit/transfers/one_way_monomial_vector_transfer_mfem.i +++ /dev/null @@ -1,130 +0,0 @@ -[Mesh] - type = CoupledMFEMMesh - file = gold/mug.e - dim = 3 -[] - -[Problem] - type = MFEMProblem - use_glvis = true -[] - -[Formulation] - type = CustomFormulation -[] - -[AuxVariables] - [mfem_diffused] - family = LAGRANGE - order = FIRST - [] - - [mfem_monomial_vector] - family = MONOMIAL_VEC - order = CONSTANT - [] - - # Components of MFEM Monomial vector. - [mfem_monomial_vector_x] - family = MONOMIAL - order = CONSTANT - [] - - [mfem_monomial_vector_y] - family = MONOMIAL - order = CONSTANT - [] - - [mfem_monomial_vector_z] - family = MONOMIAL - order = CONSTANT - [] -[] - -[Kernels] - [diffusion] - type = MFEMDiffusionKernel - variable = mfem_diffused - coefficient = one - [] -[] - -[ICs] - # 1. Setup the MFEM monomial vector. - [do_something_with_monomial_vector] - type = VectorFunctionIC - variable = mfem_monomial_vector - function = update_monomial_vector - [] -[] - -[AuxKernels] - # 2. Prepare for transfer back to master app. Need to update x y z components. - [prepare_for_transfer_back] - type = VectorVariableToComponentsAux - variable = mfem_monomial_vector - component_x = mfem_monomial_vector_x - component_y = mfem_monomial_vector_y - component_z = mfem_monomial_vector_z - execute_on = timestep_end - [] -[] - -[Functions] - [update_monomial_vector] - type = ParsedVectorFunction - expression_x = '100 * x * x' - expression_y = '100 * y * y' - expression_z = '100 * z * z' - [] - - [value_bottom] - type = ParsedFunction - expression = 1.0 - [] - - [value_top] - type = ParsedFunction - expression = 0.0 - [] -[] - -[BCs] - [bottom] - type = MFEMScalarDirichletBC - variable = mfem_diffused - boundary = '1' - coefficient = BottomValue - [] - [low_terminal] - type = MFEMScalarDirichletBC - variable = mfem_diffused - boundary = '2' - coefficient = TopValue - [] -[] - -[Coefficients] - [one] - type = MFEMConstantCoefficient - value = 1.0 - [] - [TopValue] - type = MFEMFunctionCoefficient - function = value_top - [] - [BottomValue] - type = MFEMFunctionCoefficient - function = value_bottom - [] -[] - -[Executioner] - type = Transient - dt = 1.0 - start_time = 0.0 - end_time = 1.0 - - l_tol = 1e-16 - l_max_its = 1000 -[] \ No newline at end of file diff --git a/test/tests/unit/transfers/tests b/test/tests/unit/transfers/tests index 0ae75352..4f65d675 100644 --- a/test/tests/unit/transfers/tests +++ b/test/tests/unit/transfers/tests @@ -50,18 +50,4 @@ requirement = 'Apollo shall have the ability to transfer from MFEM to MOOSE using second-order tet10 elements.' max_parallel = 1 [] - - [./OneWayLagrangeVectorTransfer] - type = 'CSVDiff' - input = 'one_way_lagrange_vector_transfer_master.i' - csvdiff = 'one_way_lagrange_vector_transfer_master_out.csv' - requirement = 'Apollo shall have the ability to transfer Lagrange vectors between MFEM and MOOSE.' - [] - - [./OneWayMonomialVectorTransfer] - type = 'CSVDiff' - input = 'one_way_monomial_vector_transfer_master.i' - csvdiff = 'one_way_monomial_vector_transfer_master_out.csv' - requirement = 'Apollo shall have the ability to transfer Monomial vectors between MFEM and MOOSE.' - [] [] diff --git a/test/tests/unit/transfers/two_way_hex27_transfer_master.i b/test/tests/unit/transfers/two_way_hex27_transfer_master.i index ea13f591..bc779c47 100644 --- a/test/tests/unit/transfers/two_way_hex27_transfer_master.i +++ b/test/tests/unit/transfers/two_way_hex27_transfer_master.i @@ -4,11 +4,8 @@ dim = 3 [] -[Variables] - [moose_diffused] - family = LAGRANGE - order = SECOND - [] +[Problem] + solve = false [] [AuxVariables] @@ -23,29 +20,6 @@ [] [] -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - [ICs] [set_test_variable_sent] type = FunctionIC @@ -72,14 +46,14 @@ [sub_app] type = TransientMultiApp positions = '0 0 0' - input_files = 'two_way_hex27_transfer_mfem.i' + input_files = 'two_way_hex27_transfer_subapp.i' execute_on = timestep_begin [] [] [Transfers] [push_test_variable] - type = MultiAppNearestNodeTransfer + type = MultiAppCopyTransfer # Transfer to the sub-app from this app. to_multi_app = sub_app @@ -88,17 +62,17 @@ source_variable = test_variable_sent # The name of the auxiliary variable in the sub-app. - variable = test_variable_on_mfem_side + variable = test_variable_on_subapp_side [] [pull_test_variable] - type = MultiAppNearestNodeTransfer + type = MultiAppCopyTransfer # Transfer from the sub-app to this app. from_multi_app = sub_app # The name of the variable in the sub-app. - source_variable = test_variable_on_mfem_side + source_variable = test_variable_on_subapp_side # The name of the auxiliary variable in this app. variable = test_variable_received @@ -114,5 +88,4 @@ [Outputs] csv = true - exodus = false [] diff --git a/test/tests/unit/transfers/two_way_hex27_transfer_mfem.i b/test/tests/unit/transfers/two_way_hex27_transfer_mfem.i deleted file mode 100644 index 48c619f3..00000000 --- a/test/tests/unit/transfers/two_way_hex27_transfer_mfem.i +++ /dev/null @@ -1,84 +0,0 @@ -[Mesh] - type = CoupledMFEMMesh - file = gold/simple-cube-hex27.e - dim = 3 -[] - -[Problem] - type = MFEMProblem - use_glvis = true -[] - -[Formulation] - type = CustomFormulation -[] - -[AuxVariables] - [mfem_diffused] - family = LAGRANGE - order = SECOND - [] - [test_variable_on_mfem_side] - family = LAGRANGE - order = SECOND - [] -[] - -[Functions] - [value_bottom] - type = ParsedFunction - value = 1.0 - [] - [value_top] - type = ParsedFunction - value = 0.0 - [] -[] - -[BCs] - [bottom] - type = MFEMScalarDirichletBC - variable = mfem_diffused - boundary = '1' - coefficient = BottomValue - [] - [low_terminal] - type = MFEMScalarDirichletBC - variable = mfem_diffused - boundary = '2' - coefficient = TopValue - [] -[] - -[Coefficients] - [one] - type = MFEMConstantCoefficient - value = 1.0 - [] - [TopValue] - type = MFEMFunctionCoefficient - function = value_top - [] - [BottomValue] - type = MFEMFunctionCoefficient - function = value_bottom - [] -[] - -[Kernels] - [diffusion] - type = MFEMDiffusionKernel - variable = mfem_diffused - coefficient = one - [] -[] - -[Executioner] - type = Transient - dt = 1.0 - start_time = 0.0 - end_time = 1.0 - - l_tol = 1e-16 - l_max_its = 1000 -[] \ No newline at end of file diff --git a/test/tests/unit/transfers/two_way_hex27_transfer_subapp.i b/test/tests/unit/transfers/two_way_hex27_transfer_subapp.i new file mode 100644 index 00000000..a4b70ffb --- /dev/null +++ b/test/tests/unit/transfers/two_way_hex27_transfer_subapp.i @@ -0,0 +1,23 @@ +[Mesh] + type = CoupledMFEMMesh + file = gold/simple-cube-hex27.e + dim = 3 +[] + +[Problem] + solve = false +[] + +[AuxVariables] + [test_variable_on_subapp_side] + family = LAGRANGE + order = SECOND + [] +[] + +[Executioner] + type = Transient + dt = 1.0 + start_time = 0.0 + end_time = 1.0 +[] \ No newline at end of file diff --git a/test/tests/unit/transfers/two_way_tet10_transfer_master.i b/test/tests/unit/transfers/two_way_tet10_transfer_master.i index dc71a16f..26cfb7a4 100644 --- a/test/tests/unit/transfers/two_way_tet10_transfer_master.i +++ b/test/tests/unit/transfers/two_way_tet10_transfer_master.i @@ -4,11 +4,8 @@ dim = 3 [] -[Variables] - [moose_diffused] - family = LAGRANGE - order = SECOND - [] +[Problem] + solve = false [] [AuxVariables] @@ -23,29 +20,6 @@ [] [] -[Kernels] - [diffusion] - type = Diffusion - variable = moose_diffused - [] -[] - -[BCs] - [bottom] - type = DirichletBC - variable = moose_diffused - boundary = 'bottom' - value = 1 - [] - - [top] - type = DirichletBC - variable = moose_diffused - boundary = 'top' - value = 0 - [] -[] - [ICs] [set_test_variable_sent] type = FunctionIC @@ -72,14 +46,14 @@ [sub_app] type = TransientMultiApp positions = '0 0 0' - input_files = 'two_way_tet10_transfer_mfem.i' + input_files = 'two_way_tet10_transfer_subapp.i' execute_on = timestep_begin [] [] [Transfers] [push_test_variable] - type = MultiAppNearestNodeTransfer + type = MultiAppCopyTransfer # Transfer to the sub-app from this app. to_multi_app = sub_app @@ -88,17 +62,17 @@ source_variable = test_variable_sent # The name of the auxiliary variable in the sub-app. - variable = test_variable_on_mfem_side + variable = test_variable_on_subapp_side [] [pull_test_variable] - type = MultiAppNearestNodeTransfer + type = MultiAppCopyTransfer # Transfer from the sub-app to this app. from_multi_app = sub_app # The name of the variable in the sub-app. - source_variable = test_variable_on_mfem_side + source_variable = test_variable_on_subapp_side # The name of the auxiliary variable in this app. variable = test_variable_received @@ -114,5 +88,4 @@ [Outputs] csv = true - exodus = false [] diff --git a/test/tests/unit/transfers/two_way_tet10_transfer_mfem.i b/test/tests/unit/transfers/two_way_tet10_transfer_mfem.i deleted file mode 100644 index 5e1ab9a0..00000000 --- a/test/tests/unit/transfers/two_way_tet10_transfer_mfem.i +++ /dev/null @@ -1,85 +0,0 @@ -[Mesh] - type = CoupledMFEMMesh - file = gold/simple-cube-tet10.e - dim = 3 -[] - -[Problem] - type = MFEMProblem - use_glvis = true -[] - -[Formulation] - type = CustomFormulation -[] - -[AuxVariables] - [mfem_diffused] - family = LAGRANGE - order = SECOND - [] - - [test_variable_on_mfem_side] - family = LAGRANGE - order = SECOND - [] -[] - -[Functions] - [value_bottom] - type = ParsedFunction - value = 1.0 - [] - [value_top] - type = ParsedFunction - value = 0.0 - [] -[] - -[BCs] - [bottom] - type = MFEMScalarDirichletBC - variable = mfem_diffused - boundary = '1' - coefficient = BottomValue - [] - [low_terminal] - type = MFEMScalarDirichletBC - variable = mfem_diffused - boundary = '2' - coefficient = TopValue - [] -[] - -[Coefficients] - [one] - type = MFEMConstantCoefficient - value = 1.0 - [] - [TopValue] - type = MFEMFunctionCoefficient - function = value_top - [] - [BottomValue] - type = MFEMFunctionCoefficient - function = value_bottom - [] -[] - -[Kernels] - [diffusion] - type = MFEMDiffusionKernel - variable = mfem_diffused - coefficient = one - [] -[] - -[Executioner] - type = Transient - dt = 1.0 - start_time = 0.0 - end_time = 1.0 - - l_tol = 1e-16 - l_max_its = 1000 -[] \ No newline at end of file diff --git a/test/tests/unit/transfers/two_way_tet10_transfer_subapp.i b/test/tests/unit/transfers/two_way_tet10_transfer_subapp.i new file mode 100644 index 00000000..c648fd2f --- /dev/null +++ b/test/tests/unit/transfers/two_way_tet10_transfer_subapp.i @@ -0,0 +1,23 @@ +[Mesh] + type = CoupledMFEMMesh + file = gold/simple-cube-tet10.e + dim = 3 +[] + +[Problem] + solve = false +[] + +[AuxVariables] + [test_variable_on_subapp_side] + family = LAGRANGE + order = SECOND + [] +[] + +[Executioner] + type = Transient + dt = 1.0 + start_time = 0.0 + end_time = 1.0 +[] \ No newline at end of file