XC Open source finite element analysis program
BaseControl.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 //BaseControl.h
28 
29 #ifndef BaseControl_h
30 #define BaseControl_h
31 
32 #include <solution/analysis/integrator/StaticIntegrator.h>
33 
34 namespace XC {
35 
37 //
40  {
41  protected:
42  double specNumIncrStep;
43  double numIncrLastStep;
44 
45  int sendData(CommParameters &);
46  int recvData(const CommParameters &);
47 
48  void setup_numIncr(const int &);
49 
50  BaseControl(SoluMethod *,int classTag,int numIncr= 1);
51  public:
52 
53  inline double factor(void) const
54  { return specNumIncrStep/numIncrLastStep; }
55  };
56 } // end of XC namespace
57 
58 #endif
59 
Base class for static integrators.
Definition: StaticIntegrator.h:83
Base class for load and displacement control static integrators .
Definition: BaseControl.h:39
BaseControl(SoluMethod *, int classTag, int numIncr=1)
Constructor.
Definition: BaseControl.cc:71
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: BaseControl.cc:100
double specNumIncrStep
Jd factor relating load increment at subsequent time steps. (optional, default: 1.0)
Definition: BaseControl.h:42
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: BaseControl.cc:92
double numIncrLastStep
J(i-1).
Definition: BaseControl.h:43
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34