FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmfSquarePuls.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 FMF_SQUARE_PULS_H
9 #define FMF_SQUARE_PULS_H
10 
11 #include "vpmDB/FmMathFuncBase.H"
12 
13 
15 {
17 
18 public:
19  FmfSquarePuls();
20 
21  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
22  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
23  virtual bool clone(FmBase* obj, int depth);
24 
25  virtual const char* getFunctionUIName() const { return "Periodic square pulse"; }
26  virtual const char** getPixmap() const;
27 
28  virtual void getFunctionVariables(std::vector<FmFuncVariable>& retArray,
29  bool fortranPermutation = false) const;
30 
31 protected:
32  virtual ~FmfSquarePuls() {}
33 
34  virtual int printSolverData(FILE* fp);
35 
36  virtual bool cloneLocal(FmBase* obj, int depth);
37 
38  M_MOD_PARAMS(AmplitudeDisplacement,FmfSquarePuls);
42 };
43 
44 #endif
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmMathFuncBase.H:22
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
Definition: FmfSquarePuls.H:15
virtual ~FmfSquarePuls()
Definition: FmfSquarePuls.H:32
M_MOD_PARAMS(PhaseAngle, FmfSquarePuls)
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmfSquarePuls.C:103
M_MOD_PARAMS(Period, FmfSquarePuls)
M_MOD_PARAMS(Amplitude, FmfSquarePuls)
M_MOD_PARAMS(AmplitudeDisplacement, FmfSquarePuls)
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmfSquarePuls.C:80
FmfSquarePuls()
Definition: FmfSquarePuls.C:23
virtual const char ** getPixmap() const
Definition: FmfSquarePuls.C:40
virtual const char * getFunctionUIName() const
Definition: FmfSquarePuls.H:25
virtual void getFunctionVariables(std::vector< FmFuncVariable > &retArray, bool fortranPermutation=false) const
Definition: FmfSquarePuls.C:46
virtual int printSolverData(FILE *fp)
Definition: FmfSquarePuls.C:68
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmfSquarePuls.C:59