xc
NLBeamColumn3d.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 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** ****************************************************************** */
47 
48 // $Revision: 1.15 $
49 // $Date: 2003/02/27 17:15:16 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/element/nonlinearBeamColumn/element/NLBeamColumn3d.h,v $
51 
52 
53 // File: ~/model/element/NLBeamColumn3d.h
54 //
55 // Written: Remo Magalhaes de Souza on 03/99
56 // Revised: rms 06/99 (mass matrix)
57 // rms 07/99 (using setDomain)
58 // rms 08/99 (included P-Delta effect)
59 // fmk 10/99 setResponse() & getResponse()
60 // rms 04/00 (using CrdTransf class)
61 // mhs 06/00 (using new section class)
62 // mhs 06/00 (using new section class w/ variable dimensions)
63 // rms 06/00 (torsional stiffness considered at the section level)
64 // rms 06/00 (making copy of the sections)
65 // rms 06/00 (storing section history variables at the element level)
66 //
67 #ifndef NLBeamColumn3d_h
68 #define NLBeamColumn3d_h
69 
70 #include <domain/mesh/element/truss_beam_column/NLForceBeamColumn3dBase.h>
71 #include <utility/matrix/Matrix.h>
72 #include <utility/matrix/Vector.h>
73 
74 namespace XC {
75 class Response;
76 class GaussLobattoQuadRule1d01;
77 
79 //
82  {
83  private:
84  static GaussLobattoQuadRule1d01 quadRule;
85 
86  void getGlobalDispls(Vector &dg) const;
87  void getGlobalAccels(Vector &ag) const;
88  void getForceInterpolatMatrix(double xi, Matrix &b, const ID &code);
89  void getDistrLoadInterpolatMatrix(double xi, Matrix &bp, const ID &code);
90  void compSectionDisplacements(std::vector<Vector> &,std::vector<Vector> &) const;
91 
92  protected:
93  int sendData(Communicator &comm);
94  int recvData(const Communicator &comm);
95  public:
96  NLBeamColumn3d(int tag= 0);
97  NLBeamColumn3d(int tag,int numSec,const Material *theSection,const CrdTransf *coordTransf);
98  NLBeamColumn3d(int tag, int nodeI, int nodeJ,
99  int numSections,const std::vector<PrismaticBarCrossSection *> &,
100  CrdTransf3d &coordTransf, double massDensPerUnitLength = 0.0,
101  int maxNumIters = 10, double tolerance = 1e-12);
102  Element *getCopy(void) const;
103 
104  void setDomain(Domain *theDomain);
105 
106  int commitState(void);
107  int revertToLastCommit(void);
108  int revertToStart(void);
109  int update(void);
110 
111  const Matrix &getInitialStiff(void) const;
112  const Matrix &getMass(void) const;
113 
114  void zeroLoad(void);
115  int addLoad(ElementalLoad *, double loadFactor);
116  int addInertiaLoadToUnbalance(const Vector &accel);
117 
118  const Vector &getResistingForceIncInertia(void) const;
119 
120  int sendSelf(Communicator &);
121  int recvSelf(const Communicator &);
122 
123  friend std::ostream &operator<<(std::ostream &, const NLBeamColumn3d &);
124  void Print(std::ostream &s, int flag =0) const;
125 
126  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
127  int getResponse(int responseID, Information &eleInformation);
128 
129  int setParameter(const std::vector<std::string> &argv, Parameter &param);
130  int updateParameter(int parameterID, Information &info);
131  };
132 
133 std::ostream &operator<<(std::ostream &, const NLBeamColumn3d &);
134 } // end of XC namespace
135 
136 #endif
137 
Float vector abstraction.
Definition: Vector.h:94
int commitState(void)
Commit the current element state.
Definition: NLBeamColumn3d.cpp:156
const Vector & getResistingForceIncInertia(void) const
Returns the resisting force vector including inertia forces.
Definition: NLBeamColumn3d.cpp:919
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: NLBeamColumn3d.cpp:1329
Base class response objects.
Definition: Response.h:81
Base class for 3D force beam column elements with PrismaticBarCrossSection type material.
Definition: NLForceBeamColumn3dBase.h:45
CrdTransf provides the abstraction of a frame coordinate transformation.
Definition: CrdTransf.h:88
3D materially nonlinear flexibility based frame element.
Definition: NLBeamColumn3d.h:81
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: NLBeamColumn3d.cpp:851
Element * getCopy(void) const
Virtual constructor.
Definition: NLBeamColumn3d.cpp:125
int revertToLastCommit(void)
Revert the state of element to its last commit.
Definition: NLBeamColumn3d.cpp:188
Base class for materials.
Definition: Material.h:93
Vector of integers.
Definition: ID.h:95
int sendSelf(Communicator &)
Send the object.
Definition: NLBeamColumn3d.cpp:972
int recvSelf(const Communicator &)
Receive the object.
Definition: NLBeamColumn3d.cpp:985
int recvData(const Communicator &comm)
Receives members through the communicator argument.
Definition: NLBeamColumn3d.cpp:966
Base class for the finite elements.
Definition: Element.h:112
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: NLBeamColumn3d.cpp:129
int getResponse(int responseID, Information &eleInformation)
Obtain information from an analysis.
Definition: NLBeamColumn3d.cpp:1221
int setParameter(const std::vector< std::string > &argv, Parameter &param)
Sets the value param to the parameter argv.
Definition: NLBeamColumn3d.cpp:1279
int revertToStart(void)
Revert the state of element to initial.
Definition: NLBeamColumn3d.cpp:229
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
Response * setResponse(const std::vector< std::string > &argv, Information &eleInformation)
setResponse() is a method invoked to determine if the element will respond to a request for a certain...
Definition: NLBeamColumn3d.cpp:1187
Parameter.
Definition: Parameter.h:68
Base class for loads over elements.
Definition: ElementalLoad.h:79
int update(void)
Updates the element state.
Definition: NLBeamColumn3d.cpp:431
One-dimensional Gauss-Lobatto quadrature.
Definition: GaussLobattoQuadRule1d01.h:70
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
void zeroLoad(void)
Zeroes loads on element.
Definition: NLBeamColumn3d.cpp:860
int sendData(Communicator &comm)
Send members through the communicator argument.
Definition: NLBeamColumn3d.cpp:959
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: NLBeamColumn3d.cpp:1089
Base class for 3D coordinate transformation.
Definition: CrdTransf3d.h:81