FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmJointDamper.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_JOINT_DAMPER_H
9 #define FM_JOINT_DAMPER_H
10 
11 #include "vpmDB/FmDamperBase.H"
12 
13 class FmJointBase;
14 
15 
17 {
19 
20 public:
21  FmJointDamper();
22 
23  virtual bool disconnect();
24 
25  FmJointBase* getOwnerJoint() const;
26 
27  virtual FmModelMemberBase* getActiveOwner() const;
28 
29  virtual bool isListable() const { return false; }
30  virtual bool isMeasured() const;
31  virtual int getDOF() const;
32 
33  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
34  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
35  virtual int printSolverEntry(FILE* fp);
36 
37  virtual bool clone(FmBase* obj, int depth);
38 
39  virtual const char* getUITypeName() const { return "Joint damper"; }
40 
41  static int checkJointDampers();
42 
43 protected:
44  virtual ~FmJointDamper();
45 
46  virtual bool cloneLocal(FmBase* obj, int depth);
47 
48  virtual bool getSaveVar(unsigned int& nVar, IntVec& toggles) const;
49 };
50 
51 #endif
std::vector< int > IntVec
Convenience type alias.
Definition: FFaField.H:25
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmDamperBase.H:26
Definition: FmJointBase.H:22
Definition: FmJointDamper.H:17
virtual bool isListable() const
Hook for list view filtering.
Definition: FmJointDamper.H:29
virtual int printSolverEntry(FILE *fp)
Hoook for printing the solver input file entry for this object.
Definition: FmJointDamper.C:182
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmJointDamper.C:130
virtual bool disconnect()
Removes this object from the model database.
Definition: FmJointDamper.C:36
virtual int getDOF() const
Definition: FmJointDamper.C:102
static int checkJointDampers()
Definition: FmJointDamper.C:159
FmJointBase * getOwnerJoint() const
Definition: FmJointDamper.C:111
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmJointDamper.H:39
virtual bool getSaveVar(unsigned int &nVar, IntVec &toggles) const
Definition: FmJointDamper.C:206
FmJointDamper()
Definition: FmJointDamper.C:20
virtual bool isMeasured() const
Definition: FmJointDamper.C:69
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmJointDamper.C:121
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmJointDamper.C:153
virtual FmModelMemberBase * getActiveOwner() const
Definition: FmJointDamper.C:48
virtual ~FmJointDamper()
Definition: FmJointDamper.C:30
Base class for all model data objects.
Definition: FmModelMemberBase.H:34
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109