FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmBeamProperty.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 FM_BEAM_PROPERTY_H
9 #define FM_BEAM_PROPERTY_H
10 
14 
15 
17 {
19 
20 public:
22 
23  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
24  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
25  virtual bool clone(FmBase* obj, int depth);
26 
27  virtual const char* getUITypeName() const { return "Beam cross section"; }
28 
29  virtual int printSolverEntry(FILE* fp);
30 
31  void updateDependentValues();
32 
33  static void convertFromGenericDBObjects();
34 
35 protected:
36  virtual ~FmBeamProperty();
37 
38  virtual bool cloneLocal(FmBase* obj, int depth);
39 
40 public:
41  enum FmSection { PIPE=0, GENERIC=1 };
43  FFaEnumEntry(PIPE , "PIPE");
44  FFaEnumEntry(GENERIC, "GENERIC");
46  };
47 
49 
52 
53  // Tube Cross Section
56 
57  // Generic Beam Cross Section
64 
65  // Dependent properties
71 
72  // Shear
75 
76  // Hydrodynamic properties
88 };
89 
90 #endif
Enum variables with text representations.
#define FFaEnumEntryEnd
Defines the end of an enum mapping definition.
Definition: FFaEnum.H:237
#define FFaEnumEntry(Value, Text)
Adds one entry to the current enum mapping definition.
Definition: FFaEnum.H:234
Base class for all objects that affect the simulation model.
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmBeamProperty.H:17
FFaField< double > Di
Inner diameter.
Definition: FmBeamProperty.H:55
FFaField< Doubles > ShrRed
Shear reduction factors.
Definition: FmBeamProperty.H:73
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmBeamProperty.C:92
FFaField< double > Cd
Definition: FmBeamProperty.H:81
FFaField< double > Cd_axial
Definition: FmBeamProperty.H:84
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmBeamProperty.C:98
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmBeamProperty.C:76
FmSection
Definition: FmBeamProperty.H:41
@ GENERIC
Definition: FmBeamProperty.H:41
@ PIPE
Definition: FmBeamProperty.H:41
FFaField< double > EA
Axial stiffness.
Definition: FmBeamProperty.H:58
FFaField< double > Ca
Definition: FmBeamProperty.H:82
FFaField< bool > hydroToggle
Definition: FmBeamProperty.H:77
FFaField< FmSectionEnum > crossSectionType
Definition: FmBeamProperty.H:46
FFaField< double > A
Cross section area.
Definition: FmBeamProperty.H:67
FmBeamProperty()
Definition: FmBeamProperty.C:21
FFaField< double > Do
Outer diameter.
Definition: FmBeamProperty.H:54
FFaField< double > GIt
Torsional stiffness.
Definition: FmBeamProperty.H:61
FFaField< double > Dd
Definition: FmBeamProperty.H:80
FFaField< Doubles > GAs
Shear stiffness.
Definition: FmBeamProperty.H:60
FFaField< bool > breakDependence
Definition: FmBeamProperty.H:66
virtual ~FmBeamProperty()
Definition: FmBeamProperty.C:70
FFaField< double > Db
Definition: FmBeamProperty.H:79
FFaField< Doubles > EI
Bending stiffness.
Definition: FmBeamProperty.H:59
static void convertFromGenericDBObjects()
Definition: FmBeamProperty.C:215
FFaReference< FmMaterialProperty > material
Material reference.
Definition: FmBeamProperty.H:50
FFaField< double > Cd_spin
Definition: FmBeamProperty.H:87
FFaField< double > Cm
Definition: FmBeamProperty.H:83
void updateDependentValues()
Definition: FmBeamProperty.C:115
FFaField< double > Ip
Polar moment of inertia.
Definition: FmBeamProperty.H:70
FFaField< double > Di_hydro
Definition: FmBeamProperty.H:78
FFaField< double > Cm_axial
Definition: FmBeamProperty.H:86
FFaField< double > Iz
Moment of inertia about local Z-axis.
Definition: FmBeamProperty.H:69
FFaField< double > RoIp
Torsional inertia.
Definition: FmBeamProperty.H:63
virtual int printSolverEntry(FILE *fp)
Hoook for printing the solver input file entry for this object.
Definition: FmBeamProperty.C:137
FFaField< FFaReferenceBase * > materialField
Definition: FmBeamProperty.H:51
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmBeamProperty.H:27
FFaEnumMapping(FmSection)
Definition: FmBeamProperty.H:42
FFaField< double > Mass
Line mass.
Definition: FmBeamProperty.H:62
FFaField< double > Ca_axial
Definition: FmBeamProperty.H:85
FFaField< Doubles > ShrCentre
Shear center offset.
Definition: FmBeamProperty.H:74
FFaField< double > Iy
Moment of inertia about local Y-axis.
Definition: FmBeamProperty.H:68
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
Base class for structural property objects without physical shape.
Definition: FmSimulationModelBase.H:84