xc
Elastic2DGNL.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 /* ****************************************************************** **
29 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** See file 'COPYRIGHT' in main directory for information on usage **
37 ** and redistribution of OpenSees, and for a DISCLAIMER OF ALL **
38 ** WARRANTIES. **
39 ** **
40 ** Elastic2dGNL.h: interface for the Elastic2dGNL class **
41 ** Developed by: **
42 ** Rohit Kaul (rkaul@stanford.edu) **
43 ** Greg Deierlein (ggd@stanford.edu) **
44 ** **
45 ** John A. Blume Earthquake Engineering Center **
46 ** Stanford University **
47 ** ****************************************************************** **/
48 
49 // Written: rkaul
50 // Created: 7/30
51 //
52 
53 #ifndef Elastic2dGNL_H
54 #define Elastic2dGNL_H
55 
56 // List of included files
57 // UpdatedLagrangianBeam2D - parent class of this class
58 #include "UpdatedLagrangianBeam2D.h"
59 
60 namespace XC {
62 //
64 // used to model 2d beam column elements with large deformation effects.
66  {
67  private:
68  // Data declarations
69  double A, E, Iz;
70  public:
71  // Arguments passed to the constructor include - tag, a unique id in
72  // the domain, A - cross section area of the beam, E - modulus of
73  // Elasticity, I - Izz, Nd1 and Nd2 are the nodal numbers of connected
74  // nodes. Last two parameters are optional, by default geometric
75  // nonlinearity is turned on and rho, mass density is set to zero.
76  // This element assumes lumped mass for mass matrix.
77  Elastic2dGNL(int tag, double A, double E, double I, int Nd1, int Nd2, bool islinear = false, double rho = 0.0);
78  Element *getCopy(void) const;
79 
80  // Prints the element info to std::ostream
81  void Print(std::ostream &s, int flag =0) const;
82 
83  // Methods for sending and receiving the object over a ch
84  int sendSelf(Communicator &);
85  int recvSelf(const Communicator &);
86 
87 
88  protected:
89  // Implementation of pure virtual subclass methods
90 
91  // Get the elastic stiffness in local coordinates,
92  // stored into K
93  void getLocalStiff(Matrix &K) const;
94  // Get the mass matrix in local coordinate system,
95  // stored in M
96  void getLocalMass(Matrix &M) const;
97  };
98 } // end of XC namespace
99 
100 #endif // !defined Elastic2dGNL
101 
102 /*
103  *
104  * WARNING/ERROR format/representation
105  * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106  * Warnings are generally issued if the standard implementation of a
107  * method may not be possible. Further analysis may lead to incorrect
108  * solution, even though it may be possible to continue.
109  *
110  * Warnings
111  * --------
112  *
113  * WARNING (W_Level_ID) - Class::method(..) [ElementTag]
114  * Short description ...
115  *
116  * Errors
117  * ------
118  *
119  * ERROR (E_ID) - Class::method(..) [ElementTag]
120  * Short description ...
121  *
122  * Analysis may be halted if an error is encountered, further
123  * analysis will definitely be erroneous.
124  *
125  * (see UpdatedLagrangianBeam2D.h for details)
126  */
127 
128 
Communication parameters between processes.
Definition: Communicator.h:66
Elastic2dGNL(int tag, double A, double E, double I, int Nd1, int Nd2, bool islinear=false, double rho=0.0)
Constructor.
Definition: Elastic2DGNL.cpp:63
Element * getCopy(void) const
Virtual constructor.
Definition: Elastic2DGNL.cpp:74
Base class for the finite elements.
Definition: Element.h:112
Updated Lagrangian 2D beam element.
Definition: UpdatedLagrangianBeam2D.h:83
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: Elastic2DGNL.cpp:120
int recvSelf(const Communicator &)
Receive the object.
Definition: Elastic2DGNL.cpp:137
int sendSelf(Communicator &)
Send the object.
Definition: Elastic2DGNL.cpp:129
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
Elastic2dGNL is a subclass of UpdatedLagrangianBeam2D, that can be.
Definition: Elastic2DGNL.h:65