MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::InterpolationGridTransfer Class Reference

Transfer data between a coarse mesh and an embedded refined mesh using interpolation. More...

#include <transfer.hpp>

Inheritance diagram for mfem::InterpolationGridTransfer:
[legend]
Collaboration diagram for mfem::InterpolationGridTransfer:
[legend]

Public Member Functions

 InterpolationGridTransfer (FiniteElementSpace &coarse_fes, FiniteElementSpace &fine_fes)
 
virtual ~InterpolationGridTransfer ()
 
void SetMassIntegrator (BilinearFormIntegrator *mass_integ_, bool own_mass_integ_=true)
 Assign a mass integrator to be used in the construction of the backward, fine-to-coarse, transfer operator.
 
virtual const OperatorForwardOperator ()
 Return an Operator that transfers GridFunctions from the domain FE space to GridFunctions in the range FE space.
 
virtual const OperatorBackwardOperator ()
 Return an Operator that transfers GridFunctions from the range FE space back to GridFunctions in the domain FE space.
 
- Public Member Functions inherited from mfem::GridTransfer
 GridTransfer (FiniteElementSpace &dom_fes_, FiniteElementSpace &ran_fes_)
 
virtual ~GridTransfer ()
 Virtual destructor.
 
void SetOperatorType (Operator::Type type)
 Set the desired Operator::Type for the construction of all operators defined by the underlying transfer algorithm.
 
virtual const OperatorTrueForwardOperator ()
 Return an Operator that transfers true-dof Vectors from the domain FE space to true-dof Vectors in the range FE space.
 
virtual const OperatorTrueBackwardOperator ()
 Return an Operator that transfers true-dof Vectors from the range FE space back to true-dof Vectors in the domain FE space.
 
virtual bool SupportsBackwardsOperator () const
 

Protected Attributes

BilinearFormIntegratormass_integ
 Ownership depends on own_mass_integ.
 
bool own_mass_integ
 Ownership flag for mass_integ.
 
OperatorHandle F
 Forward, coarse-to-fine, operator.
 
OperatorHandle B
 Backward, fine-to-coarse, operator.
 
- Protected Attributes inherited from mfem::GridTransfer
FiniteElementSpacedom_fes
 Domain FE space.
 
FiniteElementSpaceran_fes
 Range FE space.
 
Operator::Type oper_type
 Desired Operator::Type for the construction of all operators defined by the underlying transfer algorithm. It can be ignored by derived classes.
 
OperatorHandle fw_t_oper
 Forward true-dof operator.
 
OperatorHandle bw_t_oper
 Backward true-dof operator.
 
bool parallel
 

Additional Inherited Members

- Protected Member Functions inherited from mfem::GridTransfer
bool Parallel () const
 
const OperatorMakeTrueOperator (FiniteElementSpace &fes_in, FiniteElementSpace &fes_out, const Operator &oper, OperatorHandle &t_oper)
 

Detailed Description

Transfer data between a coarse mesh and an embedded refined mesh using interpolation.

The forward, coarse-to-fine, transfer uses nodal interpolation. The backward, fine-to-coarse, transfer is defined locally (on a coarse element) as B = (F^t M_f F)^{-1} F^t M_f, where F is the forward transfer matrix, and M_f is a mass matrix on the union of all fine elements comprising the coarse element. Note that the backward transfer operator, B, is a left inverse of the forward transfer operator, F, i.e. B F = I. Both F and B are defined in reference space and do not depend on the actual physical shape of the mesh elements.

It is assumed that both the coarse and the fine FiniteElementSpaces use compatible types of elements, e.g. finite elements with the same map-type (VALUE, INTEGRAL, H_DIV, H_CURL - see class FiniteElement). Generally, the FE spaces can have different orders, however, in order for the backward operator to be well-defined, the (local) number of the fine dofs should not be smaller than the number of coarse dofs.

Definition at line 123 of file transfer.hpp.

Constructor & Destructor Documentation

◆ InterpolationGridTransfer()

mfem::InterpolationGridTransfer::InterpolationGridTransfer ( FiniteElementSpace & coarse_fes,
FiniteElementSpace & fine_fes )
inline

Definition at line 133 of file transfer.hpp.

◆ ~InterpolationGridTransfer()

mfem::InterpolationGridTransfer::~InterpolationGridTransfer ( )
virtual

Definition at line 141 of file transfer.cpp.

Member Function Documentation

◆ BackwardOperator()

const Operator & mfem::InterpolationGridTransfer::BackwardOperator ( )
virtual

Return an Operator that transfers GridFunctions from the range FE space back to GridFunctions in the domain FE space.

Implements mfem::GridTransfer.

Definition at line 189 of file transfer.cpp.

◆ ForwardOperator()

const Operator & mfem::InterpolationGridTransfer::ForwardOperator ( )
virtual

Return an Operator that transfers GridFunctions from the domain FE space to GridFunctions in the range FE space.

Implements mfem::GridTransfer.

Definition at line 155 of file transfer.cpp.

◆ SetMassIntegrator()

void mfem::InterpolationGridTransfer::SetMassIntegrator ( BilinearFormIntegrator * mass_integ_,
bool own_mass_integ_ = true )

Assign a mass integrator to be used in the construction of the backward, fine-to-coarse, transfer operator.

Definition at line 146 of file transfer.cpp.

Member Data Documentation

◆ B

OperatorHandle mfem::InterpolationGridTransfer::B
protected

Backward, fine-to-coarse, operator.

Definition at line 130 of file transfer.hpp.

◆ F

OperatorHandle mfem::InterpolationGridTransfer::F
protected

Forward, coarse-to-fine, operator.

Definition at line 129 of file transfer.hpp.

◆ mass_integ

BilinearFormIntegrator* mfem::InterpolationGridTransfer::mass_integ
protected

Ownership depends on own_mass_integ.

Definition at line 126 of file transfer.hpp.

◆ own_mass_integ

bool mfem::InterpolationGridTransfer::own_mass_integ
protected

Ownership flag for mass_integ.

Definition at line 127 of file transfer.hpp.


The documentation for this class was generated from the following files: