All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MBSim::Eigenanalyzer Class Reference

Eigenanalyzer for dynamic systems. More...

#include <eigenanalyzer.h>

Inheritance diagram for MBSim::Eigenanalyzer:
[legend]

Public Types

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

Public Member Functions

 Eigenanalyzer ()
 Standard constructor.
 
void execute ()
 Perform an eigenanalysis of the system.
 
void setInitialDeviation (const fmatvec::Vec &deltaz0_)
 Set the initial deviation of the equilibrium. More...
 
void setAmplitude (double A_)
 Set the amplitude of all modes for animation. More...
 
void setModeAmplitudeTable (const fmatvec::Matrix< fmatvec::General, fmatvec::Var, fmatvec::Fixed< 2 >, double > &MA_)
 Set the amplitude per mode for animation. More...
 
void setLoops (double loops_)
 Set the number of loops for animation of each mode. More...
 
void setStartTime (double tStart_)
 Set the start time for the analysis. More...
 
void setEndTime (double tEnd_)
 Set the end time for the analysis. More...
 
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
 
const fmatvec::Vector
< fmatvec::Ref, std::complex
< double > > & 
getEigenvalues () const
 Get the eigenvalues. More...
 
const fmatvec::SquareMatrix
< fmatvec::Ref, std::complex
< double > > & 
getEigenvectors () const
 Get the eigenvectors. More...
 
fmatvec::Vec getEigenfrequencies () const
 Get the eigenfrequencies. More...
 
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

bool saveEigenanalyis (const std::string &fileName)
 
void computeEigenvalues ()
 
void computeEigenmodes ()
 
void computeEigenmotion ()
 
- Protected Member Functions inherited from fmatvec::Atom
 Atom (const Atom &src)
 

Protected Attributes

fmatvec::Vec zEq
 
fmatvec::Vec deltaz0
 
double tStart
 
double tEnd
 
double dtPlot
 
double A
 
int loops
 
int plotsPerLoop
 
Task task
 
fmatvec::SquareMatrix
< fmatvec::Ref, std::complex
< double > > 
V
 
fmatvec::Vector< fmatvec::Ref,
std::complex< double > > 
w
 
std::vector< std::pair< double,
int > > 
f
 
fmatvec::Matrix
< fmatvec::General,
fmatvec::Var, fmatvec::Fixed
< 2 >, double > 
MA
 
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

Eigenanalyzer for dynamic systems.

Author
Martin Foerg

Member Function Documentation

Vec MBSim::Eigenanalyzer::getEigenfrequencies ( ) const

Get the eigenfrequencies.

Returns
A vector containing the eigenfrequencies of the system
const fmatvec::Vector<fmatvec::Ref, std::complex<double> >& MBSim::Eigenanalyzer::getEigenvalues ( ) const
inline

Get the eigenvalues.

Returns
A vector containing the eigenvalues of the system
const fmatvec::SquareMatrix<fmatvec::Ref, std::complex<double> >& MBSim::Eigenanalyzer::getEigenvectors ( ) const
inline

Get the eigenvectors.

Returns
A matrix containing the eigenvectors of the system
void MBSim::Eigenanalyzer::setAmplitude ( double  A_)
inline

Set the amplitude of all modes for animation.

Parameters
A_The amplitude
void MBSim::Eigenanalyzer::setEndTime ( double  tEnd_)
inline

Set the end time for the analysis.

Parameters
tEnd_The end time
void MBSim::Eigenanalyzer::setInitialDeviation ( const fmatvec::Vec &  deltaz0_)
inline

Set the initial deviation of the equilibrium.

Parameters
deltaz_The deviation
void MBSim::Eigenanalyzer::setInitialState ( const fmatvec::Vec &  z0)
inline

Set the initital state for the analysis.

Parameters
z0The initital state
void MBSim::Eigenanalyzer::setLoops ( double  loops_)
inline

Set the number of loops for animation of each mode.

Parameters
loops_The number of loops
void MBSim::Eigenanalyzer::setModeAmplitudeTable ( const fmatvec::Matrix< fmatvec::General, fmatvec::Var, fmatvec::Fixed< 2 >, double > &  MA_)
inline

Set the amplitude per mode for animation.

Parameters
A_A table with mode number and amplitude
void MBSim::Eigenanalyzer::setOutputFileName ( const std::string &  fileName_)
inline

Set the name of the output file.

Parameters
fileName_The output file name
void MBSim::Eigenanalyzer::setPlotStepSize ( double  dtPlot_)
inline

Set the plot step size for the analysis.

Parameters
dtPlot_The plot step size
void MBSim::Eigenanalyzer::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:

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Home