xc
FiberSectionShear2d.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 //FiberSectionShear2d.h
29 
30 #ifndef FiberSectionShear2d_h
31 #define FiberSectionShear2d_h
32 
33 #include "FiberSection2d.h"
34 
35 namespace XC {
37 //
42  {
43  private:
44  UniaxialMaterial *respVy;
45 
46  static Vector def;
47  static Vector defzero;
48  static Vector s;
49  static Matrix ks;
50  static Matrix fs;
51 
52  void setRespVy(const UniaxialMaterial *);
53  void freeRespVy(void);
54  void free_mem(void);
55  protected:
56  int sendData(Communicator &);
57  int recvData(const Communicator &);
58 
59  public:
60  FiberSectionShear2d(int tag= 0,MaterialHandler *mat_ldr= nullptr);
64 
65  void clear(void);
66 
67  void setRespVyByName(const std::string &);
69 
70  int setInitialSectionDeformation(const Vector &deforms);
71  int setTrialSectionDeformation(const Vector &deforms);
73  const Vector &getInitialSectionDeformation(void) const;
74  const Vector &getSectionDeformation(void) const;
75  const Vector &getStressResultant(void) const;
76  const Matrix &getSectionTangent(void) const;
77  const Matrix &getInitialTangent(void) const;
78  const Matrix &getSectionFlexibility(void) const;
79  const Matrix &getInitialFlexibility(void) const;
80  virtual const double &GAy(void) const;
81 
82  int commitState(void);
83  int revertToLastCommit(void);
84  int revertToStart(void);
85 
86  SectionForceDeformation *getCopy(void) const;
87  const ResponseId &getResponseType(void) const;
88  int getOrder(void) const;
89 
90  int sendSelf(Communicator &);
91  int recvSelf(const Communicator &);
92 
93  void Print(std::ostream &s, int flag =0) const;
94 
95  int setVariable(const std::string &argv);
96  int getVariable(int variableID, double &info);
97 
98  };
99 } // end of XC namespace
100 
101 #endif
Fiber section model in a bi-dimensional space.
Definition: FiberSection2d.h:77
Base class for force deformation section models.
Definition: SectionForceDeformation.h:88
virtual const double & GAy(void) const
Returns the shear stiffness along y axis.
Definition: FiberSectionShear2d.cc:232
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: FiberSectionShear2d.cc:273
const ResponseId & getResponseType(void) const
Section stiffness contribution response identifiers.
Definition: FiberSectionShear2d.cc:243
int revertToStart(void)
Returns the section to its initial state.
Definition: FiberSectionShear2d.cc:265
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: FiberSectionShear2d.cc:307
Float vector abstraction.
Definition: Vector.h:94
const Vector & getStressResultant(void) const
Returns stress resultant.
Definition: FiberSectionShear2d.cc:222
int getOrder(void) const
Return the number of response quantities provided by the section.
Definition: FiberSectionShear2d.cc:246
void zeroInitialSectionDeformation(void)
Zeroes initial strain of the section.
Definition: FiberSectionShear2d.cc:149
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: FiberSectionShear2d.cc:239
Communication parameters between processes.
Definition: Communicator.h:66
FiberSectionShear2d decorates an MP section (couple bending and axial) with an uncoupled shear relati...
Definition: FiberSectionShear2d.h:41
void clear(void)
Clear the material responses.
Definition: FiberSectionShear2d.cc:122
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
FiberSectionShear2d & operator=(const FiberSectionShear2d &)
Assignment operator.
Definition: FiberSectionShear2d.cc:84
~FiberSectionShear2d(void)
destructor:
Definition: FiberSectionShear2d.cc:118
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: FiberSectionShear2d.cc:282
int setTrialSectionDeformation(const Vector &deforms)
Asigna la trial strain.
Definition: FiberSectionShear2d.cc:139
const Matrix & getSectionFlexibility(void) const
Returns the flexibility matrix.
Definition: FiberSectionShear2d.cc:200
const Vector & getSectionDeformation(void) const
Returns material&#39;s trial generalized deformation.
Definition: FiberSectionShear2d.cc:166
int getVariable(int variableID, double &info)
Returns the value of the variable which name is being passed as parameter.
Definition: FiberSectionShear2d.cc:353
int revertToLastCommit(void)
Returns the material to the last committed state.
Definition: FiberSectionShear2d.cc:258
int setInitialSectionDeformation(const Vector &deforms)
Asigna la initial strain.
Definition: FiberSectionShear2d.cc:129
Stiffness material contribution response identifiers.
Definition: ResponseId.h:61
const Matrix & getInitialTangent(void) const
Returns the initial tangent stiffness matrix.
Definition: FiberSectionShear2d.cc:188
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: FiberSectionShear2d.cc:328
FiberSectionShear2d(int tag=0, MaterialHandler *mat_ldr=nullptr)
Constructor.
Definition: FiberSectionShear2d.cc:74
Material handler (definition, searching,...).
Definition: MaterialHandler.h:46
int setVariable(const std::string &argv)
Returns the identifier of the variable which name is being passed as parameter.
Definition: FiberSectionShear2d.cc:340
void setRespVyByName(const std::string &)
Sets the material defining the shear response along the y axis.
Definition: FiberSectionShear2d.cc:94
UniaxialMaterial * getRespVy(void)
Returns shear y response.
Definition: FiberSectionShear2d.cc:114
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
const Vector & getInitialSectionDeformation(void) const
Returns the initial strain of the section.
Definition: FiberSectionShear2d.cc:156
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: FiberSectionShear2d.cc:291
const Matrix & getInitialFlexibility(void) const
Returns the initial flexibility matrix.
Definition: FiberSectionShear2d.cc:211
const Matrix & getSectionTangent(void) const
Returns the tangent stiffness matrix.
Definition: FiberSectionShear2d.cc:176
int commitState(void)
Commit material state (normally after convergence is achieved).
Definition: FiberSectionShear2d.cc:250