MFEM  v4.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mfem::GridTransfer Class Referenceabstract

Base class for transfer algorithms that construct transfer Operators between two finite element (FE) spaces. More...

#include <fespace.hpp>

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

Public Member Functions

 GridTransfer (FiniteElementSpace &dom_fes_, FiniteElementSpace &ran_fes_)
 
virtual ~GridTransfer ()
 Virtual destructor. More...
 
void SetOperatorType (Operator::Type type)
 Set the desired Operator::Type for the construction of all operators defined by the underlying transfer algorithm. More...
 
virtual const OperatorForwardOperator ()=0
 Return an Operator that transfers GridFunctions from the domain FE space to GridFunctions in the range FE space. More...
 
virtual const OperatorBackwardOperator ()=0
 Return an Operator that transfers GridFunctions from the range FE space back to GridFunctions in the domain FE space. More...
 
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. More...
 
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. More...
 

Protected Member Functions

bool Parallel () const
 
const OperatorMakeTrueOperator (FiniteElementSpace &fes_in, FiniteElementSpace &fes_out, const Operator &oper, OperatorHandle &t_oper)
 

Protected Attributes

FiniteElementSpacedom_fes
 Domain FE space. More...
 
FiniteElementSpaceran_fes
 Range FE space. More...
 
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. More...
 
OperatorHandle fw_t_oper
 Forward true-dof operator. More...
 
OperatorHandle bw_t_oper
 Backward true-dof operator. More...
 
bool parallel
 

Detailed Description

Base class for transfer algorithms that construct transfer Operators between two finite element (FE) spaces.

Generally, the two FE spaces (domain and range) can be defined on different meshes.

Definition at line 672 of file fespace.hpp.

Constructor & Destructor Documentation

mfem::GridTransfer::GridTransfer ( FiniteElementSpace dom_fes_,
FiniteElementSpace ran_fes_ 
)

Construct a transfer algorithm between the domain, dom_fes_, and range, ran_fes_, FE spaces.

Definition at line 2244 of file fespace.cpp.

virtual mfem::GridTransfer::~GridTransfer ( )
inlinevirtual

Virtual destructor.

Definition at line 709 of file fespace.hpp.

Member Function Documentation

virtual const Operator& mfem::GridTransfer::BackwardOperator ( )
pure virtual

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

Implemented in mfem::L2ProjectionGridTransfer, and mfem::InterpolationGridTransfer.

virtual const Operator& mfem::GridTransfer::ForwardOperator ( )
pure virtual

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

Implemented in mfem::L2ProjectionGridTransfer, and mfem::InterpolationGridTransfer.

const Operator & mfem::GridTransfer::MakeTrueOperator ( FiniteElementSpace fes_in,
FiniteElementSpace fes_out,
const Operator oper,
OperatorHandle t_oper 
)
protected

Definition at line 2259 of file fespace.cpp.

bool mfem::GridTransfer::Parallel ( ) const
inlineprotected

Definition at line 689 of file fespace.hpp.

void mfem::GridTransfer::SetOperatorType ( Operator::Type  type)
inline

Set the desired Operator::Type for the construction of all operators defined by the underlying transfer algorithm.

The default value is Operator::ANY_TYPE which typically corresponds to a matrix-free operator representation. Note that derived classes are not required to support this setting and can ignore it.

Definition at line 716 of file fespace.hpp.

virtual const Operator& mfem::GridTransfer::TrueBackwardOperator ( )
inlinevirtual

Return an Operator that transfers true-dof Vectors from the range FE space back to true-dof Vectors in the domain FE space.

This method is implemented in the base class, based on BackwardOperator(), however, derived classes can overload the construction, if necessary.

Definition at line 740 of file fespace.hpp.

virtual const Operator& mfem::GridTransfer::TrueForwardOperator ( )
inlinevirtual

Return an Operator that transfers true-dof Vectors from the domain FE space to true-dof Vectors in the range FE space.

This method is implemented in the base class, based on ForwardOperator(), however, derived classes can overload the construction, if necessary.

Definition at line 730 of file fespace.hpp.

Member Data Documentation

OperatorHandle mfem::GridTransfer::bw_t_oper
protected

Backward true-dof operator.

Definition at line 684 of file fespace.hpp.

FiniteElementSpace& mfem::GridTransfer::dom_fes
protected

Domain FE space.

Definition at line 675 of file fespace.hpp.

OperatorHandle mfem::GridTransfer::fw_t_oper
protected

Forward true-dof operator.

Definition at line 683 of file fespace.hpp.

Operator::Type mfem::GridTransfer::oper_type
protected

Desired Operator::Type for the construction of all operators defined by the underlying transfer algorithm. It can be ignored by derived classes.

Definition at line 681 of file fespace.hpp.

bool mfem::GridTransfer::parallel
protected

Definition at line 687 of file fespace.hpp.

FiniteElementSpace& mfem::GridTransfer::ran_fes
protected

Range FE space.

Definition at line 676 of file fespace.hpp.


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