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:
66 MappingBase(const MappingBase&) = delete;
69
70 protected:
72 std::reference_wrapper<MeshType> _mesh;
73
82 explicit MappingBase(MeshType& mesh) :
83 _mesh(mesh)
84 {
85 }
86
87 public:
88 MappingBase(MappingBase&& other) = default;
89 MappingBase& operator=(MappingBase&&) = default;
90
97 {
98 return _mesh;
99 }
100
102 const MeshType& get_mesh() const
103 {
104 return _mesh;
105 }
106
118 bool operator==(const MappingBase& other) const
119 {
120 return this == &other;
121 }
122 }; // class MappingBase<...>
123 } // namespace Trafo
124} // namespace FEAT
Trafo evaluator class template.
Trafo-Mapping base class.
MeshType & get_mesh()
Returns a reference to the underlying mesh.
static constexpr int world_dim
our image/world dimension
std::reference_wrapper< MeshType > _mesh
mesh reference
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(const MappingBase &)=delete
deleted copy-constructor
const MeshType & get_mesh() const
Returns a reference to the underlying mesh.
MappingBase & operator=(const MappingBase &)=delete
deleted assignment-operator
FEAT namespace.
Definition: adjactor.hpp:12
double Real
Real data type.