xc
InelasticYS2DGNL.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 #ifndef INELASTICYS2DGNL_H
29 #define INELASTICYS2DGNL_H
30 
31 #include <domain/mesh/element/truss_beam_column/updatedLagrangianBeamColumn/UpdatedLagrangianBeam2D.h>
32 #include <material/yieldSurface/yieldSurfaceBC/YieldSurface_BC.h>
33 #include <utility/matrix/Vector.h>
34 
35 #define DISPLAY_YS 2745
36 
37 namespace XC {
38 
40 //
45 {
46  protected:
47  static Vector elasticForce;
48  static Vector F1, F2, Fs;
49 
50 
51  YieldSurface_BC *ys1, *ys2;
52 
53  mutable bool end1Plastify, end2Plastify;
54  bool end1Plastify_hist, end2Plastify_hist;
55 
56  Matrix end1G, end2G;
57  mutable Matrix Stiff;
58  mutable int forceRecoveryAlgo;
59  int forceRecoveryAlgo_orig;
60  bool end1Damage, end2Damage;
61  mutable bool split_step;
62 
63  int debug, fdebug, pdebug, ydebug, statusDebug;
64  mutable bool init;
65  bool updateKt;
66 
67 
68 
69  const static int INSIDE, OUTSIDE, WITHIN;
70 
71  static double storage;
72  public:
73  InelasticYS2DGNL(int tag,
74  int Nd1, int Nd2,
75  YieldSurface_BC *ysEnd1, YieldSurface_BC *ysEnd2,
76  int rf_algo = -1, // updated
77  bool islinear = false, double rho = 0.0);
78 
80 
81  virtual const Vector &getResistingForce(void) const;
82  virtual const Matrix &getTangentStiff(void) const;
83  virtual int commitState(void);
84  virtual int update(void) const;
85  void Print(std::ostream &s, int flag =0) const;
86  int sendSelf(Communicator &);
87  int recvSelf(const Communicator &);
88 
89  virtual Response *setResponse(const std::vector<std::string> &argv,Information &eleInformation);
90  virtual int getResponse(int responseID, Information &eleInformation);
91 
92  protected:
93  virtual void getLocalStiff(Matrix &K) const=0;
94  virtual void getLocalMass(Matrix &M) const;
95 
96 protected:
97  int computeTrueEleForce(Vector &trial_force) const;
98  void checkSpecialCases(void) const;
99 
100 private:
101  void forceBalance(Vector &force, int algo) const;
102  void plastifyOneEnd(int end, YieldSurface_BC *ys, Vector &trial_force, Vector &incrDisp, Matrix &K, Vector &total_force, int algo) const;
103 
104  void splitStep(int end_shoot, YieldSurface_BC *ys_shoots, YieldSurface_BC *ys_drifts,
105  Vector &trial_force, Matrix &K, Vector &total_force) const;
106 
107  void driftOneEnd(YieldSurface_BC *ys, Vector &trial_force, Vector &surface_force, Matrix &K, Vector &total_force) const;
108  void driftBothEnds(Vector &trial_force, Vector &surface_force,Matrix &K, Vector &total_force) const;
109  void plastifyBothEnds(Vector &trial_force, Vector &incrDisp,Matrix &K, Vector &total_force) const;
110  void checkEndStatus(bool &end1drifts, bool &end2drifts, Vector &trialForce) const;
111  int plasticPredictor(Vector &trialForce) const;
112  int elasticCorrector(Vector &trialForce, int algo);
113 };
114 } // end of XC namespace
115 
116 #endif
virtual const Matrix & getTangentStiff(void) const
Return the tangent stiffness matrix.
Definition: InelasticYS2DGNL.cpp:593
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: InelasticYS2DGNL.cpp:1609
Float vector abstraction.
Definition: Vector.h:94
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
Base class response objects.
Definition: Response.h:81
virtual int getResponse(int responseID, Information &eleInformation)
Obtain information from an analysis.
Definition: InelasticYS2DGNL.cpp:1646
int recvSelf(const Communicator &)
Receive the object.
Definition: InelasticYS2DGNL.cpp:1622
Updated Lagrangian 2D beam element.
Definition: UpdatedLagrangianBeam2D.h:83
int sendSelf(Communicator &)
Send the object.
Definition: InelasticYS2DGNL.cpp:1617
virtual Response * setResponse(const std::vector< std::string > &argv, Information &eleInformation)
setResponse() is a method invoked to determine if the element will respond to a request for a certain...
Definition: InelasticYS2DGNL.cpp:1628
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
virtual int commitState(void)
Commit the current element state.
Definition: InelasticYS2DGNL.cpp:1504
YieldSurface_BC is an abstract class and provides the interface between the specific yield surface de...
Definition: YieldSurface_BC.h:53
virtual const Vector & getResistingForce(void) const
Returns the resisting force vector for the element.
Definition: InelasticYS2DGNL.cpp:616
Inelastic Element - concentrated hinge model, Fi - Fj interaction at each ends using yield surfaces *...
Definition: InelasticYS2DGNL.h:44