v0.14.0
Public Member Functions | Public Attributes | List of all members
MoFEM::JacobiPolynomialCtx Struct Reference

Class used to give arguments to Legendre base functions. More...

#include <src/approximation/JacobiPolynomial.hpp>

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

Public Member Functions

MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
 JacobiPolynomialCtx (int p, double *diff_x, double *diff_t, int dim, double alpha, boost::shared_ptr< MatrixDouble > &base_fun_ptr, boost::shared_ptr< MatrixDouble > &base_diff_fun_ptr)
 
 ~JacobiPolynomialCtx ()
 
- 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. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface reference to pointer of interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE **const iface) const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_pointer< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_reference< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get reference to interface. More...
 
template<class IFACE >
IFACE * getInterface () const
 Function returning pointer to interface. More...
 
virtual ~UnknownInterface ()=default
 

Public Attributes

int P
 
doublediffX
 
doublediffT
 
int dIm
 
double aLpha
 
boost::shared_ptr< MatrixDoublebaseFunPtr
 
boost::shared_ptr< MatrixDoublebaseDiffFunPtr
 
PetscErrorCode(* basePolynomialsType1 )(int p, double alpha, double x, double t, double *diff_x, double *diff_t, double *L, double *diffL, const int dim)
 

Additional Inherited Members

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

Detailed Description

Class used to give arguments to Legendre base functions.

Definition at line 17 of file JacobiPolynomial.hpp.

Constructor & Destructor Documentation

◆ JacobiPolynomialCtx()

MoFEM::JacobiPolynomialCtx::JacobiPolynomialCtx ( int  p,
double diff_x,
double diff_t,
int  dim,
double  alpha,
boost::shared_ptr< MatrixDouble > &  base_fun_ptr,
boost::shared_ptr< MatrixDouble > &  base_diff_fun_ptr 
)
inline

Definition at line 37 of file JacobiPolynomial.hpp.

41  : P(p), diffX(diff_x), diffT(diff_t), dIm(dim), aLpha(alpha),
42  baseFunPtr(base_fun_ptr), baseDiffFunPtr(base_diff_fun_ptr),

◆ ~JacobiPolynomialCtx()

MoFEM::JacobiPolynomialCtx::~JacobiPolynomialCtx ( )
inline

Definition at line 44 of file JacobiPolynomial.hpp.

44 {}

Member Function Documentation

◆ query_interface()

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

Reimplemented from MoFEM::BaseFunctionCtx.

Reimplemented in MoFEM::IntegratedJacobiPolynomialCtx.

Definition at line 10 of file JacobiPolynomial.cpp.

11  {
12  *iface = const_cast<JacobiPolynomialCtx *>(this);
13  return 0;
14 }

Member Data Documentation

◆ aLpha

double MoFEM::JacobiPolynomialCtx::aLpha

Definition at line 27 of file JacobiPolynomial.hpp.

◆ baseDiffFunPtr

boost::shared_ptr<MatrixDouble> MoFEM::JacobiPolynomialCtx::baseDiffFunPtr

Definition at line 30 of file JacobiPolynomial.hpp.

◆ baseFunPtr

boost::shared_ptr<MatrixDouble> MoFEM::JacobiPolynomialCtx::baseFunPtr

Definition at line 29 of file JacobiPolynomial.hpp.

◆ basePolynomialsType1

PetscErrorCode(* MoFEM::JacobiPolynomialCtx::basePolynomialsType1) (int p, double alpha, double x, double t, double *diff_x, double *diff_t, double *L, double *diffL, const int dim)

Definition at line 32 of file JacobiPolynomial.hpp.

◆ diffT

double* MoFEM::JacobiPolynomialCtx::diffT

Definition at line 24 of file JacobiPolynomial.hpp.

◆ diffX

double* MoFEM::JacobiPolynomialCtx::diffX

Definition at line 23 of file JacobiPolynomial.hpp.

◆ dIm

int MoFEM::JacobiPolynomialCtx::dIm

Definition at line 25 of file JacobiPolynomial.hpp.

◆ P

int MoFEM::JacobiPolynomialCtx::P

Definition at line 22 of file JacobiPolynomial.hpp.


The documentation for this struct was generated from the following files:
MoFEM::JacobiPolynomialCtx::P
int P
Definition: JacobiPolynomial.hpp:22
MoFEM::JacobiPolynomialCtx::baseDiffFunPtr
boost::shared_ptr< MatrixDouble > baseDiffFunPtr
Definition: JacobiPolynomial.hpp:30
MoFEM::JacobiPolynomialCtx::diffX
double * diffX
Definition: JacobiPolynomial.hpp:23
MoFEM::JacobiPolynomialCtx::JacobiPolynomialCtx
JacobiPolynomialCtx(int p, double *diff_x, double *diff_t, int dim, double alpha, boost::shared_ptr< MatrixDouble > &base_fun_ptr, boost::shared_ptr< MatrixDouble > &base_diff_fun_ptr)
Definition: JacobiPolynomial.hpp:37
MoFEM::JacobiPolynomialCtx::aLpha
double aLpha
Definition: JacobiPolynomial.hpp:27
MoFEM::JacobiPolynomialCtx::baseFunPtr
boost::shared_ptr< MatrixDouble > baseFunPtr
Definition: JacobiPolynomial.hpp:29
MoFEM::JacobiPolynomialCtx::diffT
double * diffT
Definition: JacobiPolynomial.hpp:24
MoFEM::JacobiPolynomialCtx::dIm
int dIm
Definition: JacobiPolynomial.hpp:25
Jacobi_polynomials
PetscErrorCode Jacobi_polynomials(int p, double alpha, double x, double t, double *diff_x, double *diff_t, double *L, double *diffL, const int dim)
Calculate Jacobi approximation basis.
Definition: base_functions.c:67
MoFEM::JacobiPolynomialCtx::basePolynomialsType1
PetscErrorCode(* basePolynomialsType1)(int p, double alpha, double x, double t, double *diff_x, double *diff_t, double *L, double *diffL, const int dim)
Definition: JacobiPolynomial.hpp:32