xc
DisplacementControl.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:47 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/integrator/DisplacementControl.h,v $
50 
51 
52 // File: ~/analysis/integrator/DisplacementControl.h
53 //
54 // Written: fmk
55 // Created: 07/98
56 // Revision: A
57 //
58 
59 #ifndef DisplacementControl_h
60 #define DisplacementControl_h
61 
62 #include <solution/analysis/integrator/static/DispBase.h>
63 
64 namespace XC {
65 
66 class Domain;
67 
69 //
96  {
97  protected:
98  int theNodeTag;
99  int theDof;
100  int theDofID;
101 
102  double theIncrement;
103  double minIncrement, maxIncrement;
104 
105  const Domain *getDomainPtr(void) const;
106  Domain *getDomainPtr(void);
107 
108  friend class AnalysisAggregation;
110  DisplacementControl(AnalysisAggregation *,int nodeTag, int dof, double increment,int numIncrStep, double minIncrement, double maxIncrement);
111  Integrator *getCopy(void) const;
112 
113  public:
114  ~DisplacementControl(void);
115 
116  int newStep(void);
117  int commit(void);
118  int update(const Vector &deltaU);
119  int domainChanged(void);
120 
121  inline void setNodeTag(const int &tag)
122  { theNodeTag= tag; }
123  inline int getNodeTag(void) const
124  { return theNodeTag; }
125  inline void setDof(const int &dof)
126  { theDof= dof; }
127  inline int getDof(void) const
128  { return theDof; }
129  void setIncrement(const double &);
130  inline double getIncrement(void) const
131  { return theIncrement; }
132  int sendSelf(CommParameters &);
133  int recvSelf(const CommParameters &);
134 
135  void Print(std::ostream &s, int flag =0);
136 
137  };
138 } // end of XC namespace
139 
140 #endif
141 
Float vector abstraction.
Definition: Vector.h:93
DisplacementControl(AnalysisAggregation *)
Constructor.
Definition: DisplacementControl.cpp:82
int theDofID
the system level id of the dof being followed
Definition: DisplacementControl.h:100
int domainChanged(void)
Make required changes when a change in the domain occurs.
Definition: DisplacementControl.cpp:265
Solution procedure for the finite element problem.
Definition: AnalysisAggregation.h:89
const Domain * getDomainPtr(void) const
Returns a pointer to the domain.
Definition: DisplacementControl.cpp:139
int update(const Vector &deltaU)
When invoked causes the integrator object to update the DOF_Group responses with the appropriate valu...
Definition: DisplacementControl.cpp:208
DisplacementControl is an algorithmic class for performing a static analysis using the displacement c...
Definition: DisplacementControl.h:95
int sendSelf(CommParameters &)
Send the object.
Definition: DisplacementControl.cpp:300
double theIncrement
deltaU at step (i)
Definition: DisplacementControl.h:102
??
Definition: DispBase.h:40
double maxIncrement
min/max values of deltaU at (i)
Definition: DisplacementControl.h:103
int newStep(void)
Performs a new analysis step.
Definition: DisplacementControl.cpp:147
Base class for the objects that performs the integration of physical properties over the domain to fo...
Definition: Integrator.h:99
void Print(std::ostream &s, int flag=0)
Print stuff.
Definition: DisplacementControl.cpp:314
Integrator * getCopy(void) const
Virtual constructor.
Definition: DisplacementControl.cpp:102
int recvSelf(const CommParameters &)
Receive the object.
Definition: DisplacementControl.cpp:307
~DisplacementControl(void)
Destructor.
Definition: DisplacementControl.cpp:106
int theDof
the dof at the node being followed
Definition: DisplacementControl.h:99
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
int theNodeTag
the node that is being followed
Definition: DisplacementControl.h:98
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:116
int commit(void)
Commits model state.
Definition: DisplacementControl.cpp:122