xc
ProtoArcLength.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 //ProtoArcLength.h
29 
30 #ifndef ProtoArcLength_h
31 #define ProtoArcLength_h
32 
33 #include "solution/analysis/integrator/StaticIntegrator.h"
34 #include "solution/analysis/integrator/static/IntegratorVectors.h"
35 #include "utility/matrix/Vector.h"
36 
37 namespace XC {
38 class LinearSOE;
39 class AnalysisModel;
40 class FE_Element;
41 
43 //
46  {
47  protected:
48  double arcLength2;
49  IntegratorVectors vectors;
50  int signLastDeltaLambdaStep;
51 
52  virtual double getDLambdaNewStep(void) const= 0;
53  virtual double getDLambdaUpdate(void) const= 0;
54  int sendData(Communicator &);
55  int recvData(const Communicator &);
56 
57  ProtoArcLength(SolutionStrategy *,int classTag,double ArcLength);
58  public:
59 
60  int newStep(void);
61  int update(const Vector &deltaU);
62  int domainChanged(void);
63 
64  int sendSelf(Communicator &);
65  int recvSelf(const Communicator &);
66  };
67 } // end of XC namespace
68 
69 #endif
70 
{staticFormTaylor} {equation}
Definition: StaticIntegrator.h:138
Float vector abstraction.
Definition: Vector.h:94
int domainChanged(void)
Response to a change in the domain.
Definition: ProtoArcLength.cc:144
ProtoArcLength(SolutionStrategy *, int classTag, double ArcLength)
Constructor.
Definition: ProtoArcLength.cc:41
Communication parameters between processes.
Definition: Communicator.h:66
Vectors used by many integrators.
Definition: IntegratorVectors.h:41
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: ProtoArcLength.cc:163
int newStep(void)
Performs the first iteration, that is it solves for and and updates the model with and increments ...
Definition: ProtoArcLength.cc:50
int sendSelf(Communicator &)
Send the object.
Definition: ProtoArcLength.cc:182
double arcLength2
Squared value of the arc length.
Definition: ProtoArcLength.h:48
int update(const Vector &deltaU)
Updates the model.
Definition: ProtoArcLength.cc:103
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int recvSelf(const Communicator &)
Receive the object.
Definition: ProtoArcLength.cc:197
Base class for arc length integrators.
Definition: ProtoArcLength.h:45
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: ProtoArcLength.cc:173