OGS
NumLib::IntegrationPoint Class Reference

Detailed Description

Integration rule for point elements.

The integration order is not stored or used for point integration. It is only needed to satisfy the common integration rule concepts.

Definition at line 21 of file IntegrationPoint.h.

#include <IntegrationPoint.h>

Public Member Functions

 IntegrationPoint (unsigned)
 IntegrationPoint constructor for given order.
 

Static Public Member Functions

static void setIntegrationOrder (unsigned)
 Change the integration order.
 
static constexpr unsigned getIntegrationOrder ()
 Return current integration order.
 
static constexpr unsigned getNumberOfPoints ()
 Return the number of sampling points.
 
static MathLib::WeightedPoint getWeightedPoint (unsigned const igp)
 
static MathLib::WeightedPoint getWeightedPoint (unsigned const order, unsigned const igp)
 
template<typename Method >
static MathLib::WeightedPoint getWeightedPoint (unsigned)
 
static constexpr unsigned getNumberOfPoints (unsigned order)
 

Constructor & Destructor Documentation

◆ IntegrationPoint()

NumLib::IntegrationPoint::IntegrationPoint ( unsigned )
inlineexplicit

IntegrationPoint constructor for given order.

Definition at line 25 of file IntegrationPoint.h.

25{}

Member Function Documentation

◆ getIntegrationOrder()

static constexpr unsigned NumLib::IntegrationPoint::getIntegrationOrder ( )
inlinestaticconstexpr

Return current integration order.

Definition at line 31 of file IntegrationPoint.h.

31{ return 0; }

Referenced by getWeightedPoint().

◆ getNumberOfPoints() [1/2]

static constexpr unsigned NumLib::IntegrationPoint::getNumberOfPoints ( )
inlinestaticconstexpr

Return the number of sampling points.

Definition at line 34 of file IntegrationPoint.h.

34{ return 1; }

◆ getNumberOfPoints() [2/2]

static constexpr unsigned NumLib::IntegrationPoint::getNumberOfPoints ( unsigned order)
inlinestaticconstexpr

Get the number of integration points.

Parameters
orderthe number of integration points
Returns
the number of points.

Definition at line 64 of file IntegrationPoint.h.

65 {
66 (void)order;
67 return 1;
68 }

◆ getWeightedPoint() [1/3]

static MathLib::WeightedPoint NumLib::IntegrationPoint::getWeightedPoint ( unsigned const igp)
inlinestatic

Get coordinates of the integration point.

Parameters
igpThe integration point index
Returns
a weighted point

Definition at line 39 of file IntegrationPoint.h.

40 {
42 }
static constexpr unsigned getIntegrationOrder()
Return current integration order.
static MathLib::WeightedPoint getWeightedPoint(unsigned const igp)

References getIntegrationOrder(), and getWeightedPoint().

Referenced by getWeightedPoint().

◆ getWeightedPoint() [2/3]

static MathLib::WeightedPoint NumLib::IntegrationPoint::getWeightedPoint ( unsigned const order,
unsigned const igp )
inlinestatic

Get coordinates of the integration point.

Parameters
orderThe number of integration points
igpThe integration point index
Returns
a weighted point

Definition at line 47 of file IntegrationPoint.h.

48 {
49 (void)order;
50 (void)igp;
51 return MathLib::WeightedPoint(1);
52 }

◆ getWeightedPoint() [3/3]

template<typename Method >
static MathLib::WeightedPoint NumLib::IntegrationPoint::getWeightedPoint ( unsigned )
inlinestatic

Definition at line 55 of file IntegrationPoint.h.

56 {
57 return MathLib::WeightedPoint(1);
58 }

◆ setIntegrationOrder()

static void NumLib::IntegrationPoint::setIntegrationOrder ( unsigned )
inlinestatic

Change the integration order.

Definition at line 28 of file IntegrationPoint.h.

28{}

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