ug4
ug::UserDataIntegrand< TData, TGridFunction > Class Template Reference

For arbitrary UserData \(\rho\), this class defines the integrand \(\rho(u)\). More...

#include <integrate.h>

+ Inheritance diagram for ug::UserDataIntegrand< TData, TGridFunction >:

Public Types

typedef TData data_type
 
- Public Types inherited from ug::StdIntegrand< TData, TGridFunction::dim, UserDataIntegrand< TData, TGridFunction > >
typedef TData data_type
 data type More...
 
- Public Types inherited from ug::IIntegrand< TData, TWorldDim >
typedef TData data_type
 data type More...
 

Public Member Functions

template<int elemDim>
void evaluate (TData 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...
 
 UserDataIntegrand (SmartPtr< UserData< TData, worldDim > > spData, number time)
 constructor More...
 
 UserDataIntegrand (SmartPtr< UserData< TData, worldDim > > spData, TGridFunction *spGridFct, number time)
 constructor More...
 
- Public Member Functions inherited from ug::StdIntegrand< TData, TGridFunction::dim, UserDataIntegrand< TData, TGridFunction > >
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)
 
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)
 
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)
 
- Public Member Functions inherited from ug::IIntegrand< TData, TWorldDim >
virtual void set_subset (int si)
 sets the subset More...
 
int subset () const
 returns the subset More...
 
virtual ~IIntegrand ()
 

Static Public Attributes

static const int worldDim = TGridFunction::dim
 
- Static Public Attributes inherited from ug::StdIntegrand< TData, TGridFunction::dim, UserDataIntegrand< TData, 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

SmartPtr< UserData< TData, worldDim > > m_spData
 
TGridFunction * m_spGridFct
 
number m_time
 

Additional Inherited Members

- Protected Member Functions inherited from ug::StdIntegrand< TData, TGridFunction::dim, UserDataIntegrand< TData, TGridFunction > >
UserDataIntegrand< TData, TGridFunction > & getImpl ()
 access to implementation More...
 
const UserDataIntegrand< TData, TGridFunction > & getImpl () const
 const access to implementation More...
 
- Protected Attributes inherited from ug::IIntegrand< TData, TWorldDim >
int m_si
 subset More...
 

Detailed Description

template<typename TData, typename TGridFunction>
class ug::UserDataIntegrand< TData, TGridFunction >

For arbitrary UserData \(\rho\), this class defines the integrand \(\rho(u)\).

Member Typedef Documentation

◆ data_type

template<typename TData , typename TGridFunction >
typedef TData ug::UserDataIntegrand< TData, TGridFunction >::data_type

Constructor & Destructor Documentation

◆ UserDataIntegrand() [1/2]

template<typename TData , typename TGridFunction >
ug::UserDataIntegrand< TData, TGridFunction >::UserDataIntegrand ( SmartPtr< UserData< TData, worldDim > >  spData,
TGridFunction *  spGridFct,
number  time 
)
inline

◆ UserDataIntegrand() [2/2]

template<typename TData , typename TGridFunction >
ug::UserDataIntegrand< TData, TGridFunction >::UserDataIntegrand ( SmartPtr< UserData< TData, worldDim > >  spData,
number  time 
)
inline

Member Function Documentation

◆ evaluate()

template<typename TData , typename TGridFunction >
template<int elemDim>
void ug::UserDataIntegrand< TData, TGridFunction >::evaluate ( TData  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::GetLocalVector(), ug::IIntegrand< TData, TWorldDim >::m_si, ug::UserDataIntegrand< TData, TGridFunction >::m_spData, ug::UserDataIntegrand< TData, TGridFunction >::m_spGridFct, ug::UserDataIntegrand< TData, TGridFunction >::m_time, ug::LocalVector::resize(), and UG_CATCH_THROW.

Member Data Documentation

◆ m_spData

template<typename TData , typename TGridFunction >
SmartPtr<UserData<TData, worldDim> > ug::UserDataIntegrand< TData, TGridFunction >::m_spData
private

◆ m_spGridFct

template<typename TData , typename TGridFunction >
TGridFunction* ug::UserDataIntegrand< TData, TGridFunction >::m_spGridFct
private

◆ m_time

template<typename TData , typename TGridFunction >
number ug::UserDataIntegrand< TData, TGridFunction >::m_time
private

◆ worldDim

template<typename TData , typename TGridFunction >
const int ug::UserDataIntegrand< TData, TGridFunction >::worldDim = TGridFunction::dim
static

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