XC Open source finite element analysis program
beam2d02.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.4 $
48 // $Date: 2003/02/14 23:01:05 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/beam2d/beam2d02.h,v $
50 
51 
52 // File: ~/model/element/beam2d02.h
53 //
54 // Written: fmk 11/95
55 // Revised:
56 //
57 // Purpose: This file contains the class definition for beam2d02.
58 // beam2d02 is a linear elastic plane frame member.
59 
60 #ifndef beam2d02_h
61 #define beam2d02_h
62 
63 #include "beam2d.h"
64 #include <utility/matrix/Matrix.h>
65 #include <utility/matrix/Vector.h>
66 
67 namespace XC {
68 class CrdTransf2d;
69 
71 //
73 class beam2d02: public beam2d
74  {
75  private:
76  // private attributes - a copy for each object of the class
77  double M;
78 
79  Matrix Kd; // the stiffness matrix
80  mutable Matrix m;
81  Matrix d; // the damping matrix
82 
83  mutable Vector q;
84  mutable Vector rForce;
85  Matrix trans; // for the transformation matrix
86 // int isStiffFormed;
87  CrdTransf2d *theCoordTransf;
88 
89  const Matrix &getStiff(void) const;
90 
91  protected:
92  int sendData(CommParameters &);
93  int recvData(const CommParameters &);
94 
95  public:
96  beam2d02(int tag= 0);
97  beam2d02(int tag, double A, double E, double I, int Nd1, int Nd2,CrdTransf2d &theTrans, double rho = 0.0);
98  Element *getCopy(void) const;
99  ~beam2d02(void);
100 
101  virtual CrdTransf *getCoordTransf(void);
102  virtual const CrdTransf *getCoordTransf(void) const;
103 
104  void setDomain(Domain *theDomain);
105 
106  int commitState(void);
107  int revertToLastCommit(void);
108  int revertToStart(void);
109 
110  const Matrix &getTangentStiff(void) const;
111  const Matrix &getInitialStiff(void) const;
112  const Matrix &getMass(void) const;
113 
114  int addLoad(ElementalLoad *theLoad, double loadFactor);
115  int addInertiaLoadToUnbalance(const Vector &accel);
116 
117  const Vector &getResistingForce(void) const;
118  const Vector &getResistingForceIncInertia(void) const;
119 
120  int sendSelf(CommParameters &);
121  int recvSelf(const CommParameters &);
122 
123  void Print(std::ostream &s, int flag =0);
124 
125 
126  };
127 } // end of XC namespace
128 
129 #endif
130 
CrdTransf provides the abstraction of a frame coordinate transformation. It is an abstract base class...
Definition: CrdTransf.h:87
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Definition: Vector.h:82
2D beam 02 element.
Definition: beam2d02.h:73
int commitState(void)
Consuma el estado of the element.
Definition: beam2d02.cpp:156
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: beam2d02.cpp:312
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: beam2d02.cpp:291
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: beam2d02.cpp:256
Base calass for the finite elements.
Definition: Element.h:104
Base class for loads over elements.
Definition: ElementalLoad.h:73
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: beam2d02.cpp:103
virtual CrdTransf * getCoordTransf(void)
Returns (if possible) a pointer to the coordinate transformation.
Definition: beam2d02.cpp:96
Definition: Matrix.h:82
2D beam element.
Definition: beam2d.h:40
Element * getCopy(void) const
Virtual constructor.
Definition: beam2d02.cpp:88
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: beam2d02.cpp:196
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: beam2d02.cpp:299
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: beam2d02.cpp:324
Communication parameters between processes.
Definition: CommParameters.h:65
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: beam2d02.cpp:283
Base class for 2D coordinate transformation.
Definition: CrdTransf2d.h:77
================================================================================
Definition: ContinuaReprComponent.h:34
~beam2d02(void)
Destructor.
Definition: beam2d02.cpp:92