xc
InternalParamsLR.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 //InternalParamsLR.h
28 
29 #ifndef INTERNALPARAMSLR_H
30 #define INTERNALPARAMSLR_H
31 
32 #include "InternalParamsA.h"
33 
34 namespace XC {
36 //
40  {
41  protected:
42  double vLeft;
43  double vRight;
44  int sendData(CommParameters &);
45  int recvData(const CommParameters &);
46  public:
47  InternalParamsLR(const double &V= 0.0,const double &r= 0.0,const double &t= 0.0,const double &yl= 0.0,const double &yr= 0.0);
48  inline const double &yleft(void) const // for PySimple1
49  { return vLeft; }
50  inline double &yleft(void) // for PySimple1
51  { return vLeft; }
52  inline const double &yright(void) const // for PySimple1
53  { return vRight; }
54  inline double &yright(void) // for PySimple1
55  { return vRight; }
56  int sendSelf(CommParameters &);
57  int recvSelf(const CommParameters &);
58  };
59 } // end of XC namespace
60 
61 
62 #endif
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: InternalParamsLR.cc:52
InternalParamsLR(const double &V=0.0, const double &r=0.0, const double &t=0.0, const double &yl=0.0, const double &yr=0.0)
Constructor with data.
Definition: InternalParamsLR.cc:32
Internal parameters for a p-y material.
Definition: InternalParamsLR.h:39
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: InternalParamsLR.cc:66
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: InternalParamsLR.cc:44
double vRight
right reference point
Definition: InternalParamsLR.h:43
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: InternalParamsLR.cc:36
Communication parameters between processes.
Definition: CommParameters.h:65
Internal parameters for the Gap (Drag + Closure).
Definition: InternalParamsA.h:38
double vLeft
left reference point
Definition: InternalParamsLR.h:42