FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlSolids.H
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2023 SAP SE
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 // This file is part of FEDEM - https://openfedem.org
7 
8 #ifndef FFL_SOLIDS_H
9 #define FFL_SOLIDS_H
10 
11 #include "FFlLib/FFlElementBase.H"
14 #include "FFlLib/FFlTypeInfoSpec.H"
15 #ifdef FT_USE_MEMPOOL
17 #endif
18 
19 #ifdef FF_NAMESPACE
20 namespace FF_NAMESPACE {
21 #endif
22 
23 
24 class FFlTET4 : public FFlElementBase
25 {
26 public:
27  FFlTET4(int ID) : FFlElementBase(ID) {}
28 
29  static void init();
30 
35 
36  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
37  bool switchNormal = false) const;
38 
39  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
40 
41  virtual int checkOrientation(bool fixIt = false);
42 
43 #ifdef FT_USE_MEMPOOL
45 #endif
46 };
47 
48 
49 class FFlWEDG6 : public FFlElementBase
50 {
51 public:
52  FFlWEDG6(int ID) : FFlElementBase(ID) {}
53 
54  static void init();
55 
60 
61  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
62  bool switchNormal = false) const;
63 
64  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
65 
66 #ifdef FT_USE_MEMPOOL
68 #endif
69 };
70 
71 
72 class FFlHEX8 : public FFlElementBase
73 {
74 public:
75  FFlHEX8(int ID) : FFlElementBase(ID) {}
76 
77  static void init();
78 
83 
84  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
85  bool switchNormal = false) const;
86 
87  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
88 
89 #ifdef FT_USE_MEMPOOL
91 #endif
92 };
93 
94 
95 class FFlTET10 : public FFlElementBase
96 {
97 public:
98  FFlTET10(int ID) : FFlElementBase(ID) {}
99 
100  static void init();
101 
106 
107  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
108  bool switchNormal = false) const;
109 
110  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
111 
112  virtual int checkOrientation(bool fixIt = false);
113 
114 #ifdef FT_USE_MEMPOOL
116 #endif
117 };
118 
119 
120 class FFlWEDG15 : public FFlElementBase
121 {
122 public:
123  FFlWEDG15(int ID) : FFlElementBase(ID) {}
124 
125  static void init();
126 
131 
132  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
133  bool switchNormal = false) const;
134 
135  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
136 
137 #ifdef FT_USE_MEMPOOL
139 #endif
140 };
141 
142 
143 class FFlHEX20 : public FFlElementBase
144 {
145 public:
146  FFlHEX20(int ID) : FFlElementBase(ID) {}
147 
148  static void init();
149 
154 
155  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
156  bool switchNormal = false) const;
157 
158  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
159 
160 #ifdef FT_USE_MEMPOOL
162 #endif
163 };
164 
165 #ifdef FF_NAMESPACE
166 } // namespace
167 #endif
168 #endif
Streamlined efficient memory allocation.
#define FFA_MAKE_MEMPOOL
Macro adding memory pool features to a class.
Definition: FFaMemPool.H:139
Class to represent a 3D symmetric tensor.
Definition: FFaTensor3.H:35
Definition: FFlElementBase.H:43
Definition: FFlSolids.H:144
FFL_FE_ELEMENT_TOP_SPEC(FFlHEX20)
FFL_FE_ELEMENT_FACTORY_INIT(FFlHEX20)
FFL_TYPE_INFO(FFlHEX20)
FFL_FE_ATTRIBUTE_SPEC(FFlHEX20)
FFlHEX20(int ID)
Definition: FFlSolids.H:146
Definition: FFlSolids.H:73
FFL_FE_ELEMENT_FACTORY_INIT(FFlHEX8)
FFL_FE_ATTRIBUTE_SPEC(FFlHEX8)
FFL_FE_ELEMENT_TOP_SPEC(FFlHEX8)
FFlHEX8(int ID)
Definition: FFlSolids.H:75
FFL_TYPE_INFO(FFlHEX8)
Definition: FFlSolids.H:96
FFL_TYPE_INFO(FFlTET10)
FFL_FE_ELEMENT_TOP_SPEC(FFlTET10)
FFL_FE_ELEMENT_FACTORY_INIT(FFlTET10)
FFL_FE_ATTRIBUTE_SPEC(FFlTET10)
FFlTET10(int ID)
Definition: FFlSolids.H:98
Definition: FFlSolids.H:25
FFL_FE_ELEMENT_TOP_SPEC(FFlTET4)
FFlTET4(int ID)
Definition: FFlSolids.H:27
FFL_FE_ATTRIBUTE_SPEC(FFlTET4)
FFL_TYPE_INFO(FFlTET4)
FFL_FE_ELEMENT_FACTORY_INIT(FFlTET4)
Definition: FFlSolids.H:121
FFL_FE_ELEMENT_FACTORY_INIT(FFlWEDG15)
FFL_FE_ELEMENT_TOP_SPEC(FFlWEDG15)
FFL_TYPE_INFO(FFlWEDG15)
FFlWEDG15(int ID)
Definition: FFlSolids.H:123
FFL_FE_ATTRIBUTE_SPEC(FFlWEDG15)
Definition: FFlSolids.H:50
FFlWEDG6(int ID)
Definition: FFlSolids.H:52
FFL_FE_ELEMENT_FACTORY_INIT(FFlWEDG6)
FFL_TYPE_INFO(FFlWEDG6)
FFL_FE_ATTRIBUTE_SPEC(FFlWEDG6)
FFL_FE_ELEMENT_TOP_SPEC(FFlWEDG6)
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
void init()
Definition: FmDB.C:518