XC Open source finite element analysis program
SymBandEigenSOE.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 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.2 $
48 // $Date: 2004/10/05 00:17:31 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/eigenSOE/SymBandEigenSOE.h,v $
50 
51 // Written: MHS
52 // Created: Oct 2001
53 //
54 // Description: This file contains the class definition for
55 // SymBandEigenSOE, which stores a symmetric banded matrix, A, for
56 // standard eigenvalue computations.
57 
58 #ifndef SymBandEigenSOE_h
59 #define SymBandEigenSOE_h
60 
61 #include <solution/system_of_eqn/eigenSOE/EigenSOE.h>
62 #include "utility/matrix/Vector.h"
63 
64 namespace XC {
65 class SymBandEigenSolver;
66 
68 //
70 class SymBandEigenSOE : public EigenSOE
71  {
72  private:
73  int numSuperD;
74  Vector A;
75  Vector M;
76  protected:
77  bool setSolver(EigenSolver *);
78 
79  friend class SoluMethod;
80  friend class FEM_ObjectBroker;
82  SystemOfEqn *getCopy(void) const;
83  public:
84  virtual int setSize(Graph &theGraph);
85 
86  virtual int addA(const Matrix &, const ID &, double fact = 1.0);
87  virtual int addM(const Matrix &, const ID &, double fact = 1.0);
88 
89  virtual void zeroA(void);
90  virtual void zeroM(void);
91  virtual void identityM(void);
92 
93  int sendSelf(CommParameters &);
94  int recvSelf(const CommParameters &);
95 
96 
97  friend class SymBandEigenSolver;
98  };
99 inline SystemOfEqn *SymBandEigenSOE::getCopy(void) const
100  { return new SymBandEigenSOE(*this); }
101 } // end of XC namespace
102 
103 #endif
virtual void identityM(void)
Makes M the identity matrix (to find stiffness matrix eigenvalues).
Definition: SymBandEigenSOE.cpp:231
Definition: Vector.h:82
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: SymBandEigenSOE.cpp:112
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
bool setSolver(EigenSolver *)
Sets the solver that will be used to solve the eigenvalue problem.
Definition: SymBandEigenSOE.cpp:73
Band symmetric matrix eigenvaules system of equations.
Definition: SymBandEigenSOE.h:70
Base class for eigenproblem systems of equations.
Definition: EigenSOE.h:63
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
SymBandEigenSOE(SoluMethod *)
Constructor.
Definition: SymBandEigenSOE.cpp:69
virtual void zeroM(void)
Anula la matriz M.
Definition: SymBandEigenSOE.cpp:224
virtual void zeroA(void)
Anula la matriz A.
Definition: SymBandEigenSOE.cpp:170
Definition: Matrix.h:82
virtual int setSize(Graph &theGraph)
Sets the size of the system from the number of vertices in the graph.
Definition: SymBandEigenSOE.cpp:88
The Graph class provides the abstraction of a graph, a collection of vertices and edges...
Definition: Graph.h:84
Communication parameters between processes.
Definition: CommParameters.h:65
Eigenvalue SOE solver.
Definition: EigenSolver.h:59
================================================================================
Definition: ContinuaReprComponent.h:34
virtual int addM(const Matrix &, const ID &, double fact=1.0)
Assemblies into A the matrix being passed as parameter multimplied by the fact paremeter.
Definition: SymBandEigenSOE.cpp:178
Base class for symmetric band matrix eigenvalue SOE solvers.
Definition: SymBandEigenSolver.h:72