xc
HSConstraint.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 //# COPYRIGHT (C): Woody's license (by BJ):
30 // ``This source code is Copyrighted in
31 // U.S., for an indefinite period, and anybody
32 // caught using it without our permission, will be
33 // mighty good friends of ourn, cause we don't give
34 // a darn. Hack it. Compile it. Debug it. Run it.
35 // Yodel it. Enjoy it. We wrote it, that's all we
36 // wanted to do.''
37 //
38 //# PROJECT: Object Oriented Finite Element Program
39 //# PURPOSE: Hyper-spherical Constraint
40 //# CLASS: HSConstraint
41 //#
42 //# VERSION: 0.61803398874989 (golden section)
43 //# LANGUAGE: C++
44 //# TARGET OS: all...
45 //# DESIGN: Ritu Jain, Boris Jeremic
46 //# PROGRAMMER(S): Ritu, Boris Jeremic
47 //#
48 //#
49 //# DATE: 14Mar2003
50 //# UPDATE HISTORY:
51 //#
52 //#
53 //===============================================================================
54 #ifndef HSConstraint_h
55 #define HSConstraint_h
56 
57 #include "solution/analysis/integrator/static/arc-length/ProtoArcLength.h"
58 #include "utility/matrix/Matrix.h"
59 
60 namespace XC {
61 
63 //
66  {
67  private:
68  double psi_u2;
69  double psi_f2;
70  double u_ref2;
71  Matrix scalingMatrix;
72  protected:
73  double getDLambdaNewStep(void) const;
74  double getDLambdaUpdate(void) const;
75  int sendData(Communicator &);
76  int recvData(const Communicator &);
77 
78  friend class SolutionStrategy ;
79  HSConstraint(SolutionStrategy *,double arcLength, double psi_u=1.0, double psi_f=1.0, double u_ref=1.0);
80  Integrator *getCopy(void) const;
81  public:
82  int sendSelf(Communicator &);
83  int recvSelf(const Communicator &);
84 
85  void Print(std::ostream &s, int flag =0) const;
86  };
87 
88 } // end of XC namespace
89 
90 #endif
91 
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: HSConstraint.cpp:166
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: HSConstraint.cpp:157
Communication parameters between processes.
Definition: Communicator.h:66
Integrator * getCopy(void) const
Virtual constructor.
Definition: HSConstraint.cpp:68
int recvSelf(const Communicator &)
Receives object data through the communicator argument.
Definition: HSConstraint.cpp:189
int sendSelf(Communicator &)
Sends object data through the communicator argument.
Definition: HSConstraint.cpp:175
double getDLambdaUpdate(void) const
Returns the value of dLambda para el método update.
Definition: HSConstraint.cpp:89
Hyper-spherical constraint arc-length integrator.
Definition: HSConstraint.h:65
Base class for the objects that performs the integration of physical properties over the domain to fo...
Definition: Integrator.h:100
void Print(std::ostream &s, int flag=0) const
The Integrator is to send information to the stream based on the integer flag.
Definition: HSConstraint.cpp:207
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
double getDLambdaNewStep(void) const
Returns the value of dLambda for the newStep method.
Definition: HSConstraint.cpp:72
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
HSConstraint(SolutionStrategy *, double arcLength, double psi_u=1.0, double psi_f=1.0, double u_ref=1.0)
Constructor.
Definition: HSConstraint.cpp:63
Base class for arc length integrators.
Definition: ProtoArcLength.h:45