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 Types

using WeightedPoint = MathLib::TemplateWeightedPoint< double, double, 1 >
 

Public Member Functions

 IntegrationPoint (unsigned)
 IntegrationPoint constructor for given order. More...
 

Static Public Member Functions

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

Member Typedef Documentation

◆ WeightedPoint

Definition at line 24 of file IntegrationPoint.h.

Constructor & Destructor Documentation

◆ IntegrationPoint()

NumLib::IntegrationPoint::IntegrationPoint ( unsigned  )
inlineexplicit

IntegrationPoint constructor for given order.

Definition at line 27 of file IntegrationPoint.h.

27 {}

Member Function Documentation

◆ getIntegrationOrder()

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

Return current integration order.

Definition at line 33 of file IntegrationPoint.h.

33 { return 0; }

Referenced by getWeightedPoint().

◆ getNumberOfPoints() [1/2]

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

Return the number of sampling points.

Definition at line 36 of file IntegrationPoint.h.

36 { 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 66 of file IntegrationPoint.h.

67  {
68  (void)order;
69  return 1;
70  }

◆ getWeightedPoint() [1/3]

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

Get coordinates of the integration point.

Parameters
igpThe integration point index
Returns
a weighted point

Definition at line 41 of file IntegrationPoint.h.

42  {
44  }
static constexpr unsigned getIntegrationOrder()
Return current integration order.
static WeightedPoint getWeightedPoint(unsigned igp)

References getIntegrationOrder().

◆ getWeightedPoint() [2/3]

static WeightedPoint NumLib::IntegrationPoint::getWeightedPoint ( unsigned  order,
unsigned  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 49 of file IntegrationPoint.h.

50  {
51  (void)order;
52  (void)igp;
53  return WeightedPoint({{1}}, 1);
54  }
MathLib::TemplateWeightedPoint< double, double, 1 > WeightedPoint

◆ getWeightedPoint() [3/3]

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

Definition at line 57 of file IntegrationPoint.h.

58  {
59  return WeightedPoint({{1}}, 1);
60  }

◆ setIntegrationOrder()

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

Change the integration order.

Definition at line 30 of file IntegrationPoint.h.

30 {}

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