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

#include <FFpGraph.H>

Public Types

enum  Format {
  ASCII , DAC_LITTLE_ENDIAN , DAC_BIG_ENDIAN , RPC_LITTLE_ENDIAN ,
  RPC_BIG_ENDIAN , NFORMATS
}
 Enums for available curve export formats. More...
 

Public Member Functions

 FFpGraph (FFpCurve *curve=NULL)
 
 FFpGraph (size_t nCurves, bool populateGraph=true)
 
 ~FFpGraph ()
 
void addCurve (FFpCurve *curve)
 
void clear ()
 
bool empty () const
 
size_t numCurves () const
 
FFpCurveoperator[] (const size_t i)
 
void getTimeInterval (double &t0, double &t1) const
 
void setTimeInterval (double t0, double t1)
 
void setNoHeaderState (bool state=true)
 
void setNoXaxisValues (bool state=true)
 
bool getNoXaxisValues () const
 
bool loadTemporalData (FFrExtractor *extractor, std::string &errMsg)
 
bool loadSpatialData (FFrExtractor *extractor, std::string &errMsg)
 
bool writeCurve (const std::string &fileName, int format, const std::string &curveId, const std::string &descr, const std::string &xTitle, const std::string &yTitle, const std::string &modelName, std::string &errMsg, int curveNo=1)
 
bool writeGraph (const std::string &fileName, int format, const std::vector< std::string > &curveId, const std::vector< std::string > &cDescr, const std::string &modelName, std::string &errMsg, int repeats=0, int averages=0, int frmPts=0, int grpPts=0)
 

Static Private Member Functions

static double minIncrement (const std::vector< double > &xVals)
 

Private Attributes

std::vector< FFpCurve * > curves
 
bool noHeader
 Toggles writing of ASCII file header. More...
 
bool noXvalues
 Should only the Y-axis values be read? More...
 
bool internal
 Are the FFpCurves allocated internally or not? More...
 
double tmin
 
double tmax
 Time interval for RDB data loading. More...
 

Member Enumeration Documentation

◆ Format

Enums for available curve export formats.

Enumerator
ASCII 
DAC_LITTLE_ENDIAN 
DAC_BIG_ENDIAN 
RPC_LITTLE_ENDIAN 
RPC_BIG_ENDIAN 
NFORMATS 

Constructor & Destructor Documentation

◆ FFpGraph() [1/2]

FFpGraph::FFpGraph ( FFpCurve curve = NULL)

◆ FFpGraph() [2/2]

FFpGraph::FFpGraph ( size_t  nCurves,
bool  populateGraph = true 
)

◆ ~FFpGraph()

FFpGraph::~FFpGraph ( )

Member Function Documentation

◆ addCurve()

void FFpGraph::addCurve ( FFpCurve curve)
inline

◆ clear()

void FFpGraph::clear ( )
inline

◆ empty()

bool FFpGraph::empty ( ) const
inline

◆ getNoXaxisValues()

bool FFpGraph::getNoXaxisValues ( ) const
inline

◆ getTimeInterval()

void FFpGraph::getTimeInterval ( double &  t0,
double &  t1 
) const
inline

◆ loadSpatialData()

bool FFpGraph::loadSpatialData ( FFrExtractor extractor,
std::string &  errMsg 
)

Load spatial data from results data base for all RDB-curves.

◆ loadTemporalData()

bool FFpGraph::loadTemporalData ( FFrExtractor extractor,
std::string &  errMsg 
)

Load time history data from results data base for all RDB-curves.

◆ minIncrement()

double FFpGraph::minIncrement ( const std::vector< double > &  xVals)
staticprivate

Get the smallest increment in X (which also is != 0). Returns zero value if not strictly increasing or decreasing.

◆ numCurves()

size_t FFpGraph::numCurves ( ) const
inline

◆ operator[]()

FFpCurve& FFpGraph::operator[] ( const size_t  i)
inline

◆ setNoHeaderState()

void FFpGraph::setNoHeaderState ( bool  state = true)
inline

◆ setNoXaxisValues()

void FFpGraph::setNoXaxisValues ( bool  state = true)
inline

◆ setTimeInterval()

void FFpGraph::setTimeInterval ( double  t0,
double  t1 
)

◆ writeCurve()

bool FFpGraph::writeCurve ( const std::string &  fileName,
int  fileType,
const std::string &  curveId,
const std::string &  descr,
const std::string &  xTitle,
const std::string &  yTitle,
const std::string &  modelName,
std::string &  errMsg,
int  curveNo = 1 
)

Write a single curve to an ASCII, DAC or one-channel RPC-file.

◆ writeGraph()

bool FFpGraph::writeGraph ( const std::string &  fileName,
int  fileType,
const std::vector< std::string > &  curveId,
const std::vector< std::string > &  cDescr,
const std::string &  modelName,
std::string &  errMsg,
int  repeats = 0,
int  averages = 0,
int  frmPts = 0,
int  grpPts = 0 
)

Write all curves in a graph to a single RPC-file or a multi-column ASCII-file.

Member Data Documentation

◆ curves

std::vector<FFpCurve*> FFpGraph::curves
private

◆ internal

bool FFpGraph::internal
private

Are the FFpCurves allocated internally or not?

◆ noHeader

bool FFpGraph::noHeader
private

Toggles writing of ASCII file header.

◆ noXvalues

bool FFpGraph::noXvalues
private

Should only the Y-axis values be read?

◆ tmax

double FFpGraph::tmax
private

Time interval for RDB data loading.

◆ tmin

double FFpGraph::tmin
private

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