xc
MembranePlateFiberSection.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:34 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/MembranePlateFiberSection.h,v $
50 
51 // Ed "C++" Love
52 //
53 // Generic Plate Section with membrane
54 //
55 
56 #ifndef MEMBRANEPLATEFIBERSECTION_H
57 #define MEMBRANEPLATEFIBERSECTION_H
58 
59 #include <utility/matrix/Vector.h>
60 #include <utility/matrix/Matrix.h>
61 #include "PlateBase.h"
62 
63 
64 namespace XC {
65 
66 class NDMaterial;
67 
69 //
72  {
73  private:
74  //quadrature data
75  static const double sg[5];
76  static const double wg[5];
77  NDMaterial *theFibers[5]; //pointers to five materials (fibers)
78  static const double root56; // =sqrt(5/6)
79  Vector strainResultant;
80  static Vector stressResultant;
81  static Matrix tangent;
82  protected:
83  int sendData(CommParameters &);
84  int recvData(const CommParameters &);
85  public :
88  MembranePlateFiberSection(int tag, double thickness, NDMaterial &Afiber);
89  virtual ~MembranePlateFiberSection(void);
90 
91  SectionForceDeformation *getCopy(void) const;
92  double getRho(void) const;
93  int getOrder(void) const;
94  const ResponseId &getType(void) const;
95 
96 
97  int commitState(void); //swap history variables
98  int revertToLastCommit(void); //revert to last saved state
99  int revertToStart(void); //revert to start
100 
101  int setInitialSectionDeformation(const Vector &strain_from_element);
103  int setTrialSectionDeformation(const Vector &strain_from_element);
104  const Vector &getInitialSectionDeformation(void) const;
105  const Vector& getSectionDeformation(void) const; //send back the strain
106  const Vector &getStressResultant(void) const; //send back the stress
107  const Matrix &getSectionTangent(void) const; //send back the tangent
108  const Matrix &getInitialTangent(void) const //send back the initial tangent
109  {return this->getSectionTangent();}
110 
111  //print out data
112  void Print( std::ostream &s, int flag );
113 
114  int sendSelf(CommParameters &);
115  int recvSelf(const CommParameters &);
116  }; //end of MembranePlateFiberSection declarations
117 
118 } // end of XC namespace
119 
120 #endif
Base class for force deformation section models.
Definition: SectionForceDeformation.h:86
const Vector & getStressResultant(void) const
Return stress resultant.
Definition: MembranePlateFiberSection.cpp:249
Float vector abstraction.
Definition: Vector.h:93
int revertToStart(void)
Revert to start.
Definition: MembranePlateFiberSection.cpp:174
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: MembranePlateFiberSection.cpp:459
const Matrix & getSectionTangent(void) const
Return the tangent stiffness matrix.
Definition: MembranePlateFiberSection.cpp:280
void Print(std::ostream &s, int flag)
Print out data.
Definition: MembranePlateFiberSection.cpp:436
Fiber model for plate/membrane materials.
Definition: MembranePlateFiberSection.h:71
virtual ~MembranePlateFiberSection(void)
destructor
Definition: MembranePlateFiberSection.cpp:126
const Vector & getSectionDeformation(void) const
Returns section deformation.
Definition: MembranePlateFiberSection.cpp:244
int revertToLastCommit(void)
Revert to last commited state.
Definition: MembranePlateFiberSection.cpp:164
double getRho(void) const
Return mass per unit area.
Definition: MembranePlateFiberSection.cpp:184
int recvSelf(const CommParameters &)
Receive object itself through the communicator argument.
Definition: MembranePlateFiberSection.cpp:489
const Vector & getInitialSectionDeformation(void) const
Return initial deformation.
Definition: MembranePlateFiberSection.cpp:212
SectionForceDeformation * getCopy(void) const
make a clone of this material
Definition: MembranePlateFiberSection.cpp:135
int setTrialSectionDeformation(const Vector &strain_from_element)
Set trial deformation.
Definition: MembranePlateFiberSection.cpp:220
int setInitialSectionDeformation(const Vector &strain_from_element)
Set initial values for deformation.
Definition: MembranePlateFiberSection.cpp:197
Stiffness material contribution response identifiers.
Definition: ResponseId.h:60
Base class for 2D and 3D materials.
Definition: NDMaterial.h:97
MembranePlateFiberSection(void)
null constructor
Definition: MembranePlateFiberSection.cpp:107
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Base class for bidimensional membrane/plate/shell materials.
Definition: PlateBase.h:46
Communication parameters between processes.
Definition: CommParameters.h:65
Matrix of floats.
Definition: Matrix.h:108
int commitState(void)
Swap history variables.
Definition: MembranePlateFiberSection.cpp:153
int getOrder(void) const
send back order of strainResultant in vector form
Definition: MembranePlateFiberSection.cpp:141
void zeroInitialSectionDeformation(void)
Zero initial deformation.
Definition: MembranePlateFiberSection.cpp:205
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: MembranePlateFiberSection.cpp:445
int sendSelf(CommParameters &)
Send object itself through the communicator argument.
Definition: MembranePlateFiberSection.cpp:473
const ResponseId & getType(void) const
Returns the labels of the DOFs for wich the element adds (assembles) stiffness.
Definition: MembranePlateFiberSection.cpp:147