FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlShells.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_SHELLS_H
9 #define FFL_SHELLS_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 
25 {
26 public:
28 
29  double getThickness() const;
30 
31  virtual double getMassDensity() const;
32 
33  static double offPlaneTol;
34 };
35 
36 
38 {
39 public:
40  FFlTRI3(int ID) : FFlShellElementBase(ID) {}
41 
42  static void init();
43 
48 
49  virtual FaMat33 getGlobalizedElmCS() const;
50  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
51  bool switchNormal = false) const;
52 
53  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
54 
55  virtual FaVec3 mapping(double xi, double eta, double) const;
56  virtual bool invertMapping(const FaVec3& X, double* Xi) const;
57  virtual FaVec3 interpolate(const double* Xi, const std::vector<FaVec3>& v) const;
58 
59 #ifdef FT_USE_MEMPOOL
61 #endif
62 };
63 
64 
66 {
67 public:
68  FFlTRI6(int ID) : FFlShellElementBase(ID) {}
69 
70  static void init();
71 
76 
78  virtual bool split(Elements& newElm, FFlLinkHandler* owner, int);
79 
80  virtual FaMat33 getGlobalizedElmCS() const;
81  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
82  bool switchNormal = false) const;
83 
84  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
85  virtual int getNodalCoor(double* X, double* Y, double* Z) const;
86 
87 #ifdef FT_USE_MEMPOOL
89 #endif
90 };
91 
92 
94 {
95 public:
96  FFlQUAD4(int ID) : FFlShellElementBase(ID) {}
97 
98  static void init();
99 
104 
105  virtual FaMat33 getGlobalizedElmCS() const;
106  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
107  bool switchNormal = false) const;
108 
109  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
110 
111  virtual FaVec3 mapping(double xi, double eta, double = 0.0) const;
112  virtual bool invertMapping(const FaVec3& X, double* Xi) const;
113  virtual FaVec3 interpolate(const double* Xi, const std::vector<FaVec3>& v) const;
114 
115 #ifdef FT_USE_MEMPOOL
117 #endif
118 };
119 
120 
122 {
123 public:
124  FFlQUAD8(int ID) : FFlShellElementBase(ID) {}
125 
126  static void init();
127 
132 
134  virtual bool split(Elements& newElm, FFlLinkHandler* owner, int centerNode);
135 
136  virtual FaMat33 getGlobalizedElmCS() const;
137  virtual bool getFaceNormals(std::vector<FaVec3>& normals, short int face = 1,
138  bool switchNormal = false) const;
139 
140  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
141 
142 #ifdef FT_USE_MEMPOOL
144 #endif
145 };
146 
147 #ifdef FF_NAMESPACE
148 } // namespace
149 #endif
150 #endif
const double const double const double const double double * X
Definition: ChainShape.H:20
const double const double const double const double double double * Y
Definition: ChainShape.H:20
Streamlined efficient memory allocation.
#define FFA_MAKE_MEMPOOL
Macro adding memory pool features to a class.
Definition: FFaMemPool.H:139
static RAOcomp interpolate(double x, double x0, double x1, const RAOcomp &r0, const RAOcomp &r1)
Definition: FiRAOTable.C:20
Class to represent a 3D symmetric tensor.
Definition: FFaTensor3.H:35
Definition: FFlElementBase.H:43
std::vector< FFlElementBase * > Elements
Definition: FFlElementBase.H:45
Container class for finite element models.
Definition: FFlLinkHandler.H:95
Definition: FFlShells.H:94
FFL_FE_ELEMENT_TOP_SPEC(FFlQUAD4)
FFL_FE_ATTRIBUTE_SPEC(FFlQUAD4)
FFL_TYPE_INFO(FFlQUAD4)
FFlQUAD4(int ID)
Definition: FFlShells.H:96
FFL_FE_ELEMENT_FACTORY_INIT(FFlQUAD4)
Definition: FFlShells.H:122
FFL_FE_ELEMENT_TOP_SPEC(FFlQUAD8)
FFlQUAD8(int ID)
Definition: FFlShells.H:124
FFL_FE_ATTRIBUTE_SPEC(FFlQUAD8)
FFL_FE_ELEMENT_FACTORY_INIT(FFlQUAD8)
FFL_TYPE_INFO(FFlQUAD8)
Definition: FFlShells.H:25
FFlShellElementBase(int ID)
Definition: FFlShells.H:27
static double offPlaneTol
Relative out-of-plane point search tolerance.
Definition: FFlShells.H:33
Definition: FFlShells.H:38
FFL_FE_ELEMENT_TOP_SPEC(FFlTRI3)
FFL_TYPE_INFO(FFlTRI3)
FFlTRI3(int ID)
Definition: FFlShells.H:40
FFL_FE_ATTRIBUTE_SPEC(FFlTRI3)
FFL_FE_ELEMENT_FACTORY_INIT(FFlTRI3)
Definition: FFlShells.H:66
FFL_FE_ELEMENT_FACTORY_INIT(FFlTRI6)
FFL_FE_ATTRIBUTE_SPEC(FFlTRI6)
FFlTRI6(int ID)
Definition: FFlShells.H:68
FFL_TYPE_INFO(FFlTRI6)
FFL_FE_ELEMENT_TOP_SPEC(FFlTRI6)
Class for point transformations in 3D space.
Definition: FFaMat33.H:27
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
void init()
Definition: FmDB.C:518