XC Open source finite element analysis program
BandArpackSOE.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 // File: ~/system_of_eqn/eigenSOE/BandArpackSOE.h
28 //
29 // Written: Jun Peng
30 // Created: Febuary 1999
31 // Revision: A
32 //
33 
34 
35 
36 #ifndef BandArpackSOE_h
37 #define BandArpackSOE_h
38 
39 #include <solution/system_of_eqn/eigenSOE/ArpackSOE.h>
40 #include "utility/matrix/Vector.h"
41 
42 namespace XC {
43 
44 class BandArpackSolver;
45 
47 //
51 class BandArpackSOE: public ArpackSOE
52  {
53  private:
54  int numSuperD; //Numero de diagonales por encima de la principal.
55  int numSubD; //Numero de diagonales por debajo de la principal.
56  Vector A;
57  protected:
58  bool setSolver(EigenSolver *);
59 
60  friend class SoluMethod;
61  friend class FEM_ObjectBroker;
62  BandArpackSOE(SoluMethod *, double shift = 0.0);
63  SystemOfEqn *getCopy(void) const;
64  public:
65  virtual int setSize(Graph &theGraph);
66 
67  virtual int addA(const Matrix &, const ID &, double fact = 1.0);
68  virtual int addM(const Matrix &, const ID &, double fact = 1.0);
69 
70  virtual void zeroA(void);
71  virtual void zeroM(void);
72  virtual void identityM(void);
73 
74  int sendSelf(CommParameters &);
75  int recvSelf(const CommParameters &);
76 
77 
78  friend class BandArpackSolver;
79  };
80 inline SystemOfEqn *BandArpackSOE::getCopy(void) const
81  { return new BandArpackSOE(*this); }
82 } // end of XC namespace
83 
84 
85 #endif
86 
87 
88 
virtual int addA(const Matrix &, const ID &, double fact=1.0)
Assemblies in A the matrix being passed as parameter multiplied by the fact parameter.
Definition: BandArpackSOE.cpp:95
virtual int setSize(Graph &theGraph)
Sets the size of the system from the number of vertices in the graph.
Definition: BandArpackSOE.cpp:67
Definition: Vector.h:82
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
Arpack++ based system of equations.
Definition: ArpackSOE.h:39
bool setSolver(EigenSolver *)
Sets the solver that will be used to compute the solution.
Definition: BandArpackSOE.cpp:52
FEM_ObjectBroker is is an object broker class for the finite element method. All methods are virtual ...
Definition: FEM_ObjectBroker.h:138
virtual void zeroA(void)
Anula la matriz M.
Definition: BandArpackSOE.cpp:186
System of equations base class.
Definition: SystemOfEqn.h:84
Definition: ID.h:77
virtual void identityM(void)
Makes M the identity matrix (to find stiffness matrix eigenvalues).
Definition: BandArpackSOE.cpp:245
Arpack solver for banded matrices. The ARnoldi PACKage, is a numerical software library written in FO...
Definition: BandArpackSolver.h:50
Definition: Matrix.h:82
virtual void zeroM(void)
Anula la matriz M.
Definition: BandArpackSOE.cpp:239
BandArpackSOE(SoluMethod *, double shift=0.0)
Constructor.
Definition: BandArpackSOE.cpp:47
The Graph class provides the abstraction of a graph, a collection of vertices and edges...
Definition: Graph.h:84
virtual int addM(const Matrix &, const ID &, double fact=1.0)
Assemblies in M the matrix being passed as parameter multiplied by the fact parameter.
Definition: BandArpackSOE.cpp:194
BandArpackSOE is a subclass of ArpackSOE. It uses the LAPACK storage scheme to store the components o...
Definition: BandArpackSOE.h:51
Communication parameters between processes.
Definition: CommParameters.h:65
Eigenvalue SOE solver.
Definition: EigenSolver.h:59
================================================================================
Definition: ContinuaReprComponent.h:34