xc
InternalParamsIn.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 //InternalParamsIn.h
29 
30 #ifndef INTERNALPARAMSIN_H
31 #define INTERNALPARAMSIN_H
32 
33 #include "InternalParamsA.h"
34 
35 namespace XC {
37 //
40  {
41  protected:
42  double Rin;
43  double vin;
44  int sendData(Communicator &);
45  int recvData(const Communicator &);
46  public:
47  InternalParamsIn(const double &V= 0.0,const double &r= 0.0,const double &t= 0.0,const double &Vin= 0.0,const double &rin= 0.0);
48  inline const double &yin(void) const //Para PySimple1
49  { return vin; }
50  inline double &yin(void) //Para PySimple1
51  { return vin; }
52  inline double &zin(void) //Para QzSimple1
53  { return vin; }
54  inline const double &zin(void) const //Para QzSimple1
55  { return vin; }
56  inline const double &Pin(void) const //Para PySimple1
57  { return Rin; }
58  inline double &Pin(void) //Para PySimple1
59  { return Rin; }
60  inline const double &Qin(void) const //Para QzSimple1
61  { return Rin; }
62  inline double &Qin(void) //Para QzSimple1
63  { return Rin; }
64  inline const double &Tin(void) const //Para TzSimple1
65  { return Rin; }
66  inline double &Tin(void) //Para TzSimple1
67  { return Rin; }
68  void revertToStart(const double &tg);
69  int sendSelf(Communicator &);
70  int recvSelf(const Communicator &);
71  };
72 } // end of XC namespace
73 
74 
75 #endif
Communication parameters between processes.
Definition: Communicator.h:66
Internal parameters for a p-y material.
Definition: InternalParamsIn.h:39
double Rin
R at start of current plastic loading cycle.
Definition: InternalParamsIn.h:42
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: InternalParamsIn.cc:43
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: InternalParamsIn.cc:73
InternalParamsIn(const double &V=0.0, const double &r=0.0, const double &t=0.0, const double &Vin=0.0, const double &rin=0.0)
Constructor with data.
Definition: InternalParamsIn.cc:32
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
double vin
v (y or z) at start of current plastic loading cycle
Definition: InternalParamsIn.h:43
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: InternalParamsIn.cc:51
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: InternalParamsIn.cc:59
Internal parameters for the Gap (Drag + Closure).
Definition: InternalParamsA.h:39