XC Open source finite element analysis program
BandArpackppSolver.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 //BandArpackppSolver.h
28 
29 #ifndef BandArpackppSolver_h
30 #define BandArpackppSolver_h
31 
32 #include <solution/system_of_eqn/eigenSOE/EigenSolver.h>
33 #include "utility/matrix/Vector.h"
34 
35 namespace XC {
36 class BandArpackppSOE;
37 
39 //
42  {
43  private:
44  BandArpackppSOE *theSOE;
45  std::vector<double> eigenvalues;
46  std::vector<Vector> eigenvectors;
47 
48  void setup_autos(const size_t &nmodos,const size_t &n);
49 
50  friend class EigenSOE;
51  BandArpackppSolver(void);
52  BandArpackppSolver(const int &nModes);
53  virtual EigenSolver *getCopy(void) const;
54  bool setEigenSOE(EigenSOE *theSOE);
55  public:
56 
57  virtual int solve(void);
58  virtual int solve(int nModes);
59  virtual int setSize(void);
60  const int &getSize(void) const;
61  virtual bool setEigenSOE(BandArpackppSOE &theSOE);
62 
63  virtual const Vector &getEigenvector(int mode) const;
64  virtual const double &getEigenvalue(int mode) const;
65 
66  int sendSelf(CommParameters &);
67  int recvSelf(const CommParameters &);
68  };
69 
70 inline EigenSolver *BandArpackppSolver::getCopy(void) const
71  { return new BandArpackppSolver(*this); }
72 } // end of XC namespace
73 
74 #endif
Definition: Vector.h:82
Base class for eigenproblem systems of equations.
Definition: EigenSOE.h:63
Arpack++ based band matrix eigenvalue SOE solver.
Definition: BandArpackppSOE.h:43
const int & getSize(void) const
Return the dimension of eigenvectors.
Definition: BandArpackppSolver.cc:187
Arpack++ based band matrix eigenproblem solver.
Definition: BandArpackppSolver.h:41
Communication parameters between processes.
Definition: CommParameters.h:65
Eigenvalue SOE solver.
Definition: EigenSolver.h:59
================================================================================
Definition: ContinuaReprComponent.h:34
virtual int solve(void)
Solves para todos los eigenvalues del problema.
Definition: BandArpackppSolver.cc:45