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

Class for Gaussian quadrature over a line segment. More...

#include <gauss.hpp>

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

Detailed Description

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

Class for Gaussian quadrature over a line segment.

Template Parameters
dim- Dimension of the line segment (1, 2, or 3).

Definition at line 44 of file gauss.hpp.

Constructor & Destructor Documentation

◆ GaussLineQuadrature()

template<uint8_t dim>
bem::GaussLineQuadrature< dim >::GaussLineQuadrature ( const uint8_t  order = LINE_DEFAULT_ORDER)
inline

Constructs a GaussLineQuadrature 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 LINE_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 60 of file gauss.hpp.

Member Function Documentation

◆ set_order()

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

Sets the quadrature order.

Parameters
[in]order- Quadrature order.

Reimplemented from bem::LineQuadratureBase< dim >.

Definition at line 29 of file gauss.cpp.

◆ compute_points_weights()

template<uint8_t dim>
void bem::GaussLineQuadrature< dim >::compute_points_weights ( ConstEigRef< EigColVecN< Float, dim > >  p1,
ConstEigRef< EigColVecN< Float, dim > >  p2,
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]p1- First point of the line segment.
[in]p2- Second point of the line segment.
[in]eval- Function or class with operator() that evaluates the integrand (optional, unused).

Implements bem::LineQuadratureBase< dim >.

Definition at line 47 of file gauss.cpp.

◆ ref_points()

template<uint8_t dim>
const EigRowVec< Float > & bem::GaussLineQuadrature< dim >::ref_points ( ) const
inline

Returns the evaluation points in the reference unit line segment.

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

Definition at line 93 of file gauss.hpp.

◆ ref_weights()

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

Returns the weights associated with the evaluation points in the reference unit line segment.

Returns
Read-only reference to the reference segment weights.

Definition at line 100 of file gauss.hpp.

◆ order()

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

Returns the quadrature order.

Returns
Quadrature order.

Definition at line 76 of file base.hpp.

◆ points()

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

Returns the points on which to evaluate the integrand.

Returns
Read-only reference to the evaluation points.

Definition at line 83 of file base.hpp.

◆ weights()

template<uint8_t dim>
const EigRowVec< Float > & bem::LineQuadratureBase< 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 96 of file base.hpp.

Member Data Documentation

◆ rule_file_

template<uint8_t dim>
std::string bem::GaussLineQuadrature< dim >::rule_file_ = "line_quad_gauss.json"
protected

Definition at line 105 of file gauss.hpp.

◆ rules_

template<uint8_t dim>
std::vector<QuadratureRule<1> > bem::GaussLineQuadrature< dim >::rules_
protected

Definition at line 106 of file gauss.hpp.

◆ points_

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

Definition at line 107 of file base.hpp.

◆ weights_

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

Definition at line 108 of file base.hpp.

◆ order_

template<uint8_t dim>
uint8_t bem::LineQuadratureBase< dim >::order_ = LINE_DEFAULT_ORDER
protectedinherited

Definition at line 110 of file base.hpp.

◆ points_weights_computed_

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

Definition at line 111 of file base.hpp.


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