MBSim

Project Page
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
MBSim::Eigenanalyser Class Reference

Eigenanalyser for dynamic systems. More...

#include <eigenanalyser.h>

Inheritance diagram for MBSim::Eigenanalyser:
MBSim::Solver

List of all members.

Classes

class  Residuum

Public Types

enum  Task { eigenfrequencies, eigenmodes, eigenmode, eigenmotion }

Public Member Functions

 Eigenanalyser ()
 Standard constructor.
 ~Eigenanalyser ()
 Destructor.
void execute (DynamicSystemSolver &system)
 start solving the dynamic system
void analyse (DynamicSystemSolver &system)
 Perform the eigenanalysis.
void setInitialDeviation (const fmatvec::Vec &deltaz0_)
 Set the initial deviation of the equilibrium.
void setAmplitude (double A_)
 Set the amplitude for the eigemode analysis.
void setMode (int n_)
 Set the mode for the eigemode analysis.
void setStartTime (double tStart_)
 Set the start time for the analysis.
void setEndTime (double tEnd_)
 Set the end time for the analysis.
void setPlotStepSize (double dtPlot_)
 Set the plot step size for the analysis.
void setInitialState (const fmatvec::Vec &z0)
 Set the initital state for the analysis.
void setDetermineEquilibriumState (bool eq)
 Determine the equilibrium state for the analysis.
void setAutoUpdate (bool update)
 Automatic update of the eigenanalysis.
void setTask (Task task_)
const fmatvec::Vec & getInitialState () const
const fmatvec::Vector
< fmatvec::Ref, std::complex
< double > > & 
getEigenvalues () const
 Get the eigenvalues.
const fmatvec::SquareMatrix
< fmatvec::Ref, std::complex
< double > > & 
getEigenvectors () const
 Get the eigenvectors.
const fmatvec::Vec & getEigenfrequencies () const
 Get the eigenfrequencies.
void setOutputFileName (const std::string &fileName_)
 Set the name of the output file.
void initializeUsingXML (xercesc::DOMElement *element)

Protected Member Functions

bool saveEigenanalyis (const std::string &fileName)
bool loadEigenanalyis (const std::string &fileName)
void computeEigenfrequencies ()
void computeEigenvalues ()
void computeEigenmodes ()
void computeEigenmode ()
void computeEigenmotion ()

Protected Attributes

fmatvec::Vec z0
fmatvec::Vec deltaz0
fmatvec::Vec zEq
double tStart
double tEnd
double dtPlot
double A
int n
bool compEq
bool autoUpdate
Task task
fmatvec::SquareMatrix
< fmatvec::Ref, std::complex
< double > > 
V
fmatvec::Vector< fmatvec::Ref,
std::complex< double > > 
w
fmatvec::Vec freq
std::vector< std::pair< double,
int > > 
f
std::string fileName

Detailed Description

Eigenanalyser for dynamic systems.

Author:
Martin Foerg

Member Function Documentation

Perform the eigenanalysis.

Parameters:
systemThe dynamic system to be analysed
void MBSim::Eigenanalyser::execute ( DynamicSystemSolver &  system) [inline, virtual]

start solving the dynamic system

Parameters:
dynamicsystem to be solved

Implements MBSim::Solver.

const fmatvec::Vec& MBSim::Eigenanalyser::getEigenfrequencies ( ) const [inline]

Get the eigenfrequencies.

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

Get the eigenvalues.

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

Get the eigenvectors.

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

Set the amplitude for the eigemode analysis.

Parameters:
A_The amplitude
void MBSim::Eigenanalyser::setAutoUpdate ( bool  update) [inline]

Automatic update of the eigenanalysis.

Parameters:
updateTrue, if the eigenanalysis should be updated, automatically

Determine the equilibrium state for the analysis.

Parameters:
eqTrue, if the equilibrium state should be determined
void MBSim::Eigenanalyser::setEndTime ( double  tEnd_) [inline]

Set the end time for the analysis.

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

Set the initial deviation of the equilibrium.

Parameters:
deltaz_The deviation
void MBSim::Eigenanalyser::setInitialState ( const fmatvec::Vec &  z0) [inline]

Set the initital state for the analysis.

Parameters:
z0The initital state
void MBSim::Eigenanalyser::setMode ( int  n_) [inline]

Set the mode for the eigemode analysis.

Parameters:
n_The mode number
void MBSim::Eigenanalyser::setOutputFileName ( const std::string &  fileName_) [inline]

Set the name of the output file.

Parameters:
fileName_The output file name
void MBSim::Eigenanalyser::setPlotStepSize ( double  dtPlot_) [inline]

Set the plot step size for the analysis.

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