CRTP base class of all quadratures.
More...
#include <quadrature.hpp>
|
| quadrature_base (size_t N=0) |
| constructor allocating space for the quadrature elements More...
|
|
scalar_t | sum_of_weights (void) const |
| return sum of quadrature weights More...
|
|
std::ostream & | print (std::ostream &os) const |
| print a quadrature into an output stream More...
|
|
Derived & | operator*= (scalar_t const &c) |
| multiply the quadrature by a scalar More...
|
|
template<class LSet , bool Signed = true> |
Derived | transform (Eigen::Matrix< scalar_t, LSet::num_nodes, LSet::domain_t::dimension > const &coords) const |
| transform the domain of the quadrature with a given shape set and corner points More...
|
|
template<class LSet , bool Signed = true> |
Derived & | transform_inplace (const Eigen::Matrix< scalar_t, LSet::num_nodes, LSet::domain_t::dimension > &coords) |
| transform the domain of the quadrature in place More...
|
|
template<class otherDerived > |
Derived | operator+ (const quadrature_base< otherDerived > &other) const |
| add two quadratures More...
|
|
template<class otherDerived > |
Derived & | operator+= (const quadrature_base< otherDerived > &other) |
| add another quadrature to this More...
|
|
template<class Derived>
class NiHu::quadrature_base< Derived >
CRTP base class of all quadratures.
- Template Parameters
-
Derived | the CRTP derived class |
Definition at line 157 of file quadrature.hpp.
◆ quadrature_base()
constructor allocating space for the quadrature elements
- Parameters
-
N | number of quadrature elements |
Definition at line 182 of file quadrature.hpp.
◆ operator*=()
multiply the quadrature by a scalar
- Parameters
-
[in] | c | the scalar multiplier |
- Returns
- reference to the the new quadrature
Definition at line 217 of file quadrature.hpp.
◆ operator+()
template<class Derived >
template<class otherDerived >
add two quadratures
- Template Parameters
-
otherDerived | other quadrature type |
- Parameters
-
[in] | other | the other quadrature |
- Returns
- new quadrature
It is assured that the dimensions match.
Definition at line 276 of file quadrature.hpp.
◆ operator+=()
template<class Derived >
template<class otherDerived >
add another quadrature to this
It is assured that the dimensions match.
- Template Parameters
-
otherDerived | other quadrature type |
- Parameters
-
[in] | other | the other quadrature |
- Returns
- reference to the new quadrature
Definition at line 294 of file quadrature.hpp.
◆ print()
print a quadrature into an output stream
- Parameters
-
- Returns
- reference to the stream
Definition at line 204 of file quadrature.hpp.
◆ sum_of_weights()
return sum of quadrature weights
- Returns
- sum of weights
Definition at line 191 of file quadrature.hpp.
◆ transform()
template<class Derived >
template<class LSet , bool Signed = true>
Derived NiHu::quadrature_base< Derived >::transform |
( |
Eigen::Matrix< scalar_t, LSet::num_nodes, LSet::domain_t::dimension > const & |
coords | ) |
const |
|
inline |
transform the domain of the quadrature with a given shape set and corner points
- Template Parameters
-
LSet | shape set type of transformation |
Signed | indicates if the sign of the Jacobian needs to be taken into ancount |
- Parameters
-
[in] | coords | corner coordinates of transformed domain |
- Returns
- transformed quadrature
- Todo:
- this transformation is sick, does not fit into our quadrature scheme conceptually
Definition at line 233 of file quadrature.hpp.
◆ transform_inplace()
template<class Derived >
template<class LSet , bool Signed = true>
Derived& NiHu::quadrature_base< Derived >::transform_inplace |
( |
const Eigen::Matrix< scalar_t, LSet::num_nodes, LSet::domain_t::dimension > & |
coords | ) |
|
|
inline |
transform the domain of the quadrature in place
- Template Parameters
-
LSet | shape set type of transformation |
Signed | indicates if the sign of the Jacobian needs to be taken into ancount |
- Parameters
-
[in] | coords | corner coordinates of transformed domain |
- Returns
- reference to the transformed quadrature
Definition at line 254 of file quadrature.hpp.
The documentation for this class was generated from the following file: