xc
BandArpackppSOE.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 //BandArpackppSOE.h
29 
30 #ifndef BandArpackppSOE_h
31 #define BandArpackppSOE_h
32 
33 #include <solution/system_of_eqn/eigenSOE/ArpackSOEBase.h>
34 #include "utility/matrices/matdispZ.h"
35 
37 
38 namespace XC {
39 class BandArpackppSolver;
40 
42 //
45  {
46  private:
47  msp_double A;
48  msp_double M;
49 
50  int addToMatrix(msp_double &,const Matrix &, const ID &,const double &);
51  protected:
52  bool setSolver(EigenSolver *);
53 
54  friend class SolutionStrategy;
55  friend class FEM_ObjectBroker;
56  BandArpackppSOE(SolutionStrategy *,const double &shift = -1.0);
57  SystemOfEqn *getCopy(void) const;
58  public:
59  virtual int setSize(Graph &theGraph);
60 
61  virtual int addA(const Matrix &, const ID &, double fact = 1.0);
62  virtual int addM(const Matrix &, const ID &, double fact = 1.0);
63 
64  virtual void zeroA(void);
65  virtual void zeroM(void);
66  virtual void identityM(void);
67 
68  inline const msp_double &getA(void) const
69  { return A; }
70  inline const msp_double &getM(void) const
71  { return M; }
72 
73  int sendSelf(Communicator &);
74  int recvSelf(const Communicator &);
75 
76  friend class BandArpackppSolver;
77  };
79  { return new BandArpackppSOE(*this); }
80 } // end of XC namespace
81 
82 #endif
Arpack++ based band matrix eigenvalue SOE solver.
Definition: BandArpackppSOE.h:44
virtual void zeroA(void)
Zeroes the matrix A.
Definition: BandArpackppSOE.cc:144
Communication parameters between processes.
Definition: Communicator.h:66
virtual int setSize(Graph &theGraph)
Sets the system size.
Definition: BandArpackppSOE.cc:56
virtual void identityM(void)
Makes M the identity matrix (to find stiffness matrix eigenvalues).
Definition: BandArpackppSOE.cc:214
bool setSolver(EigenSolver *)
Sets the solver to use.
Definition: BandArpackppSOE.cc:40
virtual int addA(const Matrix &, const ID &, double fact=1.0)
Assemblies into A the matrix being passed as parameter multimplied by the fact parameter.
Definition: BandArpackppSOE.cc:140
BandArpackppSOE(SolutionStrategy *, const double &shift=-1.0)
Constructor.
Definition: BandArpackppSOE.cc:36
Base class for Arpack++ based system of equations.
Definition: ArpackSOEBase.h:39
FEM_ObjectBroker is is an object broker class for the finite element method.
Definition: FEM_ObjectBroker.h:151
Vector of integers.
Definition: ID.h:95
virtual void zeroM(void)
Zeroes the matrix M.
Definition: BandArpackppSOE.cc:207
Eigenvalue SOE solver.
Definition: EigenSolver.h:60
int sendSelf(Communicator &)
Send the object.
Definition: BandArpackppSOE.cc:221
System of equations base class.
Definition: SystemOfEqn.h:90
SystemOfEqn * getCopy(void) const
Virtual constructor.
Definition: BandArpackppSOE.h:78
The Graph class provides the abstraction of a graph.
Definition: Graph.h:94
Arpack++ based band matrix eigenproblem solver.
Definition: BandArpackppSolver.h:41
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
int recvSelf(const Communicator &)
Receive the object.
Definition: BandArpackppSOE.cc:224
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
virtual int addM(const Matrix &, const ID &, double fact=1.0)
Assemblies into M the matrix being passed as parameter multimplied by the fact parameter.
Definition: BandArpackppSOE.cc:149
Matrix of floats.
Definition: Matrix.h:111