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

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

#include "src/approximation/LobattoPolynomial.hpp"

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

Public Member Functions

MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
 KernelLobattoPolynomialCtx (int p, double *diff_s, int dim, boost::shared_ptr< MatrixDouble > base_fun_ptr, boost::shared_ptr< MatrixDouble > base_diff_fun_ptr)
 Constructor.
 
 ~KernelLobattoPolynomialCtx ()
 
- Public Member Functions inherited from MoFEM::LegendrePolynomialCtx
MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
 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 Kernel Lobatto basis function arguments.

This class provides context for evaluating Kernel Lobatto polynomial basis functions. Kernel Lobatto polynomials are a variant that may have different orthogonality or boundary conditions compared to standard Lobatto polynomials.

Definition at line 112 of file LobattoPolynomial.hpp.

Constructor & Destructor Documentation

◆ KernelLobattoPolynomialCtx()

MoFEM::KernelLobattoPolynomialCtx::KernelLobattoPolynomialCtx ( 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 125 of file LobattoPolynomial.hpp.

128 : LegendrePolynomialCtx(p, diff_s, dim, base_fun_ptr, base_diff_fun_ptr) {
130 }
PetscErrorCode LobattoKernel_polynomials(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
Calculate Kernel Lobatto base 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.

◆ ~KernelLobattoPolynomialCtx()

MoFEM::KernelLobattoPolynomialCtx::~KernelLobattoPolynomialCtx ( )
inline

Definition at line 131 of file LobattoPolynomial.hpp.

131{}

Member Function Documentation

◆ query_interface()

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

Reimplemented from MoFEM::BaseFunctionCtx.

Definition at line 46 of file LobattoPolynomial.cpp.

47 {
48 *iface = const_cast<KernelLobattoPolynomialCtx *>(this);
49 return 0;
50}
KernelLobattoPolynomialCtx(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: