xc
EigenIntegrator.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 /* ****************************************************************** **
29 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** ****************************************************************** */
47 
48 // $Revision: 1.2 $
49 // $Date: 2003/02/14 23:00:48 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/integrator/EigenIntegrator.h,v $
51 
52 
53 // File: ~/analysis/integrator/eigenIntegrator/EigenIntegrator.h
54 //
55 // Written: Jun Peng
56 // Created: Wed Jan 27, 1999
57 // Revision: A
58 //
59 // Description: This file contains the class definition of EigenIntegrator.
60 // EigenIntegrator is an algorithmic class for setting up the finite element
61 // equations for a eigen problem analysis.
62 //
63 // This class is inherited from the base class of Integrator which was
64 // created by fmk (Frank).
65 
66 
67 #ifndef EigenIntegrator_h
68 #define EigenIntegrator_h
69 
70 #include <solution/analysis/integrator/Integrator.h>
71 
72 namespace XC {
73 class EigenSOE;
74 class AnalysisModel;
75 class FE_Element;
76 class DOF_Group;
77 class Vector;
78 
82 //
84 //
87  {
88  protected:
89  int flagK;
90 
91  EigenSOE *getEigenSOEPtr(void);
92  const EigenSOE *getEigenSOEPtr(void) const;
93 
94  friend class SolutionStrategy ;
96  Integrator *getCopy(void) const;
97  public:
98 
99  // methods to form the M and K matrices.
100  virtual int formK(void);
101  virtual int formM(void);
102 
103  // methods to instruct the FE_Element and DOF_Group objects
104  // how to determining their contribution to M and K
105  virtual int formEleTangK(FE_Element *theEle);
106  virtual int formEleTangM(FE_Element *theEle);
107  virtual int formNodTangM(DOF_Group *theDof);
108  virtual int update(const Vector &deltaU);
109 
110  virtual int formEleTangent(FE_Element *theEle);
111  virtual int formNodTangent(DOF_Group *theDof);
112  virtual int formEleResidual(FE_Element *theEle);
113  virtual int formNodUnbalance(DOF_Group *theDof);
114 
115  virtual int newStep(void);
116 
117  virtual int getLastResponse(Vector &result, const ID &id);
118 
119  virtual int sendSelf(Communicator &);
120  virtual int recvSelf(const Communicator &);
121  };
122 inline Integrator *EigenIntegrator::getCopy(void) const
123  { return new EigenIntegrator(*this); }
124 } // end of XC namespace
125 
126 #endif
127 
128 
129 
130 
virtual int formEleTangM(FE_Element *theEle)
Asks the element being passed as parameter to build its mass matrix.
Definition: EigenIntegrator.cpp:208
virtual int recvSelf(const Communicator &)
Receive the object.
Definition: EigenIntegrator.cpp:244
Float vector abstraction.
Definition: Vector.h:94
Base class for eigenproblem systems of equations.
Definition: EigenSOE.h:64
Communication parameters between processes.
Definition: Communicator.h:66
virtual int sendSelf(Communicator &)
Send the object.
Definition: EigenIntegrator.cpp:241
Vector of integers.
Definition: ID.h:95
virtual int formEleTangK(FE_Element *theEle)
Asks the element being passed as parameter to build its tangent stiffness matrix. ...
Definition: EigenIntegrator.cpp:199
Base class for the objects that performs the integration of physical properties over the domain to fo...
Definition: Integrator.h:100
virtual int formNodTangent(DOF_Group *theDof)
Called upon to determine the DOF_Group theDofs matrix contribution to the SystemOfEqn object...
Definition: EigenIntegrator.cpp:87
A DOF_Group object is instantiated by the ConstraintHandler for every unconstrained node in the domai...
Definition: DOF_Group.h:107
virtual int formM(void)
Mass matrix assembly.
Definition: EigenIntegrator.cpp:145
Base class for eigenproblem integrators.
Definition: EigenIntegrator.h:86
virtual int formEleResidual(FE_Element *theEle)
Called upon to determine the FE_Element theEles vector contribution to the SystemOfEqn object...
Definition: EigenIntegrator.cpp:90
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
virtual int formK(void)
Stiffness matrix assembly.
Definition: EigenIntegrator.cpp:103
Finite element as seen by analysis.
Definition: FE_Element.h:108
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
virtual int formNodUnbalance(DOF_Group *theDof)
Called upon to determine the DOF_Group theDofs vector contribution to the SystemOfEqn object...
Definition: EigenIntegrator.cpp:93
EigenIntegrator(SolutionStrategy *)
Constructor.
Definition: EigenIntegrator.cpp:74
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
EigenSOE * getEigenSOEPtr(void)
Returns a pointer to the system of equations de eigenvalues.
Definition: EigenIntegrator.cpp:226
virtual int getLastResponse(Vector &result, const ID &id)
Called upon to get the result quantities for the components specified in the ID id and to place them ...
Definition: EigenIntegrator.cpp:99