XC Open source finite element analysis program
InternalParamsA.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 //InternalParamsA.h
28 
29 #ifndef INTERNALPARAMSA_H
30 #define INTERNALPARAMSA_H
31 
32 #include "utility/actor/actor/MovableObject.h"
33 
34 namespace XC {
36 //
39  {
40  protected:
41  double v;
42  double R;
43  double Tang;
44 
45  int sendData(CommParameters &);
46  int recvData(const CommParameters &);
47  public:
48  InternalParamsA(const double &V= 0.0,const double &r= 0.0,const double &t= 0.0);
49  inline const double &y(void) const //Para PySimple1
50  { return v; }
51  inline double &y(void) //Para PySimple1
52  { return v; }
53  inline double &z(void) //Para QzSimple1
54  { return v; }
55  inline const double &z(void) const //Para QzSimple1
56  { return v; }
57  inline const double &P(void) const //Para PySimple1
58  { return R; }
59  inline double &P(void) //Para PySimple1
60  { return R; }
61  inline const double &Q(void) const //Para QzSimple1
62  { return R; }
63  inline double &Q(void) //Para QzSimple1
64  { return R; }
65  inline const double &T(void) const //Para TzSimple1
66  { return R; }
67  inline double &T(void) //Para TzSimple1
68  { return R; }
69  inline const double &tang(void) const
70  { return Tang; }
71  inline double &tang(void)
72  { return Tang; }
73 
74  void getField(const double &V);
75  const double &updateField(const double &Tp);
76  inline const double unbalance(const double &Tp) const
77  { return (Tp - R); }
78  inline const double residual(const double &Tp) const
79  { return unbalance(Tp)/Tang; }
80 
81  void revertToStart(const double &tg);
82 
83  int sendSelf(CommParameters &);
84  int recvSelf(const CommParameters &);
85  };
86 } // end of XC namespace
87 
88 
89 #endif
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: InternalParamsA.cc:57
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: InternalParamsA.cc:71
double v
Desplazamiento.
Definition: InternalParamsA.h:41
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: InternalParamsA.cc:85
Object that can move between processes.
Definition: MovableObject.h:91
Internal parameters for a p-y material.
Definition: InternalParamsA.h:38
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: InternalParamsA.cc:64
double Tang
Combined tangent.
Definition: InternalParamsA.h:43
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
double R
Fuerza.
Definition: InternalParamsA.h:42
InternalParamsA(const double &V=0.0, const double &r=0.0, const double &t=0.0)
Constructor with data.
Definition: InternalParamsA.cc:33