FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlSPRING.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_SPRING_H
9 #define FFL_SPRING_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 /* TODO,kmo: This is not very elegant. The only difference between the two
25  classes FFlSPRING and FFlRSPRING is that FFlSPRING has three DOFs per node
26  whereas FFlRSPRING has six. Find a better way to handle this. */
27 
28 // For translational DOFs only
29 class FFlSPRING : public FFlElementBase
30 {
31 public:
32  FFlSPRING(int ID) : FFlElementBase(ID) {}
33  virtual ~FFlSPRING() {}
34 
35  static void init();
36 
41 
42 #ifdef FT_USE_MEMPOOL
44 #endif
45 };
46 
47 
48 // For rotational DOFs
49 class FFlRSPRING : public FFlElementBase
50 {
51 public:
52  FFlRSPRING(int ID) : FFlElementBase(ID) {}
53  virtual ~FFlRSPRING() {}
54 
55  static void init();
56 
61 
62 #ifdef FT_USE_MEMPOOL
64 #endif
65 };
66 
67 #ifdef FF_NAMESPACE
68 } // namespace
69 #endif
70 #endif
Streamlined efficient memory allocation.
#define FFA_MAKE_MEMPOOL
Macro adding memory pool features to a class.
Definition: FFaMemPool.H:139
Definition: FFlElementBase.H:43
Definition: FFlSPRING.H:50
FFL_FE_ELEMENT_FACTORY_INIT(FFlRSPRING)
FFL_FE_ATTRIBUTE_SPEC(FFlRSPRING)
FFlRSPRING(int ID)
Definition: FFlSPRING.H:52
virtual ~FFlRSPRING()
Definition: FFlSPRING.H:53
FFL_TYPE_INFO(FFlRSPRING)
FFL_FE_ELEMENT_TOP_SPEC(FFlRSPRING)
Definition: FFlSPRING.H:30
FFL_FE_ELEMENT_TOP_SPEC(FFlSPRING)
FFL_FE_ELEMENT_FACTORY_INIT(FFlSPRING)
FFlSPRING(int ID)
Definition: FFlSPRING.H:32
FFL_TYPE_INFO(FFlSPRING)
FFL_FE_ATTRIBUTE_SPEC(FFlSPRING)
virtual ~FFlSPRING()
Definition: FFlSPRING.H:33
void init()
Definition: FmDB.C:518