xc
MembranePlateFiberSection.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.6 $
49 // $Date: 2003/02/14 23:01:34 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/MembranePlateFiberSection.h,v $
51 
52 // Ed "C++" Love
53 //
54 // Generic Plate Section with membrane
55 //
56 
57 #ifndef MEMBRANEPLATEFIBERSECTION_H
58 #define MEMBRANEPLATEFIBERSECTION_H
59 
60 #include <utility/matrix/Vector.h>
61 #include <utility/matrix/Matrix.h>
62 #include "MembranePlateFiberSectionBase.h"
63 
64 
65 namespace XC {
66 
67 class NDMaterial;
68 
72  {
73  private:
74  static constexpr int numFibers= 5;
75  static constexpr int order= 8;
76 
77  //quadrature data
78  static const std::string lobattoLabel;
79  static const double sgLobatto[numFibers]; //Lobatto integration
80  static const double wgLobatto[numFibers];
81  static const std::string gaussLabel;
82  static const double sgGauss[numFibers]; //Gauss integration.
83  static const double wgGauss[numFibers];
84 
85  static const double root56; //shear correction
86  static Vector stressResultant;
87  static Matrix tangent;
88 
89 
90  int integrationType; // 0= Lobatto, 1= Gauss
91 
92  protected:
93  int sendData(Communicator &);
94  int recvData(const Communicator &);
95  public:
96  MembranePlateFiberSection(int tag= 0);
97  MembranePlateFiberSection(int tag, double thickness, NDMaterial &Afiber, const std::string &integrType= "Lobatto");
98 
99  inline void setMaterial(const NDMaterial &ndmat)
101  void setIntegrationType(const std::string &);
102  const std::string &getIntegrationType(void) const;
103 
104  std::vector<double> getFiberZs(void) const;
105  std::vector<double> getFiberWeights(void) const;
106  std::vector<std::pair<double, double> > getFiberZsAndWeights(void) const;
107 
108  SectionForceDeformation *getCopy(void) const;
109  double getRho(void) const;
110  void setRho(const double &);
111  double getArealRho(void) const;
112  void setArealRho(const double &);
113 
114  int setInitialSectionDeformation(const Vector &strain_from_element);
116  int setTrialSectionDeformation(const Vector &strain_from_element);
117  const Vector &getStressResultant(void) const; //send back the stress
118  const Matrix &getSectionTangent(void) const; //send back the tangent
119  const Matrix &getInitialTangent(void) const //send back the initial tangent
120  {return this->getSectionTangent();}
121 
122  //print out data
123  void Print( std::ostream &s, int flag ) const;
124 
125  int sendSelf(Communicator &);
126  int recvSelf(const Communicator &);
127 
128  Response *setResponse(const std::vector<std::string> &, Information &);
129 
130  // parameters
131  int setParameter(const std::vector<std::string> &, Parameter &);
132  }; //end of MembranePlateFiberSection declarations
133 
134 } // end of XC namespace
135 
136 #endif
Base class for force deformation section models.
Definition: SectionForceDeformation.h:88
const Vector & getStressResultant(void) const
Return stress resultant.
Definition: MembranePlateFiberSection.cpp:268
Float vector abstraction.
Definition: Vector.h:94
std::vector< double > getFiberWeights(void) const
Return the weight coordinate for each fiber (layer if you prefer).
Definition: MembranePlateFiberSection.cpp:137
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
Base class response objects.
Definition: Response.h:81
const Matrix & getSectionTangent(void) const
Return the tangent stiffness matrix.
Definition: MembranePlateFiberSection.cpp:299
Base class for fiber models for plate/membrane materials.
Definition: MembranePlateFiberSectionBase.h:42
Response * setResponse(const std::vector< std::string > &, Information &)
Returns the respuesta of the section.
Definition: MembranePlateFiberSection.cpp:512
Fiber model for plate/membrane materials.
Definition: MembranePlateFiberSection.h:71
MembranePlateFiberSection(int tag=0)
Default constructor.
Definition: MembranePlateFiberSection.cpp:110
double getRho(void) const
Return mass per unit area.
Definition: MembranePlateFiberSection.cpp:193
SectionForceDeformation * getCopy(void) const
make a clone of this material
Definition: MembranePlateFiberSection.cpp:122
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: MembranePlateFiberSection.cpp:468
int setTrialSectionDeformation(const Vector &strain_from_element)
Set trial deformation.
Definition: MembranePlateFiberSection.cpp:247
int sendSelf(Communicator &)
Send object itself through the communicator argument.
Definition: MembranePlateFiberSection.cpp:476
int setParameter(const std::vector< std::string > &, Parameter &)
Sets the value param to the parameter argv.
Definition: MembranePlateFiberSection.cpp:517
int setInitialSectionDeformation(const Vector &strain_from_element)
Set initial values for deformation.
Definition: MembranePlateFiberSection.cpp:219
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
void setArealRho(const double &)
Return mass per unit area.
Definition: MembranePlateFiberSection.cpp:215
void setMaterial(const NDMaterial &)
Assign the same material to all the fibers.
Definition: MembranePlateFiberSectionBase.cc:172
void Print(std::ostream &s, int flag) const
Print out data.
Definition: MembranePlateFiberSection.cpp:454
std::vector< double > getFiberZs(void) const
Return the z coordinate for each fiber (layer if you prefer).
Definition: MembranePlateFiberSection.cpp:126
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int recvSelf(const Communicator &)
Receive object itself through the communicator argument.
Definition: MembranePlateFiberSection.cpp:492
Matrix of floats.
Definition: Matrix.h:111
std::vector< std::pair< double, double > > getFiberZsAndWeights(void) const
Return the weight coordinate for each fiber (layer if you prefer).
Definition: MembranePlateFiberSection.cpp:147
Parameter.
Definition: Parameter.h:68
void zeroInitialSectionDeformation(void)
Zero initial deformation.
Definition: MembranePlateFiberSection.cpp:240
void setRho(const double &)
Asigns density per unit area.
Definition: MembranePlateFiberSection.cpp:203
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: MembranePlateFiberSection.cpp:460
double getArealRho(void) const
Return mass per unit area.
Definition: MembranePlateFiberSection.cpp:211