xc
Integrator.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/Integrator.h,v $
51 
52 
53 #ifndef Integrator_h
54 #define Integrator_h
55 
56 // File: ~/analysis/integrator/Integrator.h
57 //
58 // Written: fmk
59 // Created: 11/96
60 // Revision: A
61 //
62 // Description: This file contains the class interface for Integrator.
63 // Integrator is an abstract base class, i.e. no objects of it's
64 // type can be created.
65 //
66 // What: "@(#) Integrator.h, revA"
67 
68 #include <utility/actor/actor/MovableObject.h>
69 #include "utility/kernel/CommandEntity.h"
70 
71 namespace XC {
72 class FE_Element;
73 class DOF_Group;
74 class SystemOfEqn;
75 class AnalysisModel;
76 class Vector;
77 class ID;
78 class FEM_ObjectBroker;
79 class RayleighDampingFactors;
80 class SolutionStrategy ;
81 
85 //
87 //
101  {
102  protected:
104  const SolutionStrategy *getSolutionStrategy(void) const;
105  void applyLoadModel(double newTime);
106  int updateModel(void);
107  int updateModel(double newTime, double dT);
108  int commitModel(void);
109  void setRayleighDampingFactors(const RayleighDampingFactors &rF);
110  int sendData(Communicator &);
111  int recvData(const Communicator &);
112 
113  virtual AnalysisModel *getAnalysisModelPtr(void);
114  virtual const AnalysisModel *getAnalysisModelPtr(void) const;
115 
116  Integrator(SolutionStrategy *,int classTag);
117  friend class SolutionStrategy ;
118  virtual Integrator *getCopy(void) const= 0;
119  public:
120  inline virtual ~Integrator(void) {}
121  virtual int domainChanged(void);
122 
123  double getCurrentModelTime(void) const;
124  void setCurrentModelTime(const double &t);
125 
129  virtual int formEleTangent(FE_Element *theEle) =0;
133  virtual int formNodTangent(DOF_Group *theDof) =0;
137  virtual int formEleResidual(FE_Element *theEle) =0;
141  virtual int formNodUnbalance(DOF_Group *theDof) =0;
142 
143  // Methods provided for Domain Decomposition
148  virtual int getLastResponse(Vector &result, const ID &id) =0;
149 
150  // Method provided for Output
151  virtual void Print(std::ostream &s, int flag =0) const;
152  };
153 } // end of XC namespace
154 
155 #endif
156 
157 
158 
159 
160 
161 
Float vector abstraction.
Definition: Vector.h:94
virtual int formNodTangent(DOF_Group *theDof)=0
Called upon to determine the DOF_Group theDofs matrix contribution to the SystemOfEqn object...
Communication parameters between processes.
Definition: Communicator.h:66
virtual int formEleTangent(FE_Element *theEle)=0
Called upon to determine the FE_Element theEles matrix contribution to the SystemOfEqn object...
Object that can move between processes.
Definition: MovableObject.h:100
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: Integrator.cpp:146
Vector of integers.
Definition: ID.h:95
Integrator(SolutionStrategy *, int classTag)
Constructor.
Definition: Integrator.cpp:70
Container for FE_Element and DOF_Group objects created by the constraint handler. ...
Definition: AnalysisModel.h:134
Objet that can execute python scripts.
Definition: CommandEntity.h:40
SolutionStrategy * getSolutionStrategy(void)
Returns a pointer to the solution method that owns this object.
Definition: Integrator.cpp:95
Base class for the objects that performs the integration of physical properties over the domain to fo...
Definition: Integrator.h:100
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: Integrator.cpp:152
A DOF_Group object is instantiated by the ConstraintHandler for every unconstrained node in the domai...
Definition: DOF_Group.h:107
virtual void Print(std::ostream &s, int flag=0) const
The Integrator is to send information to the stream based on the integer flag.
Definition: Integrator.cpp:135
virtual int formNodUnbalance(DOF_Group *theDof)=0
Called upon to determine the DOF_Group theDofs vector contribution to the SystemOfEqn object...
Rayleigh damping factors.
Definition: RayleighDampingFactors.h:59
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
Finite element as seen by analysis.
Definition: FE_Element.h:108
virtual AnalysisModel * getAnalysisModelPtr(void)
Returns a pointer to the analysis model.
Definition: Integrator.cpp:118
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
virtual int formEleResidual(FE_Element *theEle)=0
Called upon to determine the FE_Element theEles vector contribution to the SystemOfEqn object...
virtual int getLastResponse(Vector &result, const ID &id)=0
Called upon to get the result quantities for the components specified in the ID id and to place them ...
virtual int domainChanged(void)
Make required changes when a change in the domain occurs.
Definition: Integrator.cpp:130