FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmDofLoad.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_DOF_LOAD_H
9 #define FM_DOF_LOAD_H
10 
12 
13 class FmHasDOFsBase;
14 
15 
17 {
19 
20 public:
21  FmDofLoad();
22 
23  virtual bool disconnect();
24 
25  FmHasDOFsBase* getOwner() const;
26 
27  virtual FmModelMemberBase* getActiveOwner() const;
28 
29  virtual bool isListable() const { return false; }
30 
31  virtual int printSolverEntry(FILE* fp);
32 
33  double getInitLoad() const { return myLoadVal.getValue(); }
34  bool setInitLoad(double dm) { myLoadVal.setValue(dm); return true; }
35 
36  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
37  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
38 
39  virtual bool clone(FmBase* obj, int depth);
40 
41  virtual const char* getUITypeName() const { return "Load"; }
42 
43 protected:
44  virtual ~FmDofLoad();
45 
46  virtual bool cloneLocal(FmBase* obj, int depth);
47 
49 
50 public:
52 };
53 
54 #endif
bool setValue(const ValueT &newData, bool checkChanged=true)
Assigns a new value to the field.
Definition: FFaField.H:66
const ValueT & getValue() const
Returns a const reference to myData.
Definition: FFaField.H:56
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmDofLoad.H:17
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmDofLoad.C:118
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmDofLoad.C:95
virtual int printSolverEntry(FILE *fp)
Hoook for printing the solver input file entry for this object.
Definition: FmDofLoad.C:124
FFaField< double > myLoadVal
Definition: FmDofLoad.H:48
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmDofLoad.C:77
virtual bool isListable() const
Hook for list view filtering.
Definition: FmDofLoad.H:29
bool setInitLoad(double dm)
Definition: FmDofLoad.H:34
FmDofLoad()
Definition: FmDofLoad.C:19
virtual FmModelMemberBase * getActiveOwner() const
Definition: FmDofLoad.C:46
virtual ~FmDofLoad()
Definition: FmDofLoad.C:28
FmHasDOFsBase * getOwner() const
Definition: FmDofLoad.C:67
FFaField< bool > freqDomain
Definition: FmDofLoad.H:51
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmDofLoad.H:41
double getInitLoad() const
Definition: FmDofLoad.H:33
Fmd_DB_HEADER_INIT()
virtual bool disconnect()
Removes this object from the model database.
Definition: FmDofLoad.C:34
Definition: FmHasDOFsBase.H:17
Definition: FmIsControlledBase.H:27
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