xc
ElasticSection2d.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.6 $
48 // $Date: 2003/02/14 23:01:33 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/fiber_section/ElasticSection2d.h,v $
50 
51 
53 // File: ~/Src/element/hinge/ElasticSection2d.h
54 //
55 // Written by Matthew Peavy
56 //
57 // Written: Feb 13, 2000
58 // Debugged: Feb 14, 2000
59 // Revised: May 2000 -- MHS
60 //
61 //
62 // Purpose: This header file contains the prototype
63 // for the ElasticSection2d class.
64 
65 #ifndef ElasticSection2d_h
66 #define ElasticSection2d_h
67 
68 #include <material/section/elastic_section/BaseElasticSection2d.h>
69 
70 namespace XC {
71 class Channel;
72 class FEM_ObjectBroker;
73 class Information;
74 
76 //
84  {
85  private:
86  static Vector s;
87  public:
88  ElasticSection2d(int tag, double E, double A, double I);
89  ElasticSection2d(int tag, double EA, double EI);
90  ElasticSection2d(int tag,MaterialHandler *mat_ldr= nullptr);
91  ElasticSection2d(void);
92 
93  const Vector &getStressResultant(void) const;
94  const Matrix &getSectionTangent(void) const;
95  const Matrix &getInitialTangent(void) const;
96  const Matrix &getSectionFlexibility(void) const;
97  const Matrix &getInitialFlexibility(void) const;
98 
99  SectionForceDeformation *getCopy(void) const;
100  const ResponseId &getType(void) const;
101  int getOrder(void) const;
102 
103  int sendSelf(CommParameters &);
104  int recvSelf(const CommParameters &);
105 
106 
107  void Print(std::ostream &s, int flag =0) const;
108  };
109 } // end of XC namespace
110 
111 #endif
Base class for force deformation section models.
Definition: SectionForceDeformation.h:86
ElasticSection2d(void)
Default constructor.
Definition: ElasticSection2d.cpp:84
const double & EA(void) const
Returns the section axial stiffness.
Definition: PrismaticBarCrossSection.cc:137
Float vector abstraction.
Definition: Vector.h:93
Base class for cross sections with linear elastic material on a bi-dimensional problem (3 DOFs on eac...
Definition: BaseElasticSection2d.h:42
const Matrix & getSectionTangent(void) const
Returns the tangent stiffness matrix.
Definition: ElasticSection2d.cpp:143
int getOrder(void) const
Return 3.
Definition: ElasticSection2d.cpp:194
const Vector & getStressResultant(void) const
Returns the cross-section stress resultant.
Definition: ElasticSection2d.cpp:122
const Matrix & getSectionFlexibility(void) const
Returns the flexibility matrix.
Definition: ElasticSection2d.cpp:164
const Matrix & getInitialTangent(void) const
Returns the initial tangent stiffness matrix.
Definition: ElasticSection2d.cpp:148
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: ElasticSection2d.cpp:234
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: ElasticSection2d.cpp:213
Stiffness material contribution response identifiers.
Definition: ResponseId.h:60
Material handler (definition, searching,...).
Definition: MaterialHandler.h:45
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
Matrix of floats.
Definition: Matrix.h:108
const ResponseId & getType(void) const
Section stiffness contribution response identifiers.
Definition: ElasticSection2d.cpp:190
const Matrix & getInitialFlexibility(void) const
Returns the initial flexibility matrix.
Definition: ElasticSection2d.cpp:168
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: ElasticSection2d.cpp:198
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: ElasticSection2d.cpp:172
Cross section with linear elastic material for bi-dimensional problesm (3 degrees of freedom in each ...
Definition: ElasticSection2d.h:83