OGS
|
Gauss-Legendre quadrature rule for regular shape elements: line, quad and hex.
N_DIM | Spatial dimension |
Definition at line 29 of file IntegrationGaussLegendreRegular.h.
#include <IntegrationGaussLegendreRegular.h>
Public Member Functions | |
IntegrationGaussLegendreRegular (unsigned order=2) | |
void | setIntegrationOrder (unsigned order) |
Change the integration order. | |
unsigned | getIntegrationOrder () const |
return current integration order. | |
unsigned | getNumberOfPoints () const |
return the number of sampling points | |
MathLib::WeightedPoint | getWeightedPoint (unsigned const igp) const |
std::array< unsigned, 1 > | getPositionIndices (unsigned, unsigned igp) |
std::array< unsigned, 2 > | getPositionIndices (unsigned order, unsigned igp) |
std::array< unsigned, 3 > | getPositionIndices (unsigned order, unsigned igp) |
Static Public Member Functions | |
static std::array< unsigned, N_DIM > | getPositionIndices (unsigned order, unsigned igp) |
static MathLib::WeightedPoint | getWeightedPoint (unsigned const order, unsigned const igp) |
Static Private Member Functions | |
template<typename Method > | |
static MathLib::WeightedPoint | getWeightedPoint (std::array< unsigned, N_DIM > const &pos) |
Private Attributes | |
unsigned | _order |
unsigned | _n_sampl_pt {0} |
|
inlineexplicit |
Create IntegrationGaussLegendreRegular of the given Gauss-Legendre integration order.
order | integration order (default 2) |
Definition at line 36 of file IntegrationGaussLegendreRegular.h.
References NumLib::IntegrationGaussLegendreRegular< N_DIM >::setIntegrationOrder().
|
inline |
return current integration order.
Definition at line 49 of file IntegrationGaussLegendreRegular.h.
References NumLib::IntegrationGaussLegendreRegular< N_DIM >::_order.
Referenced by NumLib::IntegrationGaussLegendreRegular< N_DIM >::getWeightedPoint().
|
inline |
return the number of sampling points
Definition at line 52 of file IntegrationGaussLegendreRegular.h.
References NumLib::IntegrationGaussLegendreRegular< N_DIM >::_n_sampl_pt.
|
inline |
Definition at line 29 of file IntegrationGaussLegendreRegular-impl.h.
|
inline |
Definition at line 41 of file IntegrationGaussLegendreRegular-impl.h.
|
static |
Get position indexes in r-s-t axis.
order | The number of integration points |
igp | The integration point index |
|
inline |
Definition at line 19 of file IntegrationGaussLegendreRegular-impl.h.
|
inlinestaticprivate |
Computes weighted point using given integration method.
Method | Integration method to use. |
pos | Point indices computed by getPositionIndices. |
Definition at line 79 of file IntegrationGaussLegendreRegular-impl.h.
|
inline |
Get coordinates of the integration point.
igp | The integration point index |
Definition at line 58 of file IntegrationGaussLegendreRegular.h.
References NumLib::IntegrationGaussLegendreRegular< N_DIM >::getIntegrationOrder(), and NumLib::IntegrationGaussLegendreRegular< N_DIM >::getWeightedPoint().
Referenced by NumLib::IntegrationGaussLegendreRegular< N_DIM >::getWeightedPoint().
|
inlinestatic |
Get coordinates of the integration point.
order | The number of integration points |
igp | The integration point index |
Definition at line 56 of file IntegrationGaussLegendreRegular-impl.h.
References OGS_FATAL.
|
inline |
Change the integration order.
Definition at line 42 of file IntegrationGaussLegendreRegular.h.
References NumLib::IntegrationGaussLegendreRegular< N_DIM >::_n_sampl_pt, and NumLib::IntegrationGaussLegendreRegular< N_DIM >::_order.
Referenced by NumLib::IntegrationGaussLegendreRegular< N_DIM >::IntegrationGaussLegendreRegular().
|
private |
Definition at line 90 of file IntegrationGaussLegendreRegular.h.
Referenced by NumLib::IntegrationGaussLegendreRegular< N_DIM >::getNumberOfPoints(), and NumLib::IntegrationGaussLegendreRegular< N_DIM >::setIntegrationOrder().
|
private |
Definition at line 89 of file IntegrationGaussLegendreRegular.h.
Referenced by NumLib::IntegrationGaussLegendreRegular< N_DIM >::getIntegrationOrder(), and NumLib::IntegrationGaussLegendreRegular< N_DIM >::setIntegrationOrder().