XC Open source finite element analysis program
Beam3dUniformLoad.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.2 $
48 // $Date: 2003/02/14 23:00:57 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/domain/load/beam_loads/Beam3dUniformLoad.h,v $
50 
51 #ifndef Beam3dUniformLoad_h
52 #define Beam3dUniformLoad_h
53 
54 // Written: fmk
55 
56 // Purpose: This file contains the class definition for Beam3dUniformLoad.
57 
58 #include "domain/load/beam_loads/BeamUniformLoad.h"
59 
60 namespace XC {
61 class FVector;
62 
64 //
67  {
68  private:
69  double wz; // Transverse
70  double tx; // Torsor.
71  static Vector data;
72  protected:
73  DbTagData &getDbTagData(void) const;
74  int sendData(CommParameters &cp);
75  int recvData(const CommParameters &cp);
76 
77  public:
78  Beam3dUniformLoad(int tag, double wy, double wz, double wx, double tx,const ID &theElementTags);
79  Beam3dUniformLoad(int tag, const Vector &Fxyz, double tx,const ID &theElementTags);
80  Beam3dUniformLoad(int tag);
81  Beam3dUniformLoad(void);
82 
83  int getType(void);
84  inline const double &Wx(void) const
85  { return Axial; }
86  inline const double &Wy(void) const
87  { return Trans; }
88  inline const double &Wz(void) const
89  { return wz; }
90  inline const double &Tx(void) const
91  { return tx; }
92  inline double getTransZComponent(void)
93  { return wz; }
94  inline void setTransZComponent(const double &d)
95  { wz= d; }
96  inline void setTorsor(const double &d)
97  { tx= d; }
98  inline double getTorsor(void)
99  { return tx; }
100 
101  size_t getDimVectorFuerza(void) const;
102  size_t getDimVectorMomento(void) const;
103  virtual Vector getLocalForce(void) const;
104  virtual Vector getLocalMoment(void) const;
105  const Matrix &getLocalForces(void) const;
106  const Matrix &getLocalMoments(void) const;
107 
108  const Matrix &getAppliedSectionForces(const double &L,const Matrix &xi,const double &loadFactor) const;
109  void addReactionsInBasicSystem(const double &,const double &,FVector &) const;
110  void addFixedEndForcesInBasicSystem(const double &L,const double &loadFactor,FVector &) const;
111  void addElasticDeformations(const double &L,const CrossSectionProperties3d &ctes_scc,const double &lpI,const double &lpJ,const double &loadFactor,FVector &v0);
112 
113  int sendSelf(CommParameters &);
114  int recvSelf(const CommParameters &);
115  void Print(std::ostream &s, int flag =0);
116 
117  };
118 } // end of XC namespace
119 
120 #endif
121 
Element internal forces.
Definition: FVector.h:44
const Matrix & getLocalMoments(void) const
Returns distributed moment vectors (one for each element) expressed in local coordinates.
Definition: Beam3dUniformLoad.cpp:306
int sendData(CommParameters &cp)
Send data through the channel being passed as parameter.
Definition: Beam3dUniformLoad.cpp:215
int recvData(const CommParameters &cp)
Receive data through the channel being passed as parameter.
Definition: Beam3dUniformLoad.cpp:223
virtual Vector getLocalForce(void) const
Returns force expressed in local coordinates.
Definition: Beam3dUniformLoad.cpp:271
DbTagData & getDbTagData(void) const
Returns a vector para almacenar los dbTags de los miembros de la clase.
Definition: Beam3dUniformLoad.cpp:208
Definition: Vector.h:82
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
void addReactionsInBasicSystem(const double &, const double &, FVector &) const
Adds the load al consistent load vector (ver página 108 libro Eugenio Oñate).
Definition: Beam3dUniformLoad.cpp:116
Uniform load over 3D beams.
Definition: Beam3dUniformLoad.h:66
void addElasticDeformations(const double &L, const CrossSectionProperties3d &ctes_scc, const double &lpI, const double &lpJ, const double &loadFactor, FVector &v0)
Adds elastic strains to the v0 vector.
Definition: Beam3dUniformLoad.cpp:161
double Trans
Transverse load.
Definition: BeamMecLoad.h:49
Mechanical properties of a section (area, moments of inertia,...) in a three-dimensional problem (six...
Definition: CrossSectionProperties3d.h:40
Uniform load over beam elements.
Definition: BeamUniformLoad.h:39
size_t getDimVectorMomento(void) const
Return the dimension del vector momento.
Definition: Beam3dUniformLoad.cpp:267
const Matrix & getAppliedSectionForces(const double &L, const Matrix &xi, const double &loadFactor) const
Applied section forces due to element uniform load.
Definition: Beam3dUniformLoad.cpp:85
size_t getDimVectorFuerza(void) const
Return the dimension del vector fuerza.
Definition: Beam3dUniformLoad.cpp:263
Definition: ID.h:77
double Axial
Axial load.
Definition: BeamMecLoad.h:50
const Matrix & getLocalForces(void) const
Returns distributed force vectors (one for each element) expressed in local coordinates.
Definition: Beam3dUniformLoad.cpp:291
void addFixedEndForcesInBasicSystem(const double &L, const double &loadFactor, FVector &) const
??
Definition: Beam3dUniformLoad.cpp:140
Definition: Matrix.h:82
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
virtual Vector getLocalMoment(void) const
Returns moment expressed in local coordinates.
Definition: Beam3dUniformLoad.cpp:281
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: Beam3dUniformLoad.cpp:253