XC Open source finite element analysis program
Integrator.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/Integrator.h,v $
50 
51 
52 #ifndef Integrator_h
53 #define Integrator_h
54 
55 // File: ~/analysis/integrator/Integrator.h
56 //
57 // Written: fmk
58 // Created: 11/96
59 // Revision: A
60 //
61 // Description: This file contains the class interface for Integrator.
62 // Integrator is an abstract base class, i.e. no objects of it's
63 // type can be created.
64 //
65 // What: "@(#) Integrator.h, revA"
66 
67 #include <utility/actor/actor/MovableObject.h>
68 #include "xc_utils/src/nucleo/EntCmd.h"
69 
70 namespace XC {
71 class FE_Element;
72 class DOF_Group;
73 class SystemOfEqn;
74 class AnalysisModel;
75 class Vector;
76 class ID;
77 class FEM_ObjectBroker;
78 class RayleighDampingFactors;
79 class SoluMethod;
80 
82 //
85 //
87 //
91 class Integrator: public MovableObject, public EntCmd
92  {
93  protected:
95  const SoluMethod *getSoluMethod(void) const;
96  void applyLoadModel(double newTime);
97  int updateModel(void);
98  int updateModel(double newTime, double dT);
99  int commitModel(void);
100  double getCurrentModelTime(void);
101  void setCurrentModelTime(const double &t);
102  void setRayleighDampingFactors(const RayleighDampingFactors &rF);
103  int sendData(CommParameters &);
104  int recvData(const CommParameters &);
105 
106  virtual AnalysisModel *getAnalysisModelPtr(void);
107  virtual const AnalysisModel *getAnalysisModelPtr(void) const;
108 
109  Integrator(SoluMethod *,int classTag);
110  friend class SoluMethod;
111  virtual Integrator *getCopy(void) const= 0;
112  public:
113  inline virtual ~Integrator(void) {}
114  virtual int domainChanged(void);
115 
116  virtual int formEleTangent(FE_Element *theEle) =0;
117  virtual int formNodTangent(DOF_Group *theDof) =0;
118  virtual int formEleResidual(FE_Element *theEle) =0;
119  virtual int formNodUnbalance(DOF_Group *theDof) =0;
120 
121  // Methods provided for Domain Decomposition
122  virtual int getLastResponse(Vector &result, const ID &id) =0;
123 
124  // Method provided for Output
125  virtual void Print(std::ostream &s, int flag =0);
126  };
127 } // end of XC namespace
128 
129 #endif
130 
131 
132 
133 
134 
135 
A DOF_Group object is instantiated by the ConstraintHandler for every unconstrained node in the domai...
Definition: DOF_Group.h:94
Definition: Vector.h:82
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
SoluMethod * getSoluMethod(void)
Returns a pointer to the solution method that owns this object.
Definition: Integrator.cpp:93
Finite element as seen by analysis.
Definition: FE_Element.h:84
Integrator(SoluMethod *, int classTag)
Constructor.
Definition: Integrator.cpp:68
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: Integrator.cpp:130
Object that can move between processes.
Definition: MovableObject.h:91
Definition: ID.h:77
virtual int domainChanged(void)
Hace los cambios oportunos cuando se ha producido un cambio en el domain.
Definition: Integrator.cpp:118
virtual AnalysisModel * getAnalysisModelPtr(void)
Returns a pointer to the analysis model.
Definition: Integrator.cpp:110
Rayleigh damping factors.
Definition: RayleighDampingFactors.h:45
Los objetos de esta clase, dan acceso a los objetos FE_Element y DOF_Group creados por el Constraint ...
Definition: AnalysisModel.h:113
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for the object that performs the integration of physical properties over the domain to for...
Definition: Integrator.h:91
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: Integrator.cpp:136