|
dune-geometry 2.12-git
|
Loading...
Searching...
No Matches
quadraturerules.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
37// class specialization of standard classes that allow to use structured bindings on QuadraturePoint
40 struct tuple_size<Dune::QuadraturePoint<ct,dim>> : public std::integral_constant<std::size_t,2> {};
43 struct tuple_element<0, Dune::QuadraturePoint<ct,dim>> { using type = Dune::FieldVector<ct, dim>; };
130 namespace QuadratureType {
275 DUNE_EXPORT const QuadratureRule& _rule(const GeometryType& t, int p, QuadratureType::Enum qt=QuadratureType::GaussLegendre) const
289 auto& [ onceFlagGeometryType, quadratureOrders ] = geometryTypes[LocalGeometryTypeIndex::index(t)];
326 static const QuadratureRule& rule(const GeometryType& t, int p, QuadratureType::Enum qt=QuadratureType::GaussLegendre)
332 static const QuadratureRule& rule(const GeometryType::BasicType t, int p, QuadratureType::Enum qt=QuadratureType::GaussLegendre)
#define DUNE_EXPORT
Helper classes to provide indices for geometrytypes for use in a vector.
A unique label for each type of element that can occur in a grid.
STL namespace.
@ GaussJacobi_n_0
Gauss-Legendre rules with .
Definition quadraturerules.hh:168
@ GaussJacobi_2_0
Gauss-Legendre rules with .
Definition quadraturerules.hh:155
@ GaussRadauRight
Gauss-Radau rules including the right endpoint.
Definition quadraturerules.hh:193
@ GaussJacobi_1_0
Gauss-Jacobi rules with .
Definition quadraturerules.hh:148
@ GaussLobatto
Gauss-Lobatto rules.
Definition quadraturerules.hh:176
@ GaussRadauLeft
Gauss-Radau rules including the left endpoint.
Definition quadraturerules.hh:184
@ GaussLegendre
Gauss-Legendre rules (default)
Definition quadraturerules.hh:141
#define DUNE_ASSERT_CALL_ONCE()
size_type dim() const
Exception()
#define DUNE_THROW(E,...)
const Vector & position() const
return local coordinates of integration point i
Definition quadraturerules.hh:82
Dune::FieldVector< ct, dim > Vector
Type used for the position of a quadrature point.
Definition quadraturerules.hh:75
ct Field
Number type used for coordinates and quadrature weights.
Definition quadraturerules.hh:72
const ct & weight() const
return weight associated with integration point i
Definition quadraturerules.hh:88
static constexpr int dimension
Dimension of the integration domain.
Definition quadraturerules.hh:69
QuadraturePoint(const Vector &x, ct w)
set up quadrature of given order in d dimensions
Definition quadraturerules.hh:78
ct type
Definition quadraturerules.hh:46
Exception thrown if a desired QuadratureRule is not available, because the requested order is to high...
Definition quadraturerules.hh:55
virtual GeometryType type() const
return type of element
Definition quadraturerules.hh:240
QuadratureRule(GeometryType t, int order)
Constructor for a given geometry type and a given quadrature order.
Definition quadraturerules.hh:228
ct CoordType
The type used for coordinates.
Definition quadraturerules.hh:234
QuadratureRule()
Default constructor.
Definition quadraturerules.hh:221
QuadratureRule(GeometryType t)
Constructor for a given geometry type. Leaves the quadrature order invalid
Definition quadraturerules.hh:225
std::vector< QuadraturePoint< ct, dim > >::const_iterator iterator
Definition quadraturerules.hh:245
Factory class for creation of quadrature rules, depending on GeometryType, order and QuadratureType.
Definition quadraturerules.hh:370
A container for all quadrature rules of dimension dim
Definition quadraturerules.hh:260
static unsigned maxOrder(const GeometryType &t, QuadratureType::Enum qt=QuadratureType::GaussLegendre)
maximum quadrature order for given geometry type and quadrature type
Definition quadraturerules.hh:319
static const QuadratureRule & rule(const GeometryType::BasicType t, int p, QuadratureType::Enum qt=QuadratureType::GaussLegendre)
select the appropriate QuadratureRule for GeometryType t and order p
Definition quadraturerules.hh:332
static const QuadratureRule & rule(const GeometryType &t, int p, QuadratureType::Enum qt=QuadratureType::GaussLegendre)
select the appropriate QuadratureRule for GeometryType t and order p
Definition quadraturerules.hh:326
Unique label for each type of entities that can occur in DUNE grids.
Definition type.hh:114
constexpr bool isPrism() const
Return true if entity is a prism.
Definition type.hh:309
constexpr bool isVertex() const
Return true if entity is a vertex.
Definition type.hh:279
constexpr unsigned int dim() const
Return dimension of the type.
Definition type.hh:360
BasicType
Each entity can be tagged by one of these basic types plus its space dimension.
Definition type.hh:120
constexpr bool isLine() const
Return true if entity is a line segment.
Definition type.hh:284
constexpr unsigned int id() const
Return the topology id of the type.
Definition type.hh:365
constexpr bool isSimplex() const
Return true if entity is a simplex of any dimension.
Definition type.hh:319
T call_once(T... args)
T max(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8