FEDEM Solver  R8.0
Source code of the dynamics solver
FFpBatchExport.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_BATCH_EXPORT_H
9 #define FFP_BATCH_EXPORT_H
10 
11 #include <vector>
12 #include <string>
13 
14 class FFrExtractor;
15 class FFpCurveDef;
16 class FFpGraph;
17 
18 
20 {
21 public:
23 
24  bool readDataFromFile(const std::string& rpcFile);
25 
27 };
28 
29 
31 {
32 public:
33  FFpBatchExport(const std::vector<std::string>& frsFiles);
35 
37  static bool readFrsFiles(std::vector<std::string>& frsFiles,
38  const std::string& modelFile);
39 
40  bool readCurves (const std::string& defFile);
41  bool exportCurves (const std::string& path,
42  const std::string& modelFile, int format);
43  bool exportGraph (const std::string& fName,
44  const std::string& modelFile, int format,
45  const FFpRPC3Data& rpc);
46  bool printPosition(const std::string& fName = "");
47 
48 private:
49  void readPlottingData(FFpGraph& rdbCurves);
50 
52  std::vector<FFpCurveDef*> myCurves;
53 };
54 
55 #endif
Definition: FFpBatchExport.H:31
bool exportCurves(const std::string &path, const std::string &modelFile, int format)
Definition: FFpBatchExport.C:128
FFrExtractor * myExtractor
Definition: FFpBatchExport.H:51
bool readCurves(const std::string &defFile)
Definition: FFpBatchExport.C:115
FFpBatchExport(const std::vector< std::string > &frsFiles)
Definition: FFpBatchExport.C:23
bool printPosition(const std::string &fName="")
Definition: FFpBatchExport.C:231
bool exportGraph(const std::string &fName, const std::string &modelFile, int format, const FFpRPC3Data &rpc)
Definition: FFpBatchExport.C:171
static bool readFrsFiles(std::vector< std::string > &frsFiles, const std::string &modelFile)
Reads a list of frs-files with results from specified model file.
Definition: FFpBatchExport.C:67
std::vector< FFpCurveDef * > myCurves
Definition: FFpBatchExport.H:52
~FFpBatchExport()
Definition: FFpBatchExport.C:30
void readPlottingData(FFpGraph &rdbCurves)
Definition: FFpBatchExport.C:201
Definition: FFpCurveDef.H:20
Definition: FFpGraph.H:15
Definition: FFpBatchExport.H:20
int averages
Definition: FFpBatchExport.H:26
int repeats
Definition: FFpBatchExport.H:26
int framePts
Definition: FFpBatchExport.H:26
FFpRPC3Data()
Definition: FFpBatchExport.H:22
bool readDataFromFile(const std::string &rpcFile)
Definition: FFpRPC3Data.C:13
int groupPts
Definition: FFpBatchExport.H:26
Front-end for the result extraction module.
Definition: FFrExtractor.H:44