XC Open source finite element analysis program
CorotTrussBase.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 //CorotTrussBase.h
28 
29 #ifndef CorotTrussBase_h
30 #define CorotTrussBase_h
31 
32 #include "ProtoTruss.h"
33 #include <utility/matrix/Matrix.h>
34 #include <utility/matrix/Vector.h>
35 
36 namespace XC {
38 //
41  {
42  protected:
43  double Lo;
44  double Ln;
45  double d21[3];
46 
48 
49  int sendData(CommParameters &cp);
50  int recvData(const CommParameters &cp);
51  public:
52  CorotTrussBase(int tag, int classTag, int dim,int Nd1, int Nd2);
53  CorotTrussBase(int tag, int classTag,int dimension);
56  const double &getLo(void) const;
57  const double &getLn(void) const;
58  };
59 } // end of XC namespace
60 
61 #endif
62 
63 
64 
65 
double d21[3]
current displacement offsets in basic system
Definition: CorotTrussBase.h:45
CorotTrussBase & operator=(const CorotTrussBase &)
Operador de asignación.
Definition: CorotTrussBase.cc:50
double Ln
current length of truss
Definition: CorotTrussBase.h:44
const double & getLn(void) const
Return the longitud actual of the element.
Definition: CorotTrussBase.cc:65
Base class for truss elements.
Definition: ProtoTruss.h:44
Matrix R
Rotation matrix.
Definition: CorotTrussBase.h:47
Definition: Matrix.h:82
int sendData(CommParameters &cp)
Send members through the channel being passed as parameter.
Definition: CorotTrussBase.cc:69
double Lo
initial length of truss
Definition: CorotTrussBase.h:43
Base class for corotational truss elements.
Definition: CorotTrussBase.h:40
const double & getLo(void) const
Return the longitud inicial of the element.
Definition: CorotTrussBase.cc:61
Communication parameters between processes.
Definition: CommParameters.h:65
int recvData(const CommParameters &cp)
Receives members through the channel being passed as parameter.
Definition: CorotTrussBase.cc:78
================================================================================
Definition: ContinuaReprComponent.h:34