![]() |
OGS
|
Gauss-Legendre quadrature rule for triangles.
Gauss-Legendre quadrature rule for triangles is originally given as
\[ \int F(x,y) dx dy = \int F(x(r, s), y(r, s)) j(r,s) dr ds \approx \frac{1}{2} \sum_i ( F(x(r_i, s_i), y(r_i, s_i)) w_i ) \]
To make it consistent with other elements, we rewrite the above formula as
\[ \int F(x,y) dx dy \approx \sum_i ( F(x(r_i, s_i), y(r_i, s_i)) w'_i ) \]
by defining the new weight \( w'=\frac{1}{2} w \).
Definition at line 36 of file IntegrationGaussLegendreTri.h.
#include <IntegrationGaussLegendreTri.h>
Public Member Functions | |
| IntegrationGaussLegendreTri (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 |
Static Public Member Functions | |
| static MathLib::WeightedPoint | getWeightedPoint (unsigned const order, unsigned const igp) |
| template<typename Method > | |
| static MathLib::WeightedPoint | getWeightedPoint (unsigned const igp) |
| static unsigned | getNumberOfPoints (unsigned order) |
Private Attributes | |
| unsigned | _order |
| unsigned | _n_sampl_pt {0} |
|
inlineexplicit |
Construct this object with the given integration order
| order | integration order (default 2) |
Definition at line 44 of file IntegrationGaussLegendreTri.h.
References setIntegrationOrder().
|
inline |
return current integration order.
Definition at line 57 of file IntegrationGaussLegendreTri.h.
References _order.
Referenced by getWeightedPoint().
|
inline |
return the number of sampling points
Definition at line 60 of file IntegrationGaussLegendreTri.h.
References _n_sampl_pt.
Referenced by setIntegrationOrder().
|
inlinestatic |
get the number of integration points
| order | the number of integration points |
Definition at line 109 of file IntegrationGaussLegendreTri.h.
References OGS_FATAL.
|
inlinestatic |
Definition at line 98 of file IntegrationGaussLegendreTri.h.
|
inline |
get coordinates of a integration point
| igp | The integration point index |
Definition at line 68 of file IntegrationGaussLegendreTri.h.
References getIntegrationOrder(), and getWeightedPoint().
Referenced by getWeightedPoint(), and getWeightedPoint().
|
inlinestatic |
get coordinates of a integration point
| order | the number of integration points |
| igp | the sampling point id |
Definition at line 80 of file IntegrationGaussLegendreTri.h.
References getWeightedPoint(), and OGS_FATAL.
|
inline |
Change the integration order.
Definition at line 50 of file IntegrationGaussLegendreTri.h.
References _n_sampl_pt, _order, and getNumberOfPoints().
Referenced by IntegrationGaussLegendreTri().
|
private |
Definition at line 128 of file IntegrationGaussLegendreTri.h.
Referenced by getNumberOfPoints(), and setIntegrationOrder().
|
private |
Definition at line 127 of file IntegrationGaussLegendreTri.h.
Referenced by getIntegrationOrder(), and setIntegrationOrder().