MBSim

Project Page
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
MBSim::Eigenanalysis Class Reference

Eigenanalysis for dynamic systems. More...

#include <eigenanalysis.h>

List of all members.

Classes

class  Residuum

Public Member Functions

 Eigenanalysis ()
 Standard constructor.
 ~Eigenanalysis ()
 Destructor.
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 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 setAutoUpdateAnalysis (bool update)
 Determine the equilibrium state for the analysis.
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 eigenmode (int i, DynamicSystemSolver &system)
 Compute and plot the i-th eigenmode.
void eigenmodes (DynamicSystemSolver &system)
 Compute and plot all eigenmodes.
void eigenmotion (DynamicSystemSolver &system)
 Compute and plot the eigenmotion.

Protected Member Functions

bool saveEigenanalyis (const std::string &fileName)
bool loadEigenanalyis (const std::string &fileName)
void computeEigenfrequencies ()

Protected Attributes

fmatvec::Vec z0
fmatvec::Vec deltaz0
fmatvec::Vec zEq
double tStart
double tEnd
double dtPlot
double A
bool compEq
bool autoUpdate
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

Static Protected Attributes

static DynamicSystemSolver * system

Detailed Description

Eigenanalysis for dynamic systems.

Author:
Martin Foerg

Member Function Documentation

Perform the eigenanalysis.

Parameters:
systemThe dynamic system to be analysed
void MBSim::Eigenanalysis::eigenmode ( int  i,
DynamicSystemSolver &  system 
)

Compute and plot the i-th eigenmode.

Parameters:
systemThe dynamic system to be analysed

Compute and plot all eigenmodes.

Parameters:
systemThe dynamic system to be analysed

Compute and plot the eigenmotion.

Parameters:
systemThe dynamic system to be analysed
const fmatvec::Vec& MBSim::Eigenanalysis::getEigenfrequencies ( ) const [inline]

Get the eigenfrequencies.

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

Get the eigenvalues.

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

Get the eigenvectors.

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

Set the amplitude for the eigemode analysis.

Parameters:
A_The amplitude
void MBSim::Eigenanalysis::setAutoUpdateAnalysis ( bool  update) [inline]

Determine the equilibrium state for the analysis.

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

Determine the equilibrium state for the analysis.

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

Set the end time for the analysis.

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

Set the initial deviation of the equilibrium.

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

Set the initital state for the analysis.

Parameters:
z0The initital state
void MBSim::Eigenanalysis::setOutputFileName ( const std::string &  fileName_) [inline]

Set the name of the output file.

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

Set the plot step size for the analysis.

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