XC Open source finite element analysis program
EigenIntegrator.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: 2003/02/14 23:00:48 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/integrator/EigenIntegrator.h,v $
50 
51 
52 // File: ~/analysis/integrator/eigenIntegrator/EigenIntegrator.h
53 //
54 // Written: Jun Peng
55 // Created: Wed Jan 27, 1999
56 // Revision: A
57 //
58 // Description: This file contains the class definition of EigenIntegrator.
59 // EigenIntegrator is an algorithmic class for setting up the finite element
60 // equations for a eigen problem analysis.
61 //
62 // This class is inheritanted from the base class of Integrator which was
63 // created by fmk (Frank).
64 
65 
66 #ifndef EigenIntegrator_h
67 #define EigenIntegrator_h
68 
69 #include <solution/analysis/integrator/Integrator.h>
70 
71 namespace XC {
72 class EigenSOE;
73 class AnalysisModel;
74 class FE_Element;
75 class DOF_Group;
76 class Vector;
77 
79 //
81 //
83 //
86  {
87  protected:
88  int flagK;
89 
90  EigenSOE *getEigenSOEPtr(void);
91  const EigenSOE *getEigenSOEPtr(void) const;
92 
93  friend class SoluMethod;
95  Integrator *getCopy(void) const;
96  public:
97 
98  // methods to form the M and K matrices.
99  virtual int formK(void);
100  virtual int formM(void);
101 
102  // methods to instruct the FE_Element and DOF_Group objects
103  // how to determing their contribution to M and K
104  virtual int formEleTangK(FE_Element *theEle);
105  virtual int formEleTangM(FE_Element *theEle);
106  virtual int formNodTangM(DOF_Group *theDof);
107  virtual int update(const Vector &deltaU);
108 
109  virtual int formEleTangent(FE_Element *theEle);
110  virtual int formNodTangent(DOF_Group *theDof);
111  virtual int formEleResidual(FE_Element *theEle);
112  virtual int formNodUnbalance(DOF_Group *theDof);
113 
114  virtual int newStep(void);
115 
116  virtual int getLastResponse(Vector &result, const ID &id);
117 
118  virtual int sendSelf(CommParameters &);
119  virtual int recvSelf(const CommParameters &);
120  };
121 inline Integrator *EigenIntegrator::getCopy(void) const
122  { return new EigenIntegrator(*this); }
123 } // end of XC namespace
124 
125 #endif
126 
127 
128 
129 
virtual int formEleTangent(FE_Element *theEle)
Asks the element being passed as parameter to build its mass(flagK= false) or stiffness matrix (flagK...
Definition: EigenIntegrator.cpp:79
A DOF_Group object is instantiated by the ConstraintHandler for every unconstrained node in the domai...
Definition: DOF_Group.h:94
virtual int formK(void)
Stiffness matrix assembly.
Definition: EigenIntegrator.cpp:103
Definition: Vector.h:82
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
virtual int formEleTangK(FE_Element *theEle)
Asks the element being passed as parameter to build its tangent stiffness matrix. ...
Definition: EigenIntegrator.cpp:196
Finite element as seen by analysis.
Definition: FE_Element.h:84
Base class for eigenproblem systems of equations.
Definition: EigenSOE.h:63
virtual int formM(void)
Mass matrix assembly.
Definition: EigenIntegrator.cpp:143
Base class for eigenproblem integrators.
Definition: EigenIntegrator.h:85
virtual int formEleTangM(FE_Element *theEle)
Asks the element being passed as parameter to build its mass matrix.
Definition: EigenIntegrator.cpp:205
Definition: ID.h:77
EigenSOE * getEigenSOEPtr(void)
Returns a pointer to the system of equations de eigenvalues.
Definition: EigenIntegrator.cpp:223
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
EigenIntegrator(SoluMethod *)
Constructor.
Definition: EigenIntegrator.cpp:74
Base class for the object that performs the integration of physical properties over the domain to for...
Definition: Integrator.h:91