XC Open source finite element analysis program
BandArpackppSOE.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 //BandArpackppSOE.h
28 
29 #ifndef BandArpackppSOE_h
30 #define BandArpackppSOE_h
31 
32 #include <solution/system_of_eqn/eigenSOE/ArpackSOE.h>
33 #include "xc_basic/src/matrices/matdispZ.h"
34 
35 typedef matdispZ<double> msp_double;
36 
37 namespace XC {
38 class BandArpackppSolver;
39 
41 //
43 class BandArpackppSOE : public ArpackSOE
44  {
45  private:
46  msp_double A;
47  msp_double M;
48 
49  int addToMatrix(msp_double &,const Matrix &, const ID &,const double &);
50  protected:
51  bool setSolver(EigenSolver *);
52 
53  friend class SoluMethod;
54  friend class FEM_ObjectBroker;
55  BandArpackppSOE(SoluMethod *,const double &shift = -1.0);
56  SystemOfEqn *getCopy(void) const;
57  public:
58  virtual int setSize(Graph &theGraph);
59 
60  virtual int addA(const Matrix &, const ID &, double fact = 1.0);
61  virtual int addM(const Matrix &, const ID &, double fact = 1.0);
62 
63  virtual void zeroA(void);
64  virtual void zeroM(void);
65  virtual void identityM(void);
66 
67  inline const msp_double &getA(void) const
68  { return A; }
69  inline const msp_double &getM(void) const
70  { return M; }
71 
72  int sendSelf(CommParameters &);
73  int recvSelf(const CommParameters &);
74 
75  friend class BandArpackppSolver;
76  };
77 inline SystemOfEqn *BandArpackppSOE::getCopy(void) const
78  { return new BandArpackppSOE(*this); }
79 } // end of XC namespace
80 
81 #endif
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
virtual int setSize(Graph &theGraph)
Sets the system size.
Definition: BandArpackppSOE.cc:57
FEM_ObjectBroker is is an object broker class for the finite element method. All methods are virtual ...
Definition: FEM_ObjectBroker.h:138
System of equations base class.
Definition: SystemOfEqn.h:84
Definition: ID.h:77
Definition: Matrix.h:82
Arpack++ based band matrix eigenvalue SOE solver.
Definition: BandArpackppSOE.h:43
The Graph class provides the abstraction of a graph, a collection of vertices and edges...
Definition: Graph.h:84
bool setSolver(EigenSolver *)
Sets the solver to use.
Definition: BandArpackppSOE.cc:42
virtual int addA(const Matrix &, const ID &, double fact=1.0)
Assemblies into A the matrix being passed as parameter multimplied by the fact paremeter.
Definition: BandArpackppSOE.cc:139
virtual int addM(const Matrix &, const ID &, double fact=1.0)
Assemblies into M the matrix being passed as parameter multimplied by the fact paremeter.
Definition: BandArpackppSOE.cc:149
Arpack++ based band matrix eigenproblem solver.
Definition: BandArpackppSolver.h:41
BandArpackppSOE(SoluMethod *, const double &shift=-1.0)
Constructor.
Definition: BandArpackppSOE.cc:38
Communication parameters between processes.
Definition: CommParameters.h:65
Eigenvalue SOE solver.
Definition: EigenSolver.h:59
================================================================================
Definition: ContinuaReprComponent.h:34
virtual void zeroM(void)
Anula la matriz M.
Definition: BandArpackppSOE.cc:206
virtual void identityM(void)
Makes M the identity matrix (to find stiffness matrix eigenvalues).
Definition: BandArpackppSOE.cc:213
virtual void zeroA(void)
Anula la matriz A.
Definition: BandArpackppSOE.cc:144