v0.16.3
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
MoFEM::DGProjectionInterface Struct Referenceabstract

#include "src/interfaces/DGProjectionInterface.hpp"

Inheritance diagram for MoFEM::DGProjectionInterface:
[legend]
Collaboration diagram for MoFEM::DGProjectionInterface:
[legend]

Classes

struct  FieldReport
 
struct  IntegrationRule
 
struct  MeshLevel
 
struct  Options
 
struct  Report
 
struct  Request
 
struct  TagReport
 

Public Types

using RuleHook = boost::function< int(int order_row, int order_col, int order_data)>
 Same signatures as ForcesAndSourcesCore::getRuleHook and setRuleHook.
 
using SetRuleHook = boost::function< MoFEMErrorCode(ForcesAndSourcesCore *fe_raw_ptr, int order_row, int order_col, int order_data)>
 
using FieldMap = std::vector< std::pair< std::string, std::string > >
 Pairs of source and target field names, projected together.
 
using TagMap = std::tuple< std::vector< std::pair< std::string, std::string > >, int >
 

Public Member Functions

virtual MoFEMErrorCode project (const Request< FieldMap > &request, Report< FieldReport > &report)=0
 
virtual MoFEMErrorCode project (const Request< TagMap > &request, Report< TagReport > &report)=0
 
- Public Member Functions inherited from MoFEM::UnknownInterface
virtual MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const =0
 
template<class IFACE >
MoFEMErrorCode registerInterface (bool error_if_registration_failed=true)
 Register interface.
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface reference to pointer of interface.
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE **const iface) const
 Get interface pointer to pointer of interface.
 
template<class IFACE , typename boost::enable_if< boost::is_pointer< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get interface pointer to pointer of interface.
 
template<class IFACE , typename boost::enable_if< boost::is_reference< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get reference to interface.
 
template<class IFACE >
IFACE * getInterface () const
 Function returning pointer to interface.
 
virtual ~UnknownInterface ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from MoFEM::UnknownInterface
static MoFEMErrorCode getLibVersion (Version &version)
 Get library version.
 
static MoFEMErrorCode getFileVersion (moab::Interface &moab, Version &version)
 Get database major version.
 
static MoFEMErrorCode setFileVersion (moab::Interface &moab, Version version=Version(MoFEM_VERSION_MAJOR, MoFEM_VERSION_MINOR, MoFEM_VERSION_BUILD))
 Get database major version.
 
static MoFEMErrorCode getInterfaceVersion (Version &version)
 Get database major version.
 

Detailed Description

L2 projection in one Core database using one sub-DM of a caller-owned DM. Source fields are H1/L2 and targets are L2 on affine triangles/tetrahedra. Integration-point tags use field-free L2 operators. Each target point is sampled from a source cell available locally; uncovered points take the empty value. Standard quadrature does not exactly integrate DG jumps cutting a target element. Components are Cartesian values (1 through 9); physical history/frame updates are separate. The caller supplies suitable entity support, geometry and quadrature. Field maps use caller-owned fields; tag maps use field-free L2 operators on the supplied finite element. One request projects several fields or tags at once.

Definition at line 24 of file DGProjectionInterface.hpp.

Member Typedef Documentation

◆ FieldMap

using MoFEM::DGProjectionInterface::FieldMap = std::vector<std::pair<std::string, std::string> >

Pairs of source and target field names, projected together.

Definition at line 43 of file DGProjectionInterface.hpp.

◆ RuleHook

using MoFEM::DGProjectionInterface::RuleHook = boost::function<int(int order_row, int order_col, int order_data)>

Same signatures as ForcesAndSourcesCore::getRuleHook and setRuleHook.

Definition at line 31 of file DGProjectionInterface.hpp.

◆ SetRuleHook

using MoFEM::DGProjectionInterface::SetRuleHook = boost::function<MoFEMErrorCode(ForcesAndSourcesCore *fe_raw_ptr, int order_row, int order_col, int order_data)>

Definition at line 33 of file DGProjectionInterface.hpp.

◆ TagMap

using MoFEM::DGProjectionInterface::TagMap = std::tuple<std::vector<std::pair<std::string, std::string> >, int>

Pairs of source and target tag names, and the L2 order of reconstruction and projection shared by all pairs. A missing target tag is created from its source tag. Tags store the components of each integration point, point-major; the number of components, 1 through 9, is the source tag length divided by the number of source rule points.

Definition at line 49 of file DGProjectionInterface.hpp.

Member Function Documentation

◆ project() [1/2]

virtual MoFEMErrorCode MoFEM::DGProjectionInterface::project ( const Request< FieldMap > &  request,
Report< FieldReport > &  report 
)
pure virtual

Collective on the supplied DM communicator; ranks use the same element, mesh levels and field maps. Each rank processes locally available cells. An empty local target selection returns an empty report after sub-DM setup. Store each element's projected coefficients and release the sub-DM. An error during the element loop may leave earlier elements updated. Existing application vectors are not updated; the result is field data.

◆ project() [2/2]

virtual MoFEMErrorCode MoFEM::DGProjectionInterface::project ( const Request< TagMap > &  request,
Report< TagReport > &  report 
)
pure virtual

Reconstruct source tags in element-local coefficient buffers, project them and store target tags at the target rule; published if every map succeeds. Collective on the supplied DM communicator; ranks use the same element, mesh levels and tag maps.


The documentation for this struct was generated from the following file: