XC Open source finite element analysis program
EigenAnalysis.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.1.1.1 $
48 // $Date: 2000/09/15 08:23:16 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/analysis/EigenAnalysis.h,v $
50 
51 
52 // File: ~/analysis/analysis/eigenAnalysis/EigenAnalysis.h
53 //
54 // Written: Jun Peng
55 // Created: Wed Jan 27, 1999
56 // Revision: A
57 //
58 // Description: This file contains the class definition of EigenAnalysis.
59 // EigenAnalysis is a subclass of Analysis, it is used to perform the
60 // eigen value analysis on the FE_Model.
61 //
62 // This class is inheritanted from the base class of Analysis
63 // which was created by fmk (Frank).
64 
65 
66 #ifndef EigenAnalysis_h
67 #define EigenAnalysis_h
68 
69 #include <solution/analysis/analysis/Analysis.h>
70 
71 namespace XC {
72  class Vector;
73  class Matrix;
74 
76 //
78 class EigenAnalysis : public Analysis
79  {
80  protected:
81  int domainStamp;
82 
83 
84  friend class ProcSolu;
85  EigenAnalysis(SoluMethod *metodo);
86  Analysis *getCopy(void) const;
87  public:
88  virtual int analyze(int numModes);
89  void clearAll(void);
90  virtual int domainChanged(void);
91 
92  virtual int setAlgorithm(EigenAlgorithm &theAlgo);
93  virtual int setIntegrator(EigenIntegrator &theIntegrator);
94  virtual int setEigenSOE(EigenSOE &theSOE);
95 
96  //Autovectores.
97  virtual const Vector &getEigenvector(int mode) const;
98  Vector getNormalizedEigenvector(int mode) const;
99  Matrix getEigenvectors(void) const;
100  Matrix getNormalizedEigenvectors(void) const;
101 
102  //Eigenvalues.
103  virtual const double &getEigenvalue(int mode) const;
104  double getAngularFrequency(int mode) const;
105  double getPeriodo(int mode) const;
106  double getFrecuencia(int mode) const;
107  Vector getEigenvalues(void) const;
108  Vector getAngularFrequencies(void) const;
109  Vector getPeriodos(void) const;
110  Vector getFrecuencias(void) const;
111  int getNumModes(void) const;
112 
113  //Modal participation factors.
114  virtual double getModalParticipationFactor(int mode) const;
116 
117  //Distribution factors.
118  Vector getDistributionFactor(int mode) const;
119  Matrix getDistributionFactors(void) const;
120 
121  //Effective modal masses.
122  double getEffectiveModalMass(int mode) const;
123  Vector getEffectiveModalMasses(void) const;
124  double getTotalMass(void) const;
125 
126  //Equivalent static load.
127  Vector getEquivalentStaticLoad(int mode,const double &) const;
128  };
129 
130 } // end of XC namespace
131 
132 #endif
133 
virtual int setIntegrator(EigenIntegrator &theIntegrator)
Sets the integrator to use in the analysis.
Definition: EigenAnalysis.cpp:201
Matrix getEigenvectors(void) const
Returns a matriz con los eigenvectors calculados colocados por columnas.
Definition: EigenAnalysis.cpp:240
double getEffectiveModalMass(int mode) const
Return the masa modal efectiva correspondiente al modo i.
Definition: EigenAnalysis.cpp:382
Solution algorithm for eigenproblem.
Definition: EigenAlgorithm.h:83
Definition: Vector.h:82
Clase Base para los objetos que realizan the analysis.
Definition: Analysis.h:109
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
Eigenproblem analysis.
Definition: EigenAnalysis.h:78
Analysis * getCopy(void) const
Virtual constructor.
Definition: EigenAnalysis.cpp:86
Vector getEffectiveModalMasses(void) const
Returns the masas modales efectivas.
Definition: EigenAnalysis.cpp:392
void clearAll(void)
Clears all object members (constraint handler, analysis model,...).
Definition: EigenAnalysis.cpp:90
Vector getEigenvalues(void) const
Returns a vector with the computed eigenvalues for each mode.
Definition: EigenAnalysis.cpp:283
virtual int setEigenSOE(EigenSOE &theSOE)
Sets the sistema de eigenvalues to use in the analysis.
Definition: EigenAnalysis.cpp:209
virtual const double & getEigenvalue(int mode) const
Returns the eigenvalue que corresponde al modo being passed as parameter.
Definition: EigenAnalysis.cpp:261
Solution procedure for the finite element problem.
Definition: ProcSolu.h:56
Base class for eigenproblem systems of equations.
Definition: EigenSOE.h:63
Vector getFrecuencias(void) const
Returns a vector con las frecuencias calculadas.
Definition: EigenAnalysis.cpp:313
Vector getPeriodos(void) const
Returns a vector with the computed vectors for each mode.
Definition: EigenAnalysis.cpp:303
int getNumModes(void) const
Returns the number of eigenvalues que se han calculado.
Definition: EigenAnalysis.cpp:323
Vector getDistributionFactor(int mode) const
Returns the factor de distribución correspondiente al modo being passed as parameter.
Definition: EigenAnalysis.cpp:360
double getFrecuencia(int mode) const
Return the frequency for the i-th mode.
Definition: EigenAnalysis.cpp:279
virtual const Vector & getEigenvector(int mode) const
Returns the autovector que corresponde al modo being passed as parameter.
Definition: EigenAnalysis.cpp:216
Base class for eigenproblem integrators.
Definition: EigenIntegrator.h:85
double getTotalMass(void) const
Return the masa total del modelo.
Definition: EigenAnalysis.cpp:402
double getPeriodo(int mode) const
Returns the period for the i-th mode.
Definition: EigenAnalysis.cpp:275
Vector getEquivalentStaticLoad(int mode, const double &) const
Returns the equivalent static load for the mode being passed as parameter.
Definition: EigenAnalysis.cpp:413
Definition: Matrix.h:82
Matrix getNormalizedEigenvectors(void) const
Returns a matriz con los eigenvectors normalizados colocados por columnas (norma_infinito).
Definition: EigenAnalysis.cpp:251
EigenAnalysis(SoluMethod *metodo)
Constructor.
Definition: EigenAnalysis.cpp:82
virtual int analyze(int numModes)
Performs the analysis.
Definition: EigenAnalysis.cpp:98
virtual double getModalParticipationFactor(int mode) const
Returns the factor de participación modal correspondiente al modo i.
Definition: EigenAnalysis.cpp:334
Matrix getDistributionFactors(void) const
Returns a matriz con los factores de distribución calculados colocados por columnas.
Definition: EigenAnalysis.cpp:371
virtual int domainChanged(void)
Hace los cambios necesarios como consecuencia de un cambio en el domain.
Definition: EigenAnalysis.cpp:137
Vector getModalParticipationFactors(void) const
Returns the factores de participación modal.
Definition: EigenAnalysis.cpp:347
double getAngularFrequency(int mode) const
Return the angular frequency for the i-th mode.
Definition: EigenAnalysis.cpp:271
Vector getNormalizedEigenvector(int mode) const
Returns the autovector que corresponde al modo being passed as parameter normalizado de modo que la c...
Definition: EigenAnalysis.cpp:228
================================================================================
Definition: ContinuaReprComponent.h:34
Vector getAngularFrequencies(void) const
Returns a vector with the computed angular frequencies for each mode.
Definition: EigenAnalysis.cpp:293
virtual int setAlgorithm(EigenAlgorithm &theAlgo)
Sets the algorithm to use in the analysis.
Definition: EigenAnalysis.cpp:193