Go to the documentation of this file.
6 #ifndef linDG2Dspace_hh
7 #define linDG2Dspace_hh
18 class BoundaryConditions;
34 typedef std::unordered_map<uint, Triangle*>
Map;
50 virtual std::ostream&
info(std::ostream& os)
const;
52 uint idx[])
const = 0;
65 inline S*
clone()
const {
return new S(*
this); }
91 virtual std::ostream&
info(std::ostream& os)
const;
97 virtual uint
nDoF_()
const {
return 3; }
113 virtual std::ostream&
info(std::ostream& os)
const;
118 virtual uint
nDoF_()
const {
return 1; }
128 static inline uint
dim() {
return 2; }
134 static inline uint
dim() {
return 2; }
140 static inline uint
dim() {
return 2; }
146 #endif // linDG2Dspace_hh
static bool boundaryElements()
static bool positionConnection()
Scan< Element< Real > > Scanner
Triangle & connector() const
Returns the triangle connector (topology)
virtual Triangle * newElm_(const concepts::Triangle2d &cell, uint idx[]) const
Abstract base class of spaces for DG FEM in 2D on triangles.
Triangular element with orthogonal linear shape functions in 2D.
virtual uint nDoF_() const =0
Abstract class for a space.
SpaceP1(concepts::Mesh2 &msh)
Constructor.
std::unordered_map< uint, Triangle * > Map
virtual Scanner * scan() const
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
virtual uint nDoF_() const
Returns number of degrees of freedom per element.
static bool positionConnection()
virtual std::ostream & info(std::ostream &os) const
DG FEM for 2D problems using piecewise linear shape functions.
virtual void constructor_(concepts::Mesh2 &mesh)
Exception class for assertions.
virtual const Triangle & elm(const concepts::Triangle2d *cell) const
Returns the element on triangle cell.
static bool boundaryElements()
const Key & key() const
Returns the key of the connector.
Triangle & operator++(int)
Space for linear DG FEM in 2D on triangles.
void(* SMap)(const concepts::TColumn< Real > &, concepts::TColumn< Real > &)
An abstract class for 2D meshes.
virtual uint nDoF_() const
Map elm_
List of elements.
Triangular element with constant shape function in 2D.
virtual uint nelm() const
Returns the number of elements in the space.
Abstract base class for triangular elements in 2D DGFEM.
Space for piecewise constant DG FEM in 2D on triangles.
virtual std::ostream & info(std::ostream &os) const
virtual uint dim() const
Returns the dimension of the space.
static bool positionConnection()
SpaceP0(concepts::Mesh2 &msh)
Constructor.
virtual std::ostream & info(std::ostream &os) const
virtual Triangle * newElm_(const concepts::Triangle2d &cell, uint idx[]) const =0
uint nelm_
Number of elements.
double Real
Type normally used for a floating point number.
uint dim_
Number of degrees of freedom.
Basic namespace for Concepts-2.
static bool boundaryElements()
virtual Triangle * newElm_(const concepts::Triangle2d &cell, uint idx[]) const