18 template <
class K,
unsigned int dim>
19 class LagrangePointSetBuilder;
28 template <
class K,
unsigned int dim>
51 template <GeometryType::Id geometryId>
60 template <GeometryType::Id geometryId>
70 Impl::LagrangePointSetBuilder<K,dim> builder_;
78 template <
class K,
unsigned int dim>
79 class LagrangePointSetBuilder
82 template <
class Po
ints>
86 "Lagrange points not yet implemented for this GeometryType.");
93 class LagrangePointSetBuilder<K,0>
95 static constexpr int dim = 0;
96 using LP = LagrangePoint<K,dim>;
97 using Vec =
typename LP::Vector;
101 template <
class Po
ints>
102 void operator()(GeometryType gt,
int , Points& points)
const;
108 class LagrangePointSetBuilder<K,1>
110 static constexpr int dim = 1;
111 using LP = LagrangePoint<K,dim>;
112 using Vec =
typename LP::Vector;
113 using Key = LocalKey;
116 template <
class Po
ints>
117 void operator()(GeometryType gt,
int order, Points& points)
const;
123 class LagrangePointSetBuilder<K,2>
125 static constexpr int dim = 2;
126 using LP = LagrangePoint<K,dim>;
127 using Vec =
typename LP::Vector;
128 using Key = LocalKey;
130 friend class LagrangePointSetBuilder<K,3>;
133 template <
class Po
ints>
134 void operator()(GeometryType gt,
int order, Points& points)
const;
141 template <
class Po
ints>
142 void buildTriangle (
int order, Points& points)
const;
152 template <
class Po
ints>
153 void buildQuad(
int orderx,
int ordery, Points& points)
const;
163 class LagrangePointSetBuilder<K,3>
165 static constexpr int dim = 3;
166 using LP = LagrangePoint<K,dim>;
167 using Vec =
typename LP::Vector;
168 using Key = LocalKey;
171 template <
class Po
ints>
172 void operator() (GeometryType gt,
unsigned int order, Points& points)
const;
180 template <
class Po
ints>
181 void buildTetra (
int order, Points& points)
const;
191 template <
class Po
ints>
192 void buildHex (
int order, Points& points)
const;
200 template <
class Po
ints>
201 void buildWedge (
int order_tri,
int order_quad, Points& points)
const;
204 template <
class K,
unsigned int dim>
205 class LexicographicPointSetBuilder
209 template <
class Po
ints>
210 static void buildLine(
int a, Points& points);
214 template <
class Po
ints>
215 static void buildQuad(
int a,
int b, Points& points);
220 template <
class Po
ints>
221 static void buildHex(
int a,
int b,
int c, Points& points);
Definition datacollector.hh:19
std::ptrdiff_t index() const
virtual void operator()()=0
#define DUNE_THROW(E,...)
std::size_t order() const
std::vector< LagrangePoint > points_
Implementation of DataCollector for cells, with continuous data.
Definition celltypedatacollector.hh:20
A set of lagrange points compatible with the numbering of VTK and Gmsh.
Definition lagrangepoints.hh:31
bool build()
Fill the lagrange points for the given topology type Topology
Definition lagrangepoints.hh:52
LagrangePointSet(std::size_t order)
Definition lagrangepoints.hh:37
void build(GeometryType gt)
Fill the lagrange points for the given geometry type.
Definition lagrangepoints.hh:44
static bool supports(std::size_t)
Definition lagrangepoints.hh:61
static const unsigned int dimension
Definition lagrangepoints.hh:35