chrono::ChModalAnalysisUndamped< EigenvalueSolverType > Class Template Reference

Description

template<typename EigenvalueSolverType>
class chrono::ChModalAnalysisUndamped< EigenvalueSolverType >

Modal analysis of undamped systems (-w^2*M+K)*x = 0 s.t.

Cq*x = 0 Contrary to eigensolvers, these classes deals directly with Chrono data structures, creating the appropriate setup for running the inner eigensolver. Multiple requests spanning different frequency ranges can be specified.

#include <ChModalAnalysisUndamped.h>

Inheritance diagram for chrono::ChModalAnalysisUndamped< EigenvalueSolverType >:
Collaboration diagram for chrono::ChModalAnalysisUndamped< EigenvalueSolverType >:

Public Types

using ScalarType = typename EigenvalueSolverType::ScalarType
 

Public Member Functions

 ChModalAnalysisUndamped (int n_lower_modes, double base_freq=1e-5, bool scaleCq=true, bool verbose=false, std::shared_ptr< EigenvalueSolverType > solver=chrono_types::make_shared< EigenvalueSolverType >())
 Creates a modal analysis for the undamped case. More...
 
 ChModalAnalysisUndamped (std::vector< ChFreqSpan > freq_spans, bool scaleCq=true, bool verbose=false, std::shared_ptr< EigenvalueSolverType > solver=chrono_types::make_shared< EigenvalueSolverType >())
 Creates a modal analysis for the undamped case. More...
 
int Solve (const ChAssembly &assembly, ChMatrixDynamic< ScalarType > &eigvects, ChVectorDynamic< ScalarType > &eigvals, ChVectorDynamic< double > &freq) const
 Solve the constrained eigenvalue problem retrieving it from the ChAssembly. More...
 
int Solve (const ChSparseMatrix &K, const ChSparseMatrix &M, const ChSparseMatrix &Cq, ChMatrixDynamic< ScalarType > &eigvects, ChVectorDynamic< ScalarType > &eigvals, ChVectorDynamic< double > &freq) const
 Solve the constrained eigenvalue problem setting it up from individual matrices. More...
 
std::shared_ptr< EigenvalueSolverType > GetEigenSolver () const
 Get the inner eigensolver.
 
- Public Member Functions inherited from chrono::ChModalAnalysis
 ChModalAnalysis (int n_lower_modes, double base_freq, bool scaleCq, bool verbose)
 Creates a modal analysis. More...
 
 ChModalAnalysis (std::vector< ChFreqSpan > freq_spans, bool scaleCq, bool verbose)
 Creates a modal analysis. More...
 
int GetNumRequestedModes () const
 Get the total number of requested modes.
 
void SetClipPositionCoords (bool val)
 Clip the eigenvectors to only the position coordinates.
 
const std::vector< ChFreqSpan > & GetFrequencySpans () const
 Get the set of frequency spans for which modes are requested.
 
double GetTimeMatrixAssembly () const
 Get cumulative time for matrix assembly.
 
double GetTimeEigenSolver () const
 Get cumulative time eigensolver solution.
 
double GetTimeSolutionPostProcessing () const
 Get cumulative time for post-solver solution postprocessing.
 

Static Protected Member Functions

static ScalarType GetShift (double freq)
 Return the shift for the modes near the given frequency: the eigenvalues of the undamped problem are -(2 pi f)^2.
 
static void GetFrequencies (const ChVectorDynamic< ScalarType > &eigvals, ChVectorDynamic< double > &freq)
 Compute the natural frequencies of the modes from the eigenvalues of the undamped problem, -(2 pi f)^2.
 

Protected Attributes

std::shared_ptr< EigenvalueSolverType > m_solver
 
- Protected Attributes inherited from chrono::ChModalAnalysis
ChTimer m_timer_matrix_assembly
 timer for matrix assembly
 
ChTimer m_timer_eigen_solver
 timer for eigensolver solution
 
ChTimer m_timer_solution_postprocessing
 timer for conversion of eigensolver solution
 
std::vector< ChFreqSpan > m_freq_spans
 frequency spans for which modes are requested
 
bool m_clip_position_coords
 store only the part of each eigenvector that refers to the position coordinates More...
 
bool m_scale_Cq = true
 if true, the Cq matrix is scaled to improve conditioning
 
bool m_verbose = false
 if true, additional information is printed during the solution process
 

Constructor & Destructor Documentation

◆ ChModalAnalysisUndamped() [1/2]

template<typename EigenvalueSolverType >
chrono::ChModalAnalysisUndamped< EigenvalueSolverType >::ChModalAnalysisUndamped ( int  n_lower_modes,
double  base_freq = 1e-5,
bool  scaleCq = true,
bool  verbose = false,
std::shared_ptr< EigenvalueSolverType >  solver = chrono_types::make_shared<EigenvalueSolverType>() 
)
inline

Creates a modal analysis for the undamped case.

n_lower_modes number of lowest modes to be found. base_freq frequency around which the modes will be found; for a free structure, use a value below the first elastic frequency and not lower than about a thousandth of it (the default suits constrained structures). scaleCq if true, the Cq matrix is scaled to improve conditioning. verbose if true, additional information is printed during the solution process. solver the inner eigensolver to be used.

◆ ChModalAnalysisUndamped() [2/2]

template<typename EigenvalueSolverType >
chrono::ChModalAnalysisUndamped< EigenvalueSolverType >::ChModalAnalysisUndamped ( std::vector< ChFreqSpan >  freq_spans,
bool  scaleCq = true,
bool  verbose = false,
std::shared_ptr< EigenvalueSolverType >  solver = chrono_types::make_shared<EigenvalueSolverType>() 
)
inline

Creates a modal analysis for the undamped case.

freq_spans pair of number of modes and frequency around which the modes will be found. ill-conditioned problems. scaleCq if true, the Cq matrix is scaled to improve conditioning. verbose if true, additional information is printed during the solution process. solver the inner eigensolver to be used.


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/physics/ChModalAnalysisUndamped.h