v0.14.0
VertexElementForcesAndSourcesCore.hpp
Go to the documentation of this file.
1 /** \file ForcesAndSourcesCore.hpp
2 
3  \brief Implementation of elements on entities.
4 
5  Those element are inherited by user to implement specific implementation of
6  particular problem.
7 
8 */
9 
10 
11 
12 #ifndef __VERTEXELEMENTFORCESANDSOURCESCORE_HPP__
13 #define __VERTEXELEMENTFORCESANDSOURCESCORE_HPP__
14 
15 using namespace boost::numeric;
16 
17 namespace MoFEM {
18 
19 /** \brief Vertex finite element
20  * \ingroup mofem_forces_and_sources_vertex_element
21 
22  User is implementing own operator at Gauss points level, by own object
23  derived from VertexElementForcesAndSourcesCoreL::UserDataOperator. Arbitrary
24  number of operator added pushing objects to rowOpPtrVector and
25  rowColOpPtrVector.
26 
27  */
29 
31 
33 
34  /** \brief default operator for VERTEX element
35  \ingroup mofem_forces_and_sources_vertex_element
36  */
38 
40 
41 
42  inline VectorDouble3 &getCoords();
43 
44  protected:
45  MoFEMErrorCode setPtrFE(ForcesAndSourcesCore *ptr);
46 
47  };
48 
49  MoFEMErrorCode operator()();
50 
51 protected:
53  friend class UserDataOperator;
54 };
55 
57 VertexElementForcesAndSourcesCore::UserDataOperator::getCoords() {
58  return static_cast<VertexElementForcesAndSourcesCore *>(ptrFE)->coords;
59 }
60 
61 } // namespace MoFEM
62 
63 #endif //__VERTEXELEMENTFORCESANDSOURCESCORE_HPP__
64 
65 /**
66  * \defgroup mofem_forces_and_sources_vertex_element Vertex Element
67  * \brief Finite element and operators for vertex entity
68  *
69  * \ingroup mofem_forces_and_sources
70  **/
MoFEM::Types::VectorDouble3
VectorBoundedArray< double, 3 > VectorDouble3
Definition: Types.hpp:92
MoFEM::Exceptions::MoFEMErrorCode
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
Definition: Exceptions.hpp:56
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
MoFEM::VertexElementForcesAndSourcesCore::coords
VectorDouble3 coords
Definition: VertexElementForcesAndSourcesCore.hpp:52
MoFEM
implementation of Data Operators for Forces and Sources
Definition: Common.hpp:10
MoFEM::ForcesAndSourcesCore::UserDataOperator
Definition: ForcesAndSourcesCore.hpp:549
MoFEM::ForcesAndSourcesCore
structure to get information form mofem into EntitiesFieldData
Definition: ForcesAndSourcesCore.hpp:22
MoFEM::VertexElementForcesAndSourcesCore::meshPositionsFieldName
std::string meshPositionsFieldName
Definition: VertexElementForcesAndSourcesCore.hpp:30
UserDataOperator
ForcesAndSourcesCore::UserDataOperator UserDataOperator
Definition: HookeElement.hpp:75
MoFEM::VertexElementForcesAndSourcesCore::UserDataOperator
default operator for VERTEX element
Definition: VertexElementForcesAndSourcesCore.hpp:37
MoFEM::VertexElementForcesAndSourcesCore
Vertex finite element.
Definition: VertexElementForcesAndSourcesCore.hpp:28
MoFEM::ForcesAndSourcesCore::UserDataOperator::ptrFE
ForcesAndSourcesCore * ptrFE
Definition: ForcesAndSourcesCore.hpp:985