MFEM v4.8.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::AdvectorCG Class Reference

#include <tmop_tools.hpp>

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

Public Member Functions

 AdvectorCG (AssemblyLevel al=AssemblyLevel::LEGACY, real_t timestep_scale=0.5)
 
void SetInitialField (const Vector &init_nodes, const Vector &init_field) override
 
void SetNewFieldFESpace (const FiniteElementSpace &fes) override
 
void ComputeAtNewPosition (const Vector &new_mesh_nodes, Vector &new_field, int nodes_ordering=Ordering::byNODES) override
 
void ComputeAtGivenPositions (const Vector &positions, Vector &values, int p_ordering=Ordering::byNODES) override
 Using the source mesh and field given by SetInitialField(), compute corresponding values at specified physical positions.
 
void SetMemoryType (MemoryType mt)
 
- Public Member Functions inherited from mfem::AdaptivityEvaluator
 AdaptivityEvaluator ()
 
virtual ~AdaptivityEvaluator ()
 
void SetSerialMetaInfo (const Mesh &m, const FiniteElementSpace &f)
 
void SetParMetaInfo (const ParMesh &m, const ParFiniteElementSpace &f)
 Parallel version of SetSerialMetaInfo.
 
void ClearGeometricFactors ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::AdaptivityEvaluator
Meshmesh
 
FiniteElementSpacefes
 
ParMeshpmesh
 
ParFiniteElementSpacepfes
 

Detailed Description

Definition at line 24 of file tmop_tools.hpp.

Constructor & Destructor Documentation

◆ AdvectorCG()

mfem::AdvectorCG::AdvectorCG ( AssemblyLevel al = AssemblyLevel::LEGACY,
real_t timestep_scale = 0.5 )
inline

Definition at line 38 of file tmop_tools.hpp.

Member Function Documentation

◆ ComputeAtGivenPositions()

void mfem::AdvectorCG::ComputeAtGivenPositions ( const Vector & positions,
Vector & values,
int p_ordering = Ordering::byNODES )
inlineoverridevirtual

Using the source mesh and field given by SetInitialField(), compute corresponding values at specified physical positions.

Parameters
[in]positionsPhysical positions to compute values.
[out]valuesComputed field values.
[in]p_orderingOrdering of the positions Vector.

Implements mfem::AdaptivityEvaluator.

Definition at line 58 of file tmop_tools.hpp.

◆ ComputeAtNewPosition()

void mfem::AdvectorCG::ComputeAtNewPosition ( const Vector & new_mesh_nodes,
Vector & new_field,
int nodes_ordering = Ordering::byNODES )
overridevirtual

Perform advection-based remap. Assumptions: nodes0 and new_mesh_nodes have the same topology; new_field is of the same FE space as field0.

Implements mfem::AdaptivityEvaluator.

Definition at line 29 of file tmop_tools.cpp.

◆ SetInitialField()

void mfem::AdvectorCG::SetInitialField ( const Vector & init_nodes,
const Vector & init_field )
overridevirtual

Implements mfem::AdaptivityEvaluator.

Definition at line 22 of file tmop_tools.cpp.

◆ SetMemoryType()

void mfem::AdvectorCG::SetMemoryType ( MemoryType mt)
inline

Set the memory type used for large memory allocations. This memory type is used when constructing the AdvectorCGOper but currently only for the parallel variant.

Definition at line 68 of file tmop_tools.hpp.

◆ SetNewFieldFESpace()

void mfem::AdvectorCG::SetNewFieldFESpace ( const FiniteElementSpace & fes)
inlineoverridevirtual

Called when the FE space of the final field is different than the FE space of the initial field.

Implements mfem::AdaptivityEvaluator.

Definition at line 46 of file tmop_tools.hpp.


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