FEDEM Solver  R8.0
Source code of the dynamics solver
FFpCurveDef.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 FFP_CURVE_DEF_H
9 #define FFP_CURVE_DEF_H
10 
11 #include <vector>
12 #include <string>
13 #include <iostream>
14 
17 
18 
20 {
21 public:
24 
25  static bool readAll(std::istream& is, std::vector<FFpCurveDef*>& curves);
26 
27  int getId() const { return myId; }
28  int getBaseId() const { return myBaseId; }
29  const std::string& getDescr() const { return myDescr; }
30 
31  const FFaResultDescription& getResult(int a) const { return myResults[a]; }
32  const std::string& getResultOper(int a) const { return myResultOpers[a]; }
33 
34  bool getScaleShiftDo() const { return myScaleShiftDo; }
35  bool getDftDo() const { return myDftDo; }
36  const DFTparams& getDFTparameters() const { return myDft; }
37 
38 private:
39  static FFpCurveDef* readCurve(std::istream& is, const int n);
40 
41  bool parse(char* keyWord, std::istream& activeStatement);
42 
43  int myId;
44  int myBaseId;
45  std::string myDescr;
47  std::string myResultOpers[2];
49  bool myDftDo;
51 };
52 
53 #endif
Result variable description.
Class representing a result variable description.
Definition: FFaResultDescription.H:31
Definition: FFpCurveDef.H:20
~FFpCurveDef()
Definition: FFpCurveDef.H:23
static FFpCurveDef * readCurve(std::istream &is, const int n)
Definition: FFpCurveDef.C:56
const std::string & getDescr() const
Definition: FFpCurveDef.H:29
DFTparams myDft
Definition: FFpCurveDef.H:50
int getId() const
Definition: FFpCurveDef.H:27
int myBaseId
Definition: FFpCurveDef.H:44
int getBaseId() const
Definition: FFpCurveDef.H:28
bool getScaleShiftDo() const
Definition: FFpCurveDef.H:34
const DFTparams & getDFTparameters() const
Definition: FFpCurveDef.H:36
const std::string & getResultOper(int a) const
Definition: FFpCurveDef.H:32
const FFaResultDescription & getResult(int a) const
Definition: FFpCurveDef.H:31
std::string myResultOpers[2]
Definition: FFpCurveDef.H:47
bool myDftDo
Definition: FFpCurveDef.H:49
bool getDftDo() const
Definition: FFpCurveDef.H:35
static bool readAll(std::istream &is, std::vector< FFpCurveDef * > &curves)
Definition: FFpCurveDef.C:13
FFaResultDescription myResults[2]
Definition: FFpCurveDef.H:46
FFpCurveDef()
Definition: FFpCurveDef.H:22
bool myScaleShiftDo
Definition: FFpCurveDef.H:48
int myId
Definition: FFpCurveDef.H:43
bool parse(char *keyWord, std::istream &activeStatement)
Definition: FFpCurveDef.C:93
std::string myDescr
Definition: FFpCurveDef.H:45
real(sp), dimension(:,:,:), pointer a
Definition: diffractionModule.f90:21
Definition: FFpDFTparams.H:13