IFEM 90A354
Public Member Functions | Private Attributes | List of all members
L2FuncIntegrand Class Reference

Evaluation class for functions. More...

#include <GlbL2projector.h>

Inheritance diagram for L2FuncIntegrand:
Inheritance graph
[legend]
Collaboration diagram for L2FuncIntegrand:
Collaboration graph
[legend]

Public Member Functions

 L2FuncIntegrand (const ASMbase &patch, const FunctionBase &func, double time=0.0)
 The constructor initializes the function reference.
 
bool evaluate (Matrix &sField, const RealArray *gpar) const override
 Evaluates the function in a set of points.
 
size_t dim () const override
 Returns number of function components.
 
- Public Member Functions inherited from L2Integrand
 L2Integrand (const ASMbase &patch)
 The constructor initializes the patch reference.
 
virtual ~L2Integrand ()
 Empty destructor.
 
double getTimeLevel () const
 Returns current time/load parameter for 2ndary solution evaluation.
 

Private Attributes

const FunctionBasem_func
 Reference to function.
 

Additional Inherited Members

- Protected Attributes inherited from L2Integrand
const ASMbasem_patch
 Reference to ASM holding geometry.
 
double myTime
 Current time or load parameter.
 

Detailed Description

Evaluation class for functions.

Constructor & Destructor Documentation

◆ L2FuncIntegrand()

L2FuncIntegrand::L2FuncIntegrand ( const ASMbase patch,
const FunctionBase func,
double  time = 0.0 
)

The constructor initializes the function reference.

Parameters
[in]patchASM holding geometry to evaluate on
[in]funcFunction to evaluate
[in]timeCurrent time

References L2Integrand::myTime.

Member Function Documentation

◆ dim()

size_t L2FuncIntegrand::dim ( ) const
overridevirtual

Returns number of function components.

Implements L2Integrand.

References FunctionBase::dim(), and m_func.

◆ evaluate()

bool L2FuncIntegrand::evaluate ( Matrix sField,
const RealArray gpar 
) const
overridevirtual

Evaluates the function in a set of points.

Parameters
[out]sFieldMatrix with results
[in]gparPoints to evaluate in

Implements L2Integrand.

References FunctionBase::dim(), ASMbase::evalPoint(), utl::matrix< T >::fillColumn(), ASMbase::getNoSpaceDim(), ASMbase::getParameterDomain(), FunctionBase::getValue(), m_func, L2Integrand::m_patch, L2Integrand::myTime, and utl::matrix< T >::resize().


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