ug4
ug::StdFuncIntegrand< TGridFunction > Class Template Reference

#include <integrate.h>

+ Inheritance diagram for ug::StdFuncIntegrand< TGridFunction >:

Public Member Functions

template<int elemDim>
void evaluate (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< elemDim > vLocIP[], const MathMatrix< elemDim, worldDim > vJT[], const size_t numIP)
 returns the values of the integrand for a bunch of ips More...
 
virtual void set_subset (int si)
 sets subset More...
 
 StdFuncIntegrand (TGridFunction *pGridFct, size_t cmp)
 constructor More...
 
virtual ~StdFuncIntegrand ()
 
- Public Member Functions inherited from ug::StdIntegrand< number, TGridFunction::dim, StdFuncIntegrand< TGridFunction > >
virtual void values (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 1 > vLocIP[], const MathMatrix< 1, worldDim > vJT[], const size_t numIP)
 
virtual void values (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 2 > vLocIP[], const MathMatrix< 2, worldDim > vJT[], const size_t numIP)
 
virtual void values (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 3 > vLocIP[], const MathMatrix< 3, worldDim > vJT[], const size_t numIP)
 
- Public Member Functions inherited from ug::IIntegrand< TData, TWorldDim >
int subset () const
 returns the subset More...
 
virtual ~IIntegrand ()
 
virtual void values (TData vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 1 > vLocIP[], const MathMatrix< 1, worldDim > vJT[], const size_t numIP)=0
 returns the values of the integrand for a bunch of ips More...
 
virtual void values (TData vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 2 > vLocIP[], const MathMatrix< 2, worldDim > vJT[], const size_t numIP)=0
 returns the values of the integrand for a bunch of ips More...
 
virtual void values (TData vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 3 > vLocIP[], const MathMatrix< 3, worldDim > vJT[], const size_t numIP)=0
 returns the values of the integrand for a bunch of ips More...
 

Static Public Attributes

static const int worldDim = TGridFunction::dim
 
- Static Public Attributes inherited from ug::StdIntegrand< number, TGridFunction::dim, StdFuncIntegrand< TGridFunction > >
static const int worldDim
 world dimension More...
 
- Static Public Attributes inherited from ug::IIntegrand< TData, TWorldDim >
static const int worldDim = TWorldDim
 world dimension More...
 

Private Attributes

const size_t m_fct
 
TGridFunction * m_pGridFct
 

Additional Inherited Members

- Public Types inherited from ug::StdIntegrand< number, TGridFunction::dim, StdFuncIntegrand< TGridFunction > >
typedef number data_type
 data type More...
 
- Public Types inherited from ug::IIntegrand< TData, TWorldDim >
typedef TData data_type
 data type More...
 
- Protected Member Functions inherited from ug::StdIntegrand< number, TGridFunction::dim, StdFuncIntegrand< TGridFunction > >
StdFuncIntegrand< TGridFunction > & getImpl ()
 access to implementation More...
 
const StdFuncIntegrand< TGridFunction > & getImpl () const
 const access to implementation More...
 
- Protected Attributes inherited from ug::IIntegrand< TData, TWorldDim >
int m_si
 subset More...
 

Constructor & Destructor Documentation

◆ StdFuncIntegrand()

template<typename TGridFunction >
ug::StdFuncIntegrand< TGridFunction >::StdFuncIntegrand ( TGridFunction *  pGridFct,
size_t  cmp 
)
inline

constructor

◆ ~StdFuncIntegrand()

template<typename TGridFunction >
virtual ug::StdFuncIntegrand< TGridFunction >::~StdFuncIntegrand ( )
inlinevirtual

Member Function Documentation

◆ evaluate()

template<typename TGridFunction >
template<int elemDim>
void ug::StdFuncIntegrand< TGridFunction >::evaluate ( number  vValue[],
const MathVector< worldDim vGlobIP[],
GridObject pElem,
const MathVector< worldDim vCornerCoords[],
const MathVector< elemDim >  vLocIP[],
const MathMatrix< elemDim, worldDim vJT[],
const size_t  numIP 
)
inline

returns the values of the integrand for a bunch of ips

Parameters
vValue[out]the value of the integrand at the ips
vGlobIP[in]global integration point positions
pElem[in]the element to integrate
vCornerCoords[in]corner coordinates of the element
vLocIP[in]local integration point positions
vJT[in]jacobian transposed at integration point
numIP[in]number of integration points

References ug::DoFRef(), ug::StdFuncIntegrand< TGridFunction >::m_fct, ug::StdFuncIntegrand< TGridFunction >::m_pGridFct, ug::LocalDoFSet::num_sh(), ug::GridObject::reference_object_id(), ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::shape(), UG_CATCH_THROW, and UG_COND_THROW.

◆ set_subset()

template<typename TGridFunction >
virtual void ug::StdFuncIntegrand< TGridFunction >::set_subset ( int  si)
inlinevirtual

Member Data Documentation

◆ m_fct

template<typename TGridFunction >
const size_t ug::StdFuncIntegrand< TGridFunction >::m_fct
private

◆ m_pGridFct

template<typename TGridFunction >
TGridFunction* ug::StdFuncIntegrand< TGridFunction >::m_pGridFct
private

◆ worldDim

template<typename TGridFunction >
const int ug::StdFuncIntegrand< TGridFunction >::worldDim = TGridFunction::dim
static

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