FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmModesOptions.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_MODES_OPTIONS_H
9 #define FM_MODES_OPTIONS_H
10 
12 #include "vpmDB/FmVTFType.H"
13 
14 typedef std::pair<int,double> FmModeType;
15 typedef std::vector<FmModeType> FmModeVec;
16 
17 
19 {
21 
22 public:
24 
25  virtual const char* getUITypeName() const { return "ModesOptions"; }
26 
27  bool setMaxEigenmode(int modeno);
28  bool setMinTime(double minTime);
29  bool setMaxTime(double maxTime);
30 
31  int addEigenmodeData(int modeNo, double time);
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 bool clone(FmBase* obj, int depth);
36 
37 protected:
38  virtual ~FmModesOptions();
39 
40  virtual bool cloneLocal(FmBase* obj, int depth);
41  static bool localParse(const char* keyWord, std::istream& is, FmModesOptions* obj);
42 
43 private:
45 
46 public:
52 };
53 
54 #endif
std::pair< int, double > FmModeType
mode number - time
Definition: FmModesOptions.H:14
std::vector< FmModeType > FmModeVec
vector of mode shapes to expand
Definition: FmModesOptions.H:15
Base class for all objects that affect the simulation model.
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmModesOptions.H:19
static bool localParse(const char *keyWord, std::istream &is, FmModesOptions *obj)
Definition: FmModesOptions.C:131
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmModesOptions.H:25
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmModesOptions.C:212
bool convertedFromOldModelFile
Definition: FmModesOptions.H:44
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmModesOptions.C:103
virtual ~FmModesOptions()
Definition: FmModesOptions.C:32
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmModesOptions.C:112
FFaField< VTFFileTypeEnum > vtfFileType
Definition: FmModesOptions.H:50
bool setMinTime(double minTime)
Definition: FmModesOptions.C:55
FFaField< std::string > addOptions
Definition: FmModesOptions.H:51
FFaField< FmModeVec > modesArray
Definition: FmModesOptions.H:47
FFaField< bool > autoVTFExport
Definition: FmModesOptions.H:48
FmModesOptions()
Definition: FmModesOptions.C:18
bool setMaxEigenmode(int modeno)
Definition: FmModesOptions.C:38
bool setMaxTime(double maxTime)
Definition: FmModesOptions.C:70
int addEigenmodeData(int modeNo, double time)
Definition: FmModesOptions.C:85
FFaField< std::string > vtfFileName
Definition: FmModesOptions.H:49
Base class for all objects that affect the simulation model.
Definition: FmSimulationModelBase.H:28
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109