FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
mapping_base.hpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6#pragma once
7
8// includes, FEAT
9#include <kernel/trafo/evaluator_base.hpp>
10
11namespace FEAT
12{
13 namespace Trafo
14 {
22 template<typename Mesh_>
24 {
25 public:
27 typedef Mesh_ MeshType;
29 typedef typename MeshType::ShapeType ShapeType;
31 static constexpr int world_dim = Mesh_::world_dim;
32
33 // Note:
34 // The following block serves as an element interface documentation and is therefore only
35 // visible to doxygen. The actual functionality has to be supplied by the implementation.
36#ifdef DOXYGEN
46 template<
47 typename Shape_ = ShapeType,
48 typename DataType_ = Real>
50 {
51 public:
53 typedef ... Type;
54 };
55
59 static constexpr int num_coeff = ...;
61 static constexpr int num_coeff_facet = ...;
62#endif // DOXYGEN
63
64 private:
69
70 protected:
73
82 explicit MappingBase(MeshType& mesh) :
83 _mesh(mesh)
84 {
85 }
86
87 public:
94 {
95 return _mesh;
96 }
97
99 const MeshType& get_mesh() const
100 {
101 return _mesh;
102 }
103
115 bool operator==(const MappingBase& other) const
116 {
117 return this == &other;
118 }
119 }; // class MappingBase<...>
120 } // namespace Trafo
121} // namespace FEAT
Trafo evaluator class template.
Trafo-Mapping base class.
MeshType & get_mesh()
Returns a reference to the underlying mesh.
MeshType & _mesh
mesh reference
static constexpr int world_dim
our image/world dimension
MappingBase(const MappingBase &)
deleted copy-constructor
MeshType::ShapeType ShapeType
shape type
MappingBase(MeshType &mesh)
Constructor.
static constexpr int num_coeff
bool operator==(const MappingBase &other) const
Comparison operator.
static constexpr int num_coeff_facet
Number of coefficients of the reference transformation for faces.
MappingBase & operator=(const MappingBase &)
deleted assignment-operator
const MeshType & get_mesh() const
Returns a reference to the underlying mesh.
FEAT namespace.
Definition: adjactor.hpp:12
double Real
Real data type.