mbsim  4.0.0
MBSim Kernel
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MBSim::HarmonicResponseAnalyzer Class Reference

HarmonicResponseAnalyzer for dynamic systems. More...

#include <harmonic_response_analyzer.h>

Inheritance diagram for MBSim::HarmonicResponseAnalyzer:
[legend]

Public Types

enum  Task { frequencyResponse, unknown }
 
- Public Types inherited from fmatvec::Atom
enum  MsgType
 

Public Member Functions

 HarmonicResponseAnalyzer ()
 Standard constructor.
 
void execute ()
 Perform a harmonic response analysis of the system.
 
void setStartTime (double tStart_)
 Set the start time for the analysis. More...
 
void setExcitationFrequencies (const fmatvec::VecV &fE_)
 
void setSystemFrequencies (const fmatvec::VecV &fS_)
 
void setPlotStepSize (double dtPlot_)
 Set the plot step size for the analysis. More...
 
void setInitialState (const fmatvec::Vec &z0)
 Set the initital state for the analysis. More...
 
void setTask (Task task_)
 
const fmatvec::Vec & getInitialState () const
 
void setOutputFileName (const std::string &fileName_)
 Set the name of the output file. More...
 
void initializeUsingXML (xercesc::DOMElement *element)
 
- Public Member Functions inherited from MBSim::Solver
 Solver ()
 constructor
 
 ~Solver () override=default
 destructor
 
void throwError (const std::string &msg) const
 
void setSystem (DynamicSystemSolver *s)
 
MBSim::DynamicSystemSolver * getSystem ()
 
const MBXMLUtils::DOMEvalException & getDOMEvalError () const
 
- Public Member Functions inherited from fmatvec::Atom
Atom & operator= (const Atom &)
 
void setMessageStreamActive (MsgType type, bool activeFlag)
 
void getMessageStream (MsgType type, std::shared_ptr< bool > &a, std::shared_ptr< std::ostream > &s) const
 
void adoptMessageStreams (const Atom *src=nullptr)
 
std::ostream & msg (MsgType type) const
 
bool msgAct (MsgType type) const
 

Protected Member Functions

void computeFrequencyResponse ()
 
- Protected Member Functions inherited from fmatvec::Atom
 Atom (const Atom &src)
 

Protected Attributes

fmatvec::Vec zEq
 
fmatvec::Vec zh
 
fmatvec::VecV fE
 
fmatvec::VecV fS
 
fmatvec::Mat Zh
 
double tStart
 
double dtPlot
 
bool compEq
 
Task task
 
std::string fileName
 
- Protected Attributes inherited from MBSim::Solver
MBSim::DynamicSystemSolver * system
 dynamic system
 
MBXMLUtils::DOMEvalException domEvalError
 Special XML helper variable.
 

Additional Inherited Members

- Static Public Member Functions inherited from fmatvec::Atom
static void setCurrentMessageStream (MsgType type, const std::shared_ptr< bool > &a=std::make_shared< bool >(true), const std::shared_ptr< std::ostream > &s=std::make_shared< std::ostream >(std::cout.rdbuf()))
 
static std::ostream & msgStatic (MsgType type)
 
static bool msgActStatic (MsgType type)
 

Detailed Description

HarmonicResponseAnalyzer for dynamic systems.

Author
Martin Foerg

Member Function Documentation

◆ setInitialState()

void MBSim::HarmonicResponseAnalyzer::setInitialState ( const fmatvec::Vec &  z0)
inline

Set the initital state for the analysis.

Parameters
z0The initital state

◆ setOutputFileName()

void MBSim::HarmonicResponseAnalyzer::setOutputFileName ( const std::string &  fileName_)
inline

Set the name of the output file.

Parameters
fileName_The output file name

◆ setPlotStepSize()

void MBSim::HarmonicResponseAnalyzer::setPlotStepSize ( double  dtPlot_)
inline

Set the plot step size for the analysis.

Parameters
dtPlot_The plot step size

◆ setStartTime()

void MBSim::HarmonicResponseAnalyzer::setStartTime ( double  tStart_)
inline

Set the start time for the analysis.

Parameters
tStart_The start time

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