FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlPSPRING.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_PSPRING_H
9 #define FFL_PSPRING_H
10 
11 #include <array>
12 
14 #include "FFlLib/FFlTypeInfoSpec.H"
15 #include "FFlLib/FFlField.H"
16 
17 #ifdef FF_NAMESPACE
18 namespace FF_NAMESPACE {
19 #endif
20 
21 
23 {
24 public:
25  FFlPSPRING(int ID);
26  FFlPSPRING(const FFlPSPRING& obj);
27  virtual ~FFlPSPRING() {}
28 
29  virtual void convertUnits(const FFaUnitCalculator* convCal);
30 
31  static void init();
32 
35 
36  enum SpringType { TRANS_SPRING = 1, ROT_SPRING = 2 };
37 
38  std::array<FFlField<double>,21> K;
39 
41 };
42 
43 #ifdef FF_NAMESPACE
44 } // namespace
45 #endif
46 #endif
Class holding a set of unit conversions for physical properties.
Definition: FFaUnitCalculator.H:28
Definition: FFlAttributeBase.H:26
Definition: FFlPSPRING.H:23
FFL_FE_ATTRIBUTE_FACTORY_INIT(FFlPSPRING)
FFlField< int > type
Needed to determine correct unit conversion.
Definition: FFlPSPRING.H:40
FFL_TYPE_INFO(FFlPSPRING)
SpringType
Definition: FFlPSPRING.H:36
virtual ~FFlPSPRING()
Definition: FFlPSPRING.H:27
std::array< FFlField< double >, 21 > K
Upper triangle of 6x6 matrix.
Definition: FFlPSPRING.H:38
void init()
Definition: FmDB.C:518