FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlCMASS.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_CMASS_H
9 #define FFL_CMASS_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 FFlCMASS : public FFlElementBase
25 {
26 public:
27  FFlCMASS(int ID) : FFlElementBase(ID) {}
28 
29  static void init();
30 
35 
36  virtual double getMassDensity() const { return 1.0; }
37  virtual double getVolumeAndCoG(FaVec3& cog, FFaTensor3* inertia) const;
38 
39 private:
40  static bool RtMR(const std::vector<double>& M, double R[6][6], double II[6][6]);
41 
42 #ifdef FT_USE_MEMPOOL
44 #endif
45 };
46 
47 #ifdef FF_NAMESPACE
48 } // namespace
49 #endif
50 #endif
const double * M
Definition: ChainShape.H:16
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: FFlCMASS.H:25
FFL_TYPE_INFO(FFlCMASS)
virtual double getMassDensity() const
Definition: FFlCMASS.H:36
FFL_FE_ELEMENT_TOP_SPEC(FFlCMASS)
FFL_FE_ATTRIBUTE_SPEC(FFlCMASS)
FFL_FE_ELEMENT_FACTORY_INIT(FFlCMASS)
FFlCMASS(int ID)
Definition: FFlCMASS.H:27
Definition: FFlElementBase.H:43
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
void init()
Definition: FmDB.C:518