XC Open source finite element analysis program
UniaxialFiber2d.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/25 23:33:36 $
49 // $Source: material/section/fiber_section/fiber/UniaxialFiber2d.h,v $
50 
51 
52 // File: ~/fiber/UniaxialFiber2d.h
53 //
54 // Written: Remo Magalhaes de Souza
55 // Created: 10/98
56 // Revision:
57 //
58 // Description: This file contains the class definition for
59 // UniaxialFiber2d.h. UniaxialFiber2d provides the abstraction of a
60 // uniaxial fiber whose position is defined with only one coordinate.
61 // The UniaxialFiber2d is subjected to a stress state with
62 // only one nonzero axial stress and corresponding axial strain.
63 //
64 // What: "@(#) UniaxialFiber2d.h, revA"
65 
66 #ifndef UniaxialFiber2d_h
67 #define UniaxialFiber2d_h
68 
69 #include "UniaxialFiber.h"
70 
71 namespace XC {
72 class UniaxialMaterial;
73 
75 //
78  {
79  private:
80  double y;
81  //(its sign is changed -see comments along the file-).
82 
83  static Matrix ks;
84  static Vector fs;
85  protected:
86  int sendData(CommParameters &);
87  int recvData(const CommParameters &);
88 
89  public:
90  UniaxialFiber2d(void);
91  UniaxialFiber2d(int tag, UniaxialMaterial &, const double &,const double &);
92  UniaxialFiber2d(int tag,const MaterialLoader &,const std::string &nmbMat,const double &, const double &);
93 
94  int setTrialFiberStrain(const Vector &vs);
97 
98  Fiber *getCopy(void) const;
99  int getOrder(void) const;
100  const ResponseId &getType(void) const;
101 
102  int sendSelf(CommParameters &);
103  int recvSelf(const CommParameters &);
104  void Print(std::ostream &s, int flag =0);
105 
106  Response *setResponse(const std::vector<std::string> &argv, Information &info);
107  int getResponse(int responseID, Information &info);
108 
109  void getFiberLocation(double &y, double &z) const;
110  virtual double getLocY(void) const
111  { return -y; } //Sign of Y coordinate is changed.
112  };
113 } // end of XC namespace
114 
115 
116 #endif
117 
118 
119 
120 
121 
122 
int sendData(CommParameters &)
Send data through the channel being passed as parameter.
Definition: UniaxialFiber2d.cpp:155
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: UniaxialFiber2d.cpp:171
UniaxialFiber2d(void)
Constructor for blank object that recvSelf needs to be invoked upon.
Definition: UniaxialFiber2d.cpp:82
Definition: Vector.h:82
Matrix & getFiberTangentStiffContr(void)
Fiber contribution to the tangent stiffness matrix.
Definition: UniaxialFiber2d.cpp:123
Representa una fibra de material uniaxial.
Definition: UniaxialFiber.h:41
Vector & getFiberStressResultants(void)
Returns the resultante de tensiones en la fibra.
Definition: UniaxialFiber2d.cpp:104
int setTrialFiberStrain(const Vector &vs)
Sets the fiber trial strain.
Definition: UniaxialFiber2d.cpp:95
Information about an element.
Definition: Information.h:80
int getOrder(void) const
Returns the dimension of the stress resultant vector.
Definition: UniaxialFiber2d.cpp:148
Stiffness material contribution response identifiers.
Definition: ResponseId.h:60
Fiber * getCopy(void) const
Virtual constructor.
Definition: UniaxialFiber2d.cpp:144
int recvData(const CommParameters &)
Receive data through the channel being passed as parameter.
Definition: UniaxialFiber2d.cpp:163
Definition: Matrix.h:82
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: UniaxialFiber2d.cpp:186
Uniaxial fiber on a bi-dimensional space.
Definition: UniaxialFiber2d.h:77
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
Section fiber.
Definition: Fiber.h:89
Communication parameters between processes.
Definition: CommParameters.h:65
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: UniaxialFiber2d.cpp:205
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88
void getFiberLocation(double &y, double &z) const
Returns fiber position.
Definition: UniaxialFiber2d.cpp:236