xc
ModalAnalysis.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //ModalAnalysis.h
29 
30 
31 #ifndef ModalAnalysis_h
32 #define ModalAnalysis_h
33 
34 #include "EigenAnalysis.h"
35 #include "utility/geom/d1/function_from_points/FunctionFromPointsR_R.h"
36 
37 namespace XC {
38 class Matrix;
39 
41 //
44  {
45  protected:
46  FunctionFromPointsR_R espectro;
47 
48  friend class SolutionProcedure;
49  ModalAnalysis(SolutionStrategy *analysis_aggregation);
50  public:
51  inline const FunctionFromPointsR_R &getSpectrum(void) const
52  { return espectro; }
53  inline void setSpectrum(const FunctionFromPointsR_R &s)
54  { espectro= s; }
55  //Aceleraciones.
56  double getAcceleration(const double &) const;
57  Vector getAccelerations(const Vector &) const;
58  Vector getModalAccelerations(void) const;
60 
61  //Equivalent static load.
62  Vector getEquivalentStaticLoad(int mode) const;
63  };
64 
65 } // end of XC namespace
66 
67 #endif
68 
Float vector abstraction.
Definition: Vector.h:94
Vector getAccelerations(const Vector &) const
Returns the accelerations that correspond to the periods being passed as parameters.
Definition: ModalAnalysis.cc:48
double getAcceleration(const double &) const
Returns the acceleration that corresponds to the period being passed as parameter.
Definition: ModalAnalysis.cc:43
Eigenproblem analysis.
Definition: EigenAnalysis.h:79
ModalAnalysis(SolutionStrategy *analysis_aggregation)
Constructor.
Definition: ModalAnalysis.cc:38
Vector getModalAccelerations(void) const
Returns the accelerations that correspond to the computed modes.
Definition: ModalAnalysis.cc:59
Solution procedure for the finite element problem.
Definition: SolutionProcedure.h:57
Matrix getCQCModalCrossCorrelationCoefficients(const Vector &zetas) const
Returns the correlation coefficients between modes being used in CQC method.
Definition: ModalAnalysis.cc:74
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Vector getEquivalentStaticLoad(int mode) const
Return the equivalent static load for the mode being passed as parameter.
Definition: ModalAnalysis.cc:64
Matrix of floats.
Definition: Matrix.h:111
f:R->R function defined on a set of points.
Definition: FunctionFromPointsR_R.h:36
Modal analysis.
Definition: ModalAnalysis.h:43