OpenBEM
Open-source framework for electromagnetic simulation with the boundary element method.
Loading...
Searching...
No Matches
bem::GaussTriangleQuadrature< dim > Class Template Reference

Class for Gaussian quadrature over a triangle. More...

#include <gauss.hpp>

+ Inheritance diagram for bem::GaussTriangleQuadrature< dim >:

Detailed Description

template<uint8_t dim>
class bem::GaussTriangleQuadrature< dim >

Class for Gaussian quadrature over a triangle.

Template Parameters
dim- Dimension of the triangle (2 or 3).

Definition at line 43 of file gauss.hpp.

Constructor & Destructor Documentation

◆ GaussTriangleQuadrature()

template<uint8_t dim>
bem::GaussTriangleQuadrature< dim >::GaussTriangleQuadrature ( const uint8_t  order = TRI_DEFAULT_ORDER)
inline

Constructs a GaussTriangleQuadrature object with a specified quadrature order.

Parameters
[in]order- Quadrature order (optional).

Important: this constructor loads tabulated quadrature data from a json file, and stores the tabulated quadrature data for all possible orders up to TRI_MAX_ORDER. Therefore, it is strongly recommended that objects of this class should be reused within loops, rather than creating a new object at each iteration of a long loop.

Definition at line 59 of file gauss.hpp.

Member Function Documentation

◆ set_order()

template<uint8_t dim>
void bem::GaussTriangleQuadrature< dim >::set_order ( const uint8_t  order)
overridevirtual

Sets the quadrature order.

Parameters
[in]order- Quadrature order.

Reimplemented from bem::TriangleQuadratureBase< dim >.

Definition at line 31 of file gauss.cpp.

◆ compute_points_weights()

template<uint8_t dim>
void bem::GaussTriangleQuadrature< dim >::compute_points_weights ( const Triangle< dim > &  tri,
std::function< EigRowVec< Complex >(ConstEigRef< EigMatNX< Float, dim > >)>  eval = {} 
)
overridevirtual

Computes and stores the points on which to evaluate the integrand, and the corresponding weights.

Parameters
[in]tri- Triangle for quadrature evaluation.
[in]eval- Function or class with operator() that evaluates the integrand (optional, unused).

Implements bem::TriangleQuadratureBase< dim >.

Definition at line 48 of file gauss.cpp.

◆ ref_points()

template<uint8_t dim>
const EigMatNX< Float, 2 > & bem::GaussTriangleQuadrature< dim >::ref_points ( ) const
inline

Returns the evaluation points in the reference unit triangle.

Returns
Read-only reference to the reference triangle evaluation points.

Definition at line 90 of file gauss.hpp.

◆ ref_weights()

template<uint8_t dim>
const EigRowVec< Float > & bem::GaussTriangleQuadrature< dim >::ref_weights ( ) const
inline

Returns the weights associated with the evaluation points in the reference unit triangle.

Returns
Read-only reference to the reference triangle weights.

Definition at line 97 of file gauss.hpp.

◆ order()

template<uint8_t dim>
uint8_t bem::TriangleQuadratureBase< dim >::order ( ) const
inlineinherited

Returns the quadrature order.

Returns
Quadrature order.

Definition at line 74 of file base.hpp.

◆ points()

template<uint8_t dim>
const EigMatNX< Float, dim > & bem::TriangleQuadratureBase< dim >::points ( ) const
inlineinherited

Returns the points on which to evaluate the integrand.

Returns
Read-only reference to the evaluation points.

Definition at line 81 of file base.hpp.

◆ weights()

template<uint8_t dim>
const EigRowVec< Float > & bem::TriangleQuadratureBase< dim >::weights ( ) const
inlineinherited

Returns the weights associated with the points on which the integrand is evaluated.

Returns
Read-only reference to the weights.

Definition at line 94 of file base.hpp.

Member Data Documentation

◆ points_

template<uint8_t dim>
EigMatNX<Float, dim> bem::TriangleQuadratureBase< dim >::points_
protectedinherited

Definition at line 105 of file base.hpp.

◆ weights_

template<uint8_t dim>
EigRowVec<Float> bem::TriangleQuadratureBase< dim >::weights_
protectedinherited

Definition at line 106 of file base.hpp.

◆ order_

template<uint8_t dim>
uint8_t bem::TriangleQuadratureBase< dim >::order_ = TRI_DEFAULT_ORDER
protectedinherited

Definition at line 107 of file base.hpp.

◆ points_weights_computed_

template<uint8_t dim>
bool bem::TriangleQuadratureBase< dim >::points_weights_computed_ = false
protectedinherited

Definition at line 108 of file base.hpp.


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