!if! function=hasCapability('mfem')
Allows transfers of libMesh-based MooseVariables to MFEM variables, via local evaluation of shape functions at target nodal projection points. This class supports transfers between different meshes, from first and second LAGRANGE and constant MONOMIAL libMesh variable types to scalar MFEM GridFunctions defined on H1 and L2 conforming finite element spaces.
For transfers in the opposite direction, from MFEM-based applications to libMesh-based applications, please see MultiAppMFEMTolibMeshShapeEvaluationTransfer.
MultiApplibMeshToMFEMShapeEvaluationTransfer executes transfers in three steps:
- Extraction of a vector of node positions in the
ParFiniteElementSpaceof the destinationmfem::ParGridFunction, usingMFEMNodalProjector. - Interpolation of the source libMesh-based
MooseVariableat this set of node locations. Required gather/scatter operations are performed similarly to those inMultiAppGeneralFieldTransfer, with interpolation analagous toMultiAppGeneralFieldShapeEvaluationTransfer. - Projection of the evaluated source variable values onto the destination variable nodes, to set
the destination variable degrees of freedom, using
MFEMNodalProjector.
All libMesh to MFEM transfers executed from this class should be able to support:
- transfers from lowest order scalar LAGRANGE and MONOMIAL variables
- transfers from second order scalar LAGRANGE variables
- transfers between variables belonging to dissimilar meshes
- arbitrary number of parallel processes for both the source and target application
- transfers between parent and child applications
- transfers between sibling applications (child to child)
- transfers from multiple variables to multiple variables
- transfers between displaced meshes
!syntax parameters /Transfers/MultiApplibMeshToMFEMShapeEvaluationTransfer
!syntax inputs /Transfers/MultiApplibMeshToMFEMShapeEvaluationTransfer
!syntax children /Transfers/MultiApplibMeshToMFEMShapeEvaluationTransfer
!if-end!
!else !include mfem/mfem_warning.md