xc
GenericSection1d.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.5 $
49 // $Date: 2003/02/14 23:01:34 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/GenericSection1d.h,v $
51 
52 
53 #ifndef GenericSection1d_h
54 #define GenericSection1d_h
55 
56 // File: ~/material/GenericSection1d.h
57 //
58 // Written: MHS
59 // Created: Apr 2000
60 // Revision: A
61 //
62 // Description: This file contains the class definition for GenericSection1d.
63 //
64 // What: "@(#) GenericSection1d.h, revA"
65 
66 #include <material/section/PrismaticBarCrossSection.h>
67 #include <utility/matrix/Matrix.h>
68 
69 namespace XC {
70 class Information;
71 class UniaxialMaterial;
72 
74 //
82  {
83  protected:
85  int code;
86 
87  static Vector s;
88  static Matrix ks;
89  static ResponseId c;
90 
91  void alloc(const UniaxialMaterial &);
92  void free(void);
93  int sendData(Communicator &);
94  int recvData(const Communicator &);
95  public:
96  GenericSection1d(int tag, UniaxialMaterial& m, int code);
97  GenericSection1d(int tag= 0);
99  GenericSection1d &operator=(const GenericSection1d &);
100  ~GenericSection1d(void);
101 
103  int setTrialSectionDeformation(const Vector &);
105  const Vector &getInitialSectionDeformation(void) const;
106  const Vector &getSectionDeformation(void) const;
107 
108  const Vector &getStressResultant(void) const;
109  const Matrix &getSectionTangent(void) const;
110  const Matrix &getInitialTangent(void) const;
111  const Matrix &getSectionFlexibility(void) const;
112  const Matrix &getInitialFlexibility(void) const;
113 
114  int commitState(void);
115  int revertToLastCommit(void);
116  int revertToStart(void);
117 
118  SectionForceDeformation *getCopy(void) const;
119  const ResponseId &getResponseType(void) const;
120  int getOrder(void) const;
121 
122  int sendSelf(Communicator &);
123  int recvSelf(const Communicator &);
124 
125  void Print(std::ostream &s, int flag = 0) const;
126  };
127 } // end of XC namespace
128 
129 
130 #endif
Base class for force deformation section models.
Definition: SectionForceDeformation.h:88
int setInitialSectionDeformation(const Vector &)
Sets the cross-section initial strain (generalized: axial and bending).
Definition: GenericSection1d.cpp:136
Float vector abstraction.
Definition: Vector.h:94
Communication parameters between processes.
Definition: Communicator.h:66
int recvSelf(const Communicator &)
Receives object members through the communicator argument.
Definition: GenericSection1d.cpp:285
void Print(std::ostream &s, int flag=0) const
Prints to the stream s the object&#39;s tag, then invokes Print() on the UniaxialMaterial.
Definition: GenericSection1d.cpp:307
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
UniaxialMaterial * theModel
Material model.
Definition: GenericSection1d.h:84
Base class for beam-column cross sections.
Definition: PrismaticBarCrossSection.h:50
int getOrder(void) const
Return order.
Definition: GenericSection1d.cpp:244
const Matrix & getSectionFlexibility(void) const
Return the flexibility matrix.
Definition: GenericSection1d.cpp:200
int sendSelf(Communicator &)
Sends object members through the communicator argument.
Definition: GenericSection1d.cpp:270
void zeroInitialSectionDeformation(void)
Zeroes initial strain.
Definition: GenericSection1d.cpp:148
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: GenericSection1d.cpp:261
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: GenericSection1d.cpp:248
const Matrix & getInitialFlexibility(void) const
Returns the initial value of the flexibility matrix.
Definition: GenericSection1d.cpp:211
const Vector & getInitialSectionDeformation(void) const
Returns the cross-section initial strain (generalized: axial and bending).
Definition: GenericSection1d.cpp:153
void alloc(const UniaxialMaterial &)
Allocates material.
Definition: GenericSection1d.cpp:77
const Matrix & getInitialTangent(void) const
Returns the initial value of the tangent stiffness matrix.
Definition: GenericSection1d.cpp:189
Stiffness material contribution response identifiers.
Definition: ResponseId.h:61
const ResponseId & getResponseType(void) const
Returns the response type.
Definition: GenericSection1d.cpp:237
void free(void)
Frees memory.
Definition: GenericSection1d.cpp:90
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: GenericSection1d.cpp:252
~GenericSection1d(void)
Destructor.
Definition: GenericSection1d.cpp:131
GenericSection1d(int tag, UniaxialMaterial &m, int code)
Constructor.
Definition: GenericSection1d.cpp:102
const Vector & getStressResultant(void) const
Return the integration of stresses over the section.
Definition: GenericSection1d.cpp:172
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
const Vector & getSectionDeformation(void) const
Returns material&#39;s trial generalized deformation.
Definition: GenericSection1d.cpp:161
int revertToStart(void)
Invokes revertToStart() on the UniaxialMaterial and returns the result of that invocation.
Definition: GenericSection1d.cpp:230
int setTrialSectionDeformation(const Vector &)
Sets the cross-section trial strain (generalized: axial and bending).
Definition: GenericSection1d.cpp:144
Matrix of floats.
Definition: Matrix.h:111
int revertToLastCommit(void)
Invokes revertToLastCommit() on the UniaxialMaterial and returns the result of that invocation...
Definition: GenericSection1d.cpp:225
Wrapper for an uniaxial material to behave like a section material.
Definition: GenericSection1d.h:81
const Matrix & getSectionTangent(void) const
Return the tangent stiffness matrix.
Definition: GenericSection1d.cpp:182
int commitState(void)
Invokes commitState() on the UniaxialMaterial and returns the result of that invocation.
Definition: GenericSection1d.cpp:220