FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmfScale.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_SCALE_H
9 #define FMF_SCALE_H
10 
11 #include "vpmDB/FmMathFuncBase.H"
12 
13 
14 class FmfScale : public FmMathFuncBase
15 {
17 
18 public:
19  FmfScale(double defScale = 1.0);
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 "Linear"; }
26  virtual const char* getFunctionFsiName() const { return "SCALE"; }
27  virtual const char** getPixmap() const;
28 
29  virtual void getFunctionVariables(std::vector<FmFuncVariable>& retArray,
30  bool fortranPermutation = false) const;
31 
32 protected:
33  virtual ~FmfScale() {}
34 
35  virtual int printSolverData(FILE* fp);
36 
37  virtual bool cloneLocal(FmBase* obj, int depth);
38 
40 };
41 
42 #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: FmfScale.H:15
virtual const char * getFunctionFsiName() const
Definition: FmfScale.H:26
virtual ~FmfScale()
Definition: FmfScale.H:33
FmfScale(double defScale=1.0)
Definition: FmfScale.C:21
M_MOD_PARAMS(Scale, FmfScale)
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmfScale.C:64
virtual const char ** getPixmap() const
Definition: FmfScale.C:35
virtual int printSolverData(FILE *fp)
Definition: FmfScale.C:56
virtual const char * getFunctionUIName() const
Definition: FmfScale.H:25
virtual void getFunctionVariables(std::vector< FmFuncVariable > &retArray, bool fortranPermutation=false) const
Definition: FmfScale.C:41
Fmd_DB_HEADER_INIT()
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmfScale.C:47
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmfScale.C:87