XC Open source finite element analysis program
beam2d04.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 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.5 $
48 // $Date: 2003/02/14 23:01:05 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/beam2d/beam2d04.h,v $
50 
51 
52 // File: ~/element/beam2d04.h
53 //
54 // Written: fmk 11/95
55 // Revised:
56 //
57 // Purpose: This file contains the class definition for beam2d04.
58 // beam2d04 is a plane frame member.
59 
60 #ifndef beam2d04_h
61 #define beam2d04_h
62 
63 #include "beam2d.h"
64 #include <utility/matrix/Matrix.h>
65 #include <utility/matrix/Vector.h>
66 
67 namespace XC {
68 class Channel;
69 
71 //
73 class beam2d04 : public beam2d
74  {
75  private:
76  mutable double oneEA;
77  mutable double twoEI;
78  mutable double fourEI;
79  mutable double twelveEI;
80  mutable double sixEI;
81 
82  mutable Vector rForce;
83  mutable int isStiffFormed;
84 
85  static Matrix k;
86  static Matrix trans;
87 
88  const Matrix &getStiff(void) const;
89  void formVar(void) const;
90  protected:
91  int sendData(CommParameters &);
92  int recvData(const CommParameters &);
93  public:
94  beam2d04(int tag= 0);
95  beam2d04(int tag, double A, double E, double I, int Nd1, int Nd2);
96  Element *getCopy(void) const;
97 
98  int revertToLastCommit(void);
99 
100  const Matrix &getTangentStiff(void) const;
101  const Matrix &getInitialStiff(void) const;
102 
103  int addLoad(ElementalLoad *theLoad, double loadFactor);
104  int addInertiaLoadToUnbalance(const Vector &accel);
105 
106  const Vector &getResistingForce(void) const;
107  const Vector &getResistingForceIncInertia(void) const;
108 
109  int sendSelf(CommParameters &);
110  int recvSelf(const CommParameters &);
111 
112  void Print(std::ostream &s, int flag =0);
113  };
114 } // end of XC namespace
115 
116 #endif
117 
118 
Definition: Vector.h:82
Element * getCopy(void) const
Virtual constructor.
Definition: beam2d04.cpp:97
2D beam element 04.
Definition: beam2d04.h:73
Base calass for the finite elements.
Definition: Element.h:104
Base class for loads over elements.
Definition: ElementalLoad.h:73
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: beam2d04.cpp:268
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: beam2d04.cpp:359
Definition: Matrix.h:82
2D beam element.
Definition: beam2d.h:40
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: beam2d04.cpp:322
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: beam2d04.cpp:315