v0.15.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MoFEM::LobattoPolynomialCtx Struct Reference

Context class for Lobatto basis function arguments. More...

#include "src/approximation/LobattoPolynomial.hpp"

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

Public Member Functions

MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
 LobattoPolynomialCtx (int p, double *diff_s, int dim, boost::shared_ptr< MatrixDouble > base_fun_ptr, boost::shared_ptr< MatrixDouble > base_diff_fun_ptr)
 Constructor.
 
 ~LobattoPolynomialCtx ()
 
- Public Member Functions inherited from MoFEM::LegendrePolynomialCtx
 LegendrePolynomialCtx (int p, double *diff_s, int dim, boost::shared_ptr< MatrixDouble > base_fun_ptr, boost::shared_ptr< MatrixDouble > base_diff_fun_ptr)
 Constructor.
 
 ~LegendrePolynomialCtx ()
 
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual ~BaseFunctionUnknownInterface ()=default
 
- Public Member Functions inherited from MoFEM::UnknownInterface
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.
 
- Public Attributes inherited from MoFEM::LegendrePolynomialCtx
int P
 Approximation order.
 
doublediffS
 Derivatives of s parameter.
 
int dIm
 Dimension.
 
boost::shared_ptr< MatrixDoublebaseFunPtr
 Pointer to base function matrix.
 
boost::shared_ptr< MatrixDoublebaseDiffFunPtr
 Pointer to base function derivatives matrix.
 
PetscErrorCode(* basePolynomialsType0 )(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
 Function pointer for polynomial evaluation.
 

Detailed Description

Context class for Lobatto basis function arguments.

This class extends LegendrePolynomialCtx to provide context for evaluating Lobatto polynomial basis functions. It inherits all functionality from the Legendre context and specializes the polynomial evaluation function.

Definition at line 55 of file LobattoPolynomial.hpp.

Constructor & Destructor Documentation

◆ LobattoPolynomialCtx()

MoFEM::LobattoPolynomialCtx::LobattoPolynomialCtx ( int  p,
double diff_s,
int  dim,
boost::shared_ptr< MatrixDouble base_fun_ptr,
boost::shared_ptr< MatrixDouble base_diff_fun_ptr 
)
inline

Constructor.

Parameters
papproximation order
diff_sderivatives of coordinate parameter
dimspatial dimension
base_fun_ptrpointer to base function matrix
base_diff_fun_ptrpointer to base function derivatives matrix

Definition at line 68 of file LobattoPolynomial.hpp.

71 : LegendrePolynomialCtx(p, diff_s, dim, base_fun_ptr, base_diff_fun_ptr) {
73 }
PetscErrorCode Lobatto_polynomials(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
Calculate Lobatto basis functions .
LegendrePolynomialCtx(int p, double *diff_s, int dim, boost::shared_ptr< MatrixDouble > base_fun_ptr, boost::shared_ptr< MatrixDouble > base_diff_fun_ptr)
Constructor.
PetscErrorCode(* basePolynomialsType0)(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
Function pointer for polynomial evaluation.

◆ ~LobattoPolynomialCtx()

MoFEM::LobattoPolynomialCtx::~LobattoPolynomialCtx ( )
inline

Definition at line 74 of file LobattoPolynomial.hpp.

74{}

Member Function Documentation

◆ query_interface()

MoFEMErrorCode MoFEM::LobattoPolynomialCtx::query_interface ( boost::typeindex::type_index  type_index,
UnknownInterface **  iface 
) const
virtual

Reimplemented from MoFEM::LegendrePolynomialCtx.

Definition at line 10 of file LobattoPolynomial.cpp.

11 {
12 *iface = const_cast<LobattoPolynomialCtx *>(this);
13 return 0;
14}
LobattoPolynomialCtx(int p, double *diff_s, int dim, boost::shared_ptr< MatrixDouble > base_fun_ptr, boost::shared_ptr< MatrixDouble > base_diff_fun_ptr)
Constructor.

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