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