FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmAxialDamper.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_AXIAL_DAMPER_H
9 #define FM_AXIAL_DAMPER_H
10 
11 #include "vpmDB/FmDamperBase.H"
12 #include "vpmDB/FmTriad.H"
14 
15 
17 {
19 
20 public:
21  FmAxialDamper();
22 
24  bool connect(FmTriad* tr1, FmTriad* tr2);
25 
26  void setOwnerTriads(FmTriad* tr1, FmTriad* tr2);
27  void removeOwnerTriads();
28 
29  FmTriad* getFirstTriad() const;
30  FmTriad* getSecondTriad() const;
31  void getTriads(std::vector<FmTriad*>& triads) const;
32 
33  static int checkAxialDampers();
34 
35  virtual bool detach();
36 
37  virtual int printSolverEntry(FILE* fp);
38 
39  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
40  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
41  virtual bool clone(FmBase* obj, int depth);
42  virtual void initAfterResolve();
43 
44  virtual void getEntities(FmSensorChoices& choices, int);
45 
46  virtual const char* getUITypeName() const { return "Axial damper"; }
47 
48 protected:
49  virtual ~FmAxialDamper();
50 
51  virtual bool cloneLocal(FmBase* obj, int depth);
52 
55 };
56 
57 #endif
Classes representing lists of guarded pointers.
std::vector< FmSensorChoice > FmSensorChoices
Definition: FmIsMeasuredBase.H:15
Definition: FmAxialDamper.H:17
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmAxialDamper.C:136
FFaField< FFaReferenceListBase * > itsTriadsField
Definition: FmAxialDamper.H:54
virtual void getEntities(FmSensorChoices &choices, int)
Definition: FmAxialDamper.C:46
void setOwnerTriads(FmTriad *tr1, FmTriad *tr2)
Definition: FmAxialDamper.C:130
FFaReferenceList< FmTriad > itsTriads
Definition: FmAxialDamper.H:53
virtual bool detach()
Definition: FmAxialDamper.C:65
virtual void initAfterResolve()
Hook for initialisation after resolving cross references.
Definition: FmAxialDamper.C:178
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmAxialDamper.C:161
static int checkAxialDampers()
Definition: FmAxialDamper.C:192
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmAxialDamper.H:46
void getTriads(std::vector< FmTriad * > &triads) const
Definition: FmAxialDamper.C:118
FmTriad * getSecondTriad() const
Definition: FmAxialDamper.C:112
virtual ~FmAxialDamper()
Definition: FmAxialDamper.C:40
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmAxialDamper.C:145
FmTriad * getFirstTriad() const
Definition: FmAxialDamper.C:106
virtual int printSolverEntry(FILE *fp)
Hoook for printing the solver input file entry for this object.
Definition: FmAxialDamper.C:209
FmAxialDamper()
Definition: FmAxialDamper.C:27
void removeOwnerTriads()
Definition: FmAxialDamper.C:124
Base parent class for the model data structure entries.
Definition: FmBase.H:37
virtual bool connect()
Inserts this object into the model database.
Definition: FmBase.H:92
Definition: FmDamperBase.H:26
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
Definition: FmTriad.H:48