xc
Bidirectional.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/25 23:33:33 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/Bidirectional.h,v $
51 
52 
53 #ifndef Bidirectional_h
54 #define Bidirectional_h
55 
56 // File: ~/material/Bidirectional.h
57 //
58 // Written: MHS
59 // Created: Feb 2000
60 // Revision: A
61 //
62 // Description:
63 //
64 // What: "@(#) Bidirectional.h, revA"
65 
66 #include <material/section/SectionForceDeformation.h>
67 
68 namespace XC {
70 //
88  {
89  private:
90  double E;
91  double sigY;
92  double Hiso;
93  double Hkin;
94 
95  double e_n1Trial[2];
96  double e_n1Inic[2];
97  double eP_n[2];
98  mutable double eP_n1[2];
99 
100  double q_n[2];
101  mutable double q_n1[2];
102 
103  double alpha_n;
104  mutable double alpha_n1;
105 
106  static Vector s;
107  static Matrix ks;
108 
109  void initialize(void);
110  void copy(const Bidirectional &);
111  protected:
112  int sendData(Communicator &);
113  int recvData(const Communicator &);
114  public:
115  Bidirectional(int tag= 0);
116  Bidirectional(int tag, double E, double sigY, double Hiso, double Hkin);
117  Bidirectional(const Bidirectional &);
119 
120  int setInitialSectionDeformation(const Vector &v);
121  int setTrialSectionDeformation(const Vector &v);
122  const Matrix &getSectionTangent(void) const;
123  const Matrix &getInitialTangent(void) const;
124  const Vector &getStressResultant(void) const;
126  const Vector &getInitialSectionDeformation(void) const;
127  const Vector &getSectionDeformation(void) const;
128  virtual double getStrain(const double &,const double &) const;
129 
130  int commitState(void);
131  int revertToLastCommit(void);
132  int revertToStart(void);
133 
134  SectionForceDeformation *getCopy(void) const;
135  const ResponseId &getResponseType(void) const;
136  int getOrder(void) const;
137 
138  int sendSelf(Communicator &);
139  int recvSelf(const Communicator &);
140 
141  void Print(std::ostream &s, int flag = 0) const;
142  };
143 } // end of XC namespace
144 
145 
146 #endif
Base class for force deformation section models.
Definition: SectionForceDeformation.h:88
const Vector & getInitialSectionDeformation(void) const
Returns the initial generalized strains.
Definition: Bidirectional.cpp:282
int revertToStart(void)
Revert to the last committed state.
Definition: Bidirectional.cpp:336
int revertToLastCommit(void)
Revert to the last committed state.
Definition: Bidirectional.cpp:322
Float vector abstraction.
Definition: Vector.h:94
const ResponseId & getResponseType(void) const
Get material type.
Definition: Bidirectional.cpp:347
int recvSelf(const Communicator &)
Receive object through the communicator argument.
Definition: Bidirectional.cpp:391
const Matrix & getSectionTangent(void) const
Returns the tangent stiffness matrix.
Definition: Bidirectional.cpp:135
Communication parameters between processes.
Definition: Communicator.h:66
void zeroInitialSectionDeformation(void)
Returns the initial generalized strains.
Definition: Bidirectional.cpp:274
Bidirectional(int tag=0)
Constructor.
Definition: Bidirectional.cpp:97
const Vector & getSectionDeformation(void) const
Returns material&#39;s trial generalized deformation.
Definition: Bidirectional.cpp:291
Bidirectional & operator=(const Bidirectional &)
assignment operator.
Definition: Bidirectional.cpp:107
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: Bidirectional.cpp:365
int commitState(void)
Commit the state of the material.
Definition: Bidirectional.cpp:308
int setInitialSectionDeformation(const Vector &v)
Set the value of the initial deformation.
Definition: Bidirectional.cpp:119
const Matrix & getInitialTangent(void) const
Returns the initial tangent stiffness matrix.
Definition: Bidirectional.cpp:208
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: Bidirectional.cpp:354
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: Bidirectional.cpp:343
Stiffness material contribution response identifiers.
Definition: ResponseId.h:61
const Vector & getStressResultant(void) const
Returns the cross-section stress resultant.
Definition: Bidirectional.cpp:216
int getOrder(void) const
Return the number of response quantities provided by the section.
Definition: Bidirectional.cpp:350
bi-directional section, which is a stress-resultant plasticity model of two coupled forces...
Definition: Bidirectional.h:87
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
int setTrialSectionDeformation(const Vector &v)
Set the value of the trial deformation.
Definition: Bidirectional.cpp:127
int sendSelf(Communicator &)
Send object through the communicator argument.
Definition: Bidirectional.cpp:376
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: Bidirectional.cpp:411
virtual double getStrain(const double &, const double &) const
Returns strain at the position being passed as parameter.
Definition: Bidirectional.cpp:300