DFT-EFE
 
Loading...
Searching...
No Matches
dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim > Class Template Referenceabstract

Base class which provides access to the enrichment functions. More...

#include <EnrichmentManager.h>

Public Member Functions

virtual ~EnrichmentManager ()=default
 Destructor. More...
 
virtual int nFunctions () const =0
 Get number of enrichement functions. More...
 
virtual ValueTypeBasisData getValue (const size_type functionId, const utils::Point &point) const =0
 Get the value of an enrichment function at a point. More...
 
virtual ValueTypeBasisData getValue (const size_type functionId, const std::vector< double > &point) const =0
 Get the value of an enrichment function at a point. More...
 
virtual std::vector< ValueTypeBasisData > getValues (const int functionId, const std::vector< utils::Point > &points) const =0
 Get the value of an enriched function for a set of points. More...
 
virtual std::vector< ValueTypeBasisData > getValues (const int functionId, const std::vector< std::vector< double > > &points) const =0
 Get the value of an enriched function for a set of points. More...
 
virtual std::vector< ValueTypeBasisData > getDerivativeValue (const size_type functionId, const utils::Point &point, const size_type derivativeOrder) const =0
 Get the derivative of an enrichment function at a point. More...
 
virtual ValueTypeBasisData getDerivativeValue (const size_type functionId, const std::vector< double > &point, const size_type derivativeOrder) const =0
 Get the derivative of an enrichment function at a point. More...
 
virtual std::vector< std::vector< ValueTypeBasisData > > getDerivativeValues (const int functionId, const std::vector< utils::Point > &points, const size_type derivativeOrder) const =0
 Get the derivative of an enriched function for a set of points. More...
 
virtual std::vector< std::vector< ValueTypeBasisData > > getDerivativeValues (const int functionId, const std::vector< std::vector< double > > &points, const size_type derivativeOrder) const =0
 Get the derivative of an enriched function for a set of points. More...
 

Detailed Description

template<typename ValueTypeBasisData, size_type dim>
class dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >

Base class which provides access to the enrichment functions.

Template Parameters
ValueTypeBasisDatathe primitive data for the enrichment function (e.g., double, float, complex<double>, complex<float>, etc.).
dimdimension of the enrichment (e.g., 1D, 2D, 3D,...).

Constructor & Destructor Documentation

◆ ~EnrichmentManager()

template<typename ValueTypeBasisData , size_type dim>
virtual dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::~EnrichmentManager ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getDerivativeValue() [1/2]

template<typename ValueTypeBasisData , size_type dim>
virtual ValueTypeBasisData dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::getDerivativeValue ( const size_type  functionId,
const std::vector< double > &  point,
const size_type  derivativeOrder 
) const
pure virtual

Get the derivative of an enrichment function at a point.

Parameters
[in]functionIdindex of the enrichment function
[in]pointcoordinate of the point
[in]derivativeOrderorder of derivative
Returns
vector containing the derivative of the enrichment function at the point. The i-th value in the vector denotes the derivative with respect to the i-th coordinate of the point.

◆ getDerivativeValue() [2/2]

template<typename ValueTypeBasisData , size_type dim>
virtual std::vector< ValueTypeBasisData > dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::getDerivativeValue ( const size_type  functionId,
const utils::Point point,
const size_type  derivativeOrder 
) const
pure virtual

Get the derivative of an enrichment function at a point.

Parameters
[in]functionIdindex of the enrichment function
[in]pointcoordinate of the point
[in]derivativeOrderorder of derivative
Returns
vector containing the derivative of the enrichment function at the point. The i-th value in the value denotes the derivative with respect to the i-th coordinate of the point.

◆ getDerivativeValues() [1/2]

template<typename ValueTypeBasisData , size_type dim>
virtual std::vector< std::vector< ValueTypeBasisData > > dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::getDerivativeValues ( const int  functionId,
const std::vector< std::vector< double > > &  points,
const size_type  derivativeOrder 
) const
pure virtual

Get the derivative of an enriched function for a set of points.

Parameters
[in]functionIdindex of the enrichment function
[in]pointsvector of Point containing the coordinates of all the input points
[in]derivativeOrderorder of derivative
Returns
2D vector containing the derivative of the enrichment function at all the input points. The (i,j)-th value in the 2D vector denotes the derivative with respect to the j-th coordinate of the i-th point.

◆ getDerivativeValues() [2/2]

template<typename ValueTypeBasisData , size_type dim>
virtual std::vector< std::vector< ValueTypeBasisData > > dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::getDerivativeValues ( const int  functionId,
const std::vector< utils::Point > &  points,
const size_type  derivativeOrder 
) const
pure virtual

Get the derivative of an enriched function for a set of points.

Parameters
[in]functionIdindex of the enrichment function
[in]pointsvector of Point containing the coordinates of all the input points
[in]derivativeOrderorder of derivative
Returns
2D vector containing the derivative of the enrichment function at all the input points. The (i,j)-th value in the 2D vector denotes the derivative with respect to the j-th coordinate of the i-th point.

◆ getValue() [1/2]

template<typename ValueTypeBasisData , size_type dim>
virtual ValueTypeBasisData dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::getValue ( const size_type  functionId,
const std::vector< double > &  point 
) const
pure virtual

Get the value of an enrichment function at a point.

Parameters
[in]functionIdindex of the enrichment function
[in]pointcoordinate of the point
Returns
value of the enrichment function at the point

◆ getValue() [2/2]

template<typename ValueTypeBasisData , size_type dim>
virtual ValueTypeBasisData dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::getValue ( const size_type  functionId,
const utils::Point point 
) const
pure virtual

Get the value of an enrichment function at a point.

Parameters
[in]functionIdindex of the enrichment function
[in]pointcoordinate of the point
Returns
value of the enrichment function at the point

◆ getValues() [1/2]

template<typename ValueTypeBasisData , size_type dim>
virtual std::vector< ValueTypeBasisData > dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::getValues ( const int  functionId,
const std::vector< std::vector< double > > &  points 
) const
pure virtual

Get the value of an enriched function for a set of points.

Parameters
[in]functionIdindex of the enrichment function
[in]points2D vector containing the coordinates of all the input points. The expected format is such that points[i][j] should correspond to the j-th coordinate of the i-th point.
Returns
values of the enrichment function on all the input points

◆ getValues() [2/2]

template<typename ValueTypeBasisData , size_type dim>
virtual std::vector< ValueTypeBasisData > dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::getValues ( const int  functionId,
const std::vector< utils::Point > &  points 
) const
pure virtual

Get the value of an enriched function for a set of points.

Parameters
[in]functionIdindex of the enrichment function
[in]pointsvector of Point containing the coordinates of all the input points
Returns
values of the enrichment function on all the input points

◆ nFunctions()

template<typename ValueTypeBasisData , size_type dim>
virtual int dftefe::basis::EnrichmentManager< ValueTypeBasisData, dim >::nFunctions ( ) const
pure virtual

Get number of enrichement functions.

Returns
Number of enrichment functions.

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