FEDEM Model Database  R8.0
Source code of the FEDEM model database
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FmSolverParser Class Reference

Class managing writing the FEDEM dynamics solver input file. More...

#include <FmSolverParser.H>

Public Member Functions

 FmSolverParser (const char *fileName=NULL)
 The default constructor opens the named solver input file. More...
 
 ~FmSolverParser ()
 The destructor closes the solver input file. More...
 
int writeFullFile ()
 Writes the full solver input file for the current model. More...
 
void setRelPathCorrection (const std::string &path)
 Assigns the myRelPathCorrection member. More...
 
void setRDBPath (const std::string &path)
 Assigns the myRDBPath member. More...
 

Static Public Member Functions

static bool preSimuleCheck ()
 Performs some consistency checking on the current model. More...
 

Protected Member Functions

 FmSolverParser (const FmSolverParser &)=delete
 Deleted copy constructor. More...
 
FmSolverParser & operator= (const FmSolverParser &)=delete
 Deleted assignment operator. More...
 
int writeHeading ()
 Writes the heading of the solver input file. More...
 
int writeEnvironment ()
 Writes the environment record to the solver input file. More...
 
int writeAdditionalMasses ()
 Writes all additional masses to the solver input file. More...
 
int writeBeams (int &nextBaseId)
 Writes all beam elements to the solver input file. More...
 
int writeParts (std::vector< FmPart * > &gageParts)
 Writes all generic and FE parts to the solver input file. More...
 
int writeRosettes (const std::vector< FmPart * > &gageParts)
 Writes all strain rosettes to the solver input file. More...
 
int writeSensors ()
 Writes all sensors to the solver input file. More...
 
int writeSprings ()
 Writes all axial- and joint-springs to the solver input file. More...
 
int writeJoints ()
 Writes all joints to the solver input file. More...
 
int writeContactElement (FmCamJoint *aJoint)
 Writes a cam joint element to the solver input file. More...
 
int writeFriction (FmJointBase *aJoint, const std::vector< int > &iDof)
 Writes friction data, if any, for a joint to the solver input file. More...
 
int writeAllOfType (int classTypeID)
 Writes solver input record for all objects of type classTypeID. More...
 

Private Attributes

std::string myRDBPath
 Absolute path to where the dynamics solver will be run from. More...
 
std::string myRelPathCorrection
 Path to the model file location relative to myRDBPath. More...
 
FILE * myFile
 Pointer to the solver input file being written. More...
 

Detailed Description

Class managing writing the FEDEM dynamics solver input file.

Constructor & Destructor Documentation

◆ FmSolverParser() [1/2]

FmSolverParser::FmSolverParser ( const char *  fileName = NULL)
explicit

The default constructor opens the named solver input file.

◆ ~FmSolverParser()

FmSolverParser::~FmSolverParser ( )

The destructor closes the solver input file.

◆ FmSolverParser() [2/2]

FmSolverParser::FmSolverParser ( const FmSolverParser &  )
protecteddelete

Deleted copy constructor.

Member Function Documentation

◆ operator=()

FmSolverParser& FmSolverParser::operator= ( const FmSolverParser &  )
protecteddelete

Deleted assignment operator.

◆ preSimuleCheck()

bool FmSolverParser::preSimuleCheck ( )
static

Performs some consistency checking on the current model.

◆ setRDBPath()

void FmSolverParser::setRDBPath ( const std::string &  path)
inline

Assigns the myRDBPath member.

◆ setRelPathCorrection()

void FmSolverParser::setRelPathCorrection ( const std::string &  path)

Assigns the myRelPathCorrection member.

Use this to correct the relative paths printed by each entry, set e.g. to "../../" to resolve for the model_RDB/response_#### directory.

◆ writeAdditionalMasses()

int FmSolverParser::writeAdditionalMasses ( )
protected

Writes all additional masses to the solver input file.

◆ writeAllOfType()

int FmSolverParser::writeAllOfType ( int  classTypeID)
protected

Writes solver input record for all objects of type classTypeID.

This method is usable for all classes for which the FmModelMemberBase::printSolverEntry() method is implemented.

◆ writeBeams()

int FmSolverParser::writeBeams ( int &  nextBaseId)
protected

Writes all beam elements to the solver input file.

◆ writeContactElement()

int FmSolverParser::writeContactElement ( FmCamJoint *  aJoint)
protected

Writes a cam joint element to the solver input file.

◆ writeEnvironment()

int FmSolverParser::writeEnvironment ( )
protected

Writes the environment record to the solver input file.

◆ writeFriction()

int FmSolverParser::writeFriction ( FmJointBase *  aJoint,
const std::vector< int > &  iDof 
)
protected

Writes friction data, if any, for a joint to the solver input file.

◆ writeFullFile()

int FmSolverParser::writeFullFile ( )

Writes the full solver input file for the current model.

◆ writeHeading()

int FmSolverParser::writeHeading ( )
protected

Writes the heading of the solver input file.

◆ writeJoints()

int FmSolverParser::writeJoints ( )
protected

Writes all joints to the solver input file.

◆ writeParts()

int FmSolverParser::writeParts ( std::vector< FmPart * > &  gageParts)
protected

Writes all generic and FE parts to the solver input file.

◆ writeRosettes()

int FmSolverParser::writeRosettes ( const std::vector< FmPart * > &  gageParts)
protected

Writes all strain rosettes to the solver input file.

◆ writeSensors()

int FmSolverParser::writeSensors ( )
protected

Writes all sensors to the solver input file.

◆ writeSprings()

int FmSolverParser::writeSprings ( )
protected

Writes all axial- and joint-springs to the solver input file.

Member Data Documentation

◆ myFile

FILE* FmSolverParser::myFile
private

Pointer to the solver input file being written.

◆ myRDBPath

std::string FmSolverParser::myRDBPath
private

Absolute path to where the dynamics solver will be run from.

◆ myRelPathCorrection

std::string FmSolverParser::myRelPathCorrection
private

Path to the model file location relative to myRDBPath.


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