xc
CorotTrussBase.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 //CorotTrussBase.h
29 
30 #ifndef CorotTrussBase_h
31 #define CorotTrussBase_h
32 
33 #include "ProtoTruss.h"
34 #include <utility/matrix/Matrix.h>
35 #include <utility/matrix/Vector.h>
36 
37 namespace XC {
39 //
42  {
43  protected:
44  double Lo;
45  mutable double Ln;
46  mutable double d21[3];
47 
49 
50  int sendData(Communicator &comm);
51  int recvData(const Communicator &comm);
52  public:
53  CorotTrussBase(int tag, int classTag, int dim,int Nd1, int Nd2);
54  CorotTrussBase(int tag, int classTag,int dimension);
57  const double &getLo(void) const;
58  const double &getLn(void) const;
59  double getLength(bool initialGeometry= true) const;
60  };
61 } // end of XC namespace
62 
63 #endif
64 
65 
66 
67 
Matrix R
Rotation matrix.
Definition: CorotTrussBase.h:48
CorotTrussBase & operator=(const CorotTrussBase &)
Assignment operator.
Definition: CorotTrussBase.cc:51
int recvData(const Communicator &comm)
Receives members through the communicator argument.
Definition: CorotTrussBase.cc:90
Communication parameters between processes.
Definition: Communicator.h:66
Base class for corotational truss elements.
Definition: CorotTrussBase.h:41
double d21[3]
current displacement offsets in basic system
Definition: CorotTrussBase.h:46
int sendData(Communicator &comm)
Send members through the communicator argument.
Definition: CorotTrussBase.cc:81
double getLength(bool initialGeometry=true) const
Return the length of the element.
Definition: CorotTrussBase.cc:72
double Lo
initial length of truss
Definition: CorotTrussBase.h:44
const double & getLo(void) const
Return the initial length of the element.
Definition: CorotTrussBase.cc:61
Base class for truss elements.
Definition: ProtoTruss.h:45
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
const double & getLn(void) const
Return the current length of the element.
Definition: CorotTrussBase.cc:65
double Ln
current length of truss
Definition: CorotTrussBase.h:45