![]() |
OGS
|
Gauss-Legendre quadrature rule for regular shape elements: line, quad and hex.
N_DIM | Spatial dimension |
Definition at line 28 of file IntegrationGaussLegendreRegular.h.
#include <IntegrationGaussLegendreRegular.h>
Public Types | |
using | WeightedPoint = typename MathLib::TemplateWeightedPoint< double, double, N_DIM > |
Public Member Functions | |
IntegrationGaussLegendreRegular (unsigned order=2) | |
void | setIntegrationOrder (unsigned order) |
Change the integration order. More... | |
unsigned | getIntegrationOrder () const |
return current integration order. More... | |
unsigned | getNumberOfPoints () const |
return the number of sampling points More... | |
WeightedPoint | getWeightedPoint (unsigned 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) |
template<typename Method > | |
MathLib::TemplateWeightedPoint< double, double, N_DIM > | getWeightedPoint (std::array< unsigned, N_DIM > const &pos) |
Static Public Member Functions | |
static std::array< unsigned, N_DIM > | getPositionIndices (unsigned order, unsigned igp) |
static WeightedPoint | getWeightedPoint (unsigned order, unsigned igp) |
Static Private Member Functions | |
template<typename Method > | |
static WeightedPoint | getWeightedPoint (std::array< unsigned, N_DIM > const &pos) |
Private Attributes | |
unsigned | _order |
unsigned | _n_sampl_pt {0} |
using NumLib::IntegrationGaussLegendreRegular< N_DIM >::WeightedPoint = typename MathLib::TemplateWeightedPoint<double, double, N_DIM> |
Definition at line 31 of file IntegrationGaussLegendreRegular.h.
|
inlineexplicit |
Create IntegrationGaussLegendreRegular of the given Gauss-Legendre integration order.
order | integration order (default 2) |
Definition at line 38 of file IntegrationGaussLegendreRegular.h.
References NumLib::IntegrationGaussLegendreRegular< N_DIM >::setIntegrationOrder().
|
inline |
return current integration order.
Definition at line 51 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 54 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.
|
inline |
Definition at line 81 of file IntegrationGaussLegendreRegular-impl.h.
|
staticprivate |
Computes weighted point using given integration method.
Method | Integration method to use. |
pos | Point indices computed by getPositionIndices. |
|
inline |
Get coordinates of the integration point.
igp | The integration point index |
Definition at line 60 of file IntegrationGaussLegendreRegular.h.
References NumLib::IntegrationGaussLegendreRegular< N_DIM >::getIntegrationOrder().
|
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.
|
inline |
Change the integration order.
Definition at line 44 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 91 of file IntegrationGaussLegendreRegular.h.
Referenced by NumLib::IntegrationGaussLegendreRegular< N_DIM >::getNumberOfPoints(), and NumLib::IntegrationGaussLegendreRegular< N_DIM >::setIntegrationOrder().
|
private |
Definition at line 90 of file IntegrationGaussLegendreRegular.h.
Referenced by NumLib::IntegrationGaussLegendreRegular< N_DIM >::getIntegrationOrder(), and NumLib::IntegrationGaussLegendreRegular< N_DIM >::setIntegrationOrder().