FEDEM Solver  R8.0
Source code of the dynamics solver
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
FFpBatchExport Class Reference

Class managing auto-export of curve data for batch executions. More...

#include <FFpBatchExport.H>

Collaboration diagram for FFpBatchExport:
Collaboration graph
[legend]

Public Member Functions

 FFpBatchExport (const std::vector< std::string > &frsFiles)
 The constructor initializes myExtractor. More...
 
 ~FFpBatchExport ()
 The destructor releases the heap-allocated data objects. More...
 
bool readCurves (const std::string &defFile)
 Reads the curve definitions from a specified model file. More...
 
bool exportCurves (const std::string &path, const std::string &modelFile, int format)
 Exports curves as separate two-column files. More...
 
bool exportGraph (const std::string &fName, const std::string &modelFile, int format, const FFpRPC3Data &rpc)
 Exports curves as a single multi-column file. More...
 
bool printPosition (const std::string &fName="")
 Prints position data for the curve data variables (for debugging). More...
 

Static Public Member Functions

static bool readFrsFiles (std::vector< std::string > &frsFiles, const std::string &modelFile)
 Reads a list of frs-files with results from specified model file. More...
 

Private Member Functions

void readPlottingData (FFpGraph &rdbCurves)
 Reads the curve data to be exported. More...
 

Private Attributes

FFrExtractormyExtractor
 Extractor object holding the results data. More...
 
std::vector< FFpCurveDef * > myCurves
 Curve definition container. More...
 

Detailed Description

Class managing auto-export of curve data for batch executions.

Constructor & Destructor Documentation

◆ FFpBatchExport()

FFpBatchExport::FFpBatchExport ( const std::vector< std::string > &  frsFiles)

The constructor initializes myExtractor.

Parameters
[in]frsFilesList of frs-files to read curve data from

◆ ~FFpBatchExport()

FFpBatchExport::~FFpBatchExport ( )

The destructor releases the heap-allocated data objects.

Member Function Documentation

◆ exportCurves()

bool FFpBatchExport::exportCurves ( const std::string &  path,
const std::string &  modelFile,
int  format 
)

Exports curves as separate two-column files.

Parameters
[in]pathPrefix of the exported curve data files.
[in]modelFileFedem model file (for curve data file header)
[in]formatFormat of the exported curve files.

◆ exportGraph()

bool FFpBatchExport::exportGraph ( const std::string &  fName,
const std::string &  modelFile,
int  format,
const FFpRPC3Data rpc 
)

Exports curves as a single multi-column file.

Parameters
[in]fNameName of the exported curve data file.
[in]modelFileFedem model file (for curve data file header)
[in]formatFormat of the exported curve file.
[in]rpcRPC3-file meta data

◆ printPosition()

bool FFpBatchExport::printPosition ( const std::string &  fName = "")

Prints position data for the curve data variables (for debugging).

Parameters
[in]fNameOptional file to print to, if empty use std::cout.

◆ readCurves()

bool FFpBatchExport::readCurves ( const std::string &  defFile)

Reads the curve definitions from a specified model file.

Parameters
[in]defFileThe Fedem model file to read curve definitions from

◆ readFrsFiles()

bool FFpBatchExport::readFrsFiles ( std::vector< std::string > &  frsFiles,
const std::string &  modelFile 
)
static

Reads a list of frs-files with results from specified model file.

Parameters
[out]frsFilesList of frs-files associated with the model file.
[in]modelFileThe Fedem model file to extract frs-file names from

◆ readPlottingData()

void FFpBatchExport::readPlottingData ( FFpGraph rdbCurves)
private

Reads the curve data to be exported.

Parameters
[out]rdbCurvesContainer holding all curve data to be exporte

Member Data Documentation

◆ myCurves

std::vector<FFpCurveDef*> FFpBatchExport::myCurves
private

Curve definition container.

◆ myExtractor

FFrExtractor* FFpBatchExport::myExtractor
private

Extractor object holding the results data.


The documentation for this class was generated from the following files: