FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlBeams.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_BEAMS_H
9 #define FFL_BEAMS_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 FFlBEAM2 : public FFlElementBase
25 {
26 public:
27  FFlBEAM2(int ID) : FFlElementBase(ID) {}
28 
29  static void init();
30 
35 
36  virtual double getMassDensity() const;
37  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
38  virtual int getNodalCoor(double* X, double* Y, double* Z) const;
39  FaVec3 getLocalZdirection() const;
40 
41 #ifdef FT_USE_MEMPOOL
43 #endif
44 };
45 
46 
47 class FFlBEAM3 : public FFlElementBase
48 {
49 public:
50  FFlBEAM3(int ID) : FFlElementBase(ID) {}
51 
52  static void init();
53 
58 
59  virtual double getMassDensity() const;
60  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
61 
63  virtual bool split(Elements& newElm, FFlLinkHandler* owner, int);
64 
65 #ifdef FT_USE_MEMPOOL
67 #endif
68 };
69 
70 #ifdef FF_NAMESPACE
71 } // namespace
72 #endif
73 #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
Class to represent a 3D symmetric tensor.
Definition: FFaTensor3.H:35
Definition: FFlBeams.H:25
FFL_FE_ATTRIBUTE_SPEC(FFlBEAM2)
FFL_TYPE_INFO(FFlBEAM2)
FFlBEAM2(int ID)
Definition: FFlBeams.H:27
FFL_FE_ELEMENT_TOP_SPEC(FFlBEAM2)
FFL_FE_ELEMENT_FACTORY_INIT(FFlBEAM2)
Definition: FFlBeams.H:48
FFlBEAM3(int ID)
Definition: FFlBeams.H:50
FFL_FE_ATTRIBUTE_SPEC(FFlBEAM3)
FFL_TYPE_INFO(FFlBEAM3)
FFL_FE_ELEMENT_FACTORY_INIT(FFlBEAM3)
FFL_FE_ELEMENT_TOP_SPEC(FFlBEAM3)
Definition: FFlElementBase.H:43
std::vector< FFlElementBase * > Elements
Definition: FFlElementBase.H:45
Container class for finite element models.
Definition: FFlLinkHandler.H:95
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
void init()
Definition: FmDB.C:518