xc
UniaxialFiber2d.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/25 23:33:36 $
50 // $Source: material/section/fiber_section/fiber/UniaxialFiber2d.h,v $
51 
52 
53 // File: ~/fiber/UniaxialFiber2d.h
54 //
55 // Written: Remo Magalhaes de Souza
56 // Created: 10/98
57 // Revision:
58 //
59 // Description: This file contains the class definition for
60 // UniaxialFiber2d.h.
61 //
62 // What: "@(#) UniaxialFiber2d.h, revA"
63 
64 #ifndef UniaxialFiber2d_h
65 #define UniaxialFiber2d_h
66 
67 #include "UniaxialFiber.h"
68 
69 namespace XC {
70 class UniaxialMaterial;
71 
73 //
81  {
82  private:
83  double y;
84  //(its sign is changed -see comments along the file-).
85 
86  static Matrix ks;
87  static Vector fs;
88  protected:
89  int sendData(Communicator &);
90  int recvData(const Communicator &);
91 
92  public:
93  UniaxialFiber2d(void);
94  UniaxialFiber2d(int tag, UniaxialMaterial &, const double &,const double &);
95  UniaxialFiber2d(int tag,const MaterialHandler &,const std::string &nmbMat,const double &, const double &);
96 
97  int setTrialFiberStrain(const Vector &vs);
100 
101  Fiber *getCopy(void) const;
102  int getOrder(void) const;
103  const ResponseId &getResponseType(void) const;
104 
105  int sendSelf(Communicator &);
106  int recvSelf(const Communicator &);
107  void Print(std::ostream &s, int flag =0) const;
108 
109  Response *setResponse(const std::vector<std::string> &argv, Information &info);
110  int getResponse(int responseID, Information &info);
111 
112  void getFiberLocation(double &y, double &z) const;
113  virtual double getLocY(void) const
114  { return -y; } //Sign of Y coordinate is changed.
115  };
116 } // end of XC namespace
117 
118 
119 #endif
120 
121 
122 
123 
124 
125 
Float vector abstraction.
Definition: Vector.h:94
Matrix & getFiberTangentStiffContr(void)
Fiber contribution to the tangent stiffness matrix.
Definition: UniaxialFiber2d.cpp:123
int recvData(const Communicator &)
Receive data through the communicator argument.
Definition: UniaxialFiber2d.cpp:163
int sendData(Communicator &)
Send data through the communicator argument.
Definition: UniaxialFiber2d.cpp:155
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
Base class response objects.
Definition: Response.h:81
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
void getFiberLocation(double &y, double &z) const
Returns fiber position.
Definition: UniaxialFiber2d.cpp:242
int getOrder(void) const
Returns the dimension of the stress resultant vector.
Definition: UniaxialFiber2d.cpp:148
Section fiber.
Definition: Fiber.h:90
Uniaxial fiber on a bi-dimensional space.
Definition: UniaxialFiber2d.h:80
Stiffness material contribution response identifiers.
Definition: ResponseId.h:61
Material handler (definition, searching,...).
Definition: MaterialHandler.h:46
int setTrialFiberStrain(const Vector &vs)
Sets the fiber trial strain.
Definition: UniaxialFiber2d.cpp:95
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: UniaxialFiber2d.cpp:188
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: UniaxialFiber2d.cpp:171
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Fiber of uniaxial material.
Definition: UniaxialFiber.h:42
Fiber * getCopy(void) const
Virtual constructor.
Definition: UniaxialFiber2d.cpp:144
Matrix of floats.
Definition: Matrix.h:111
Vector & getFiberStressResultants(void)
Returns the stres resultant of the fiber.
Definition: UniaxialFiber2d.cpp:104
UniaxialFiber2d(void)
Constructor for blank object that recvSelf needs to be invoked upon.
Definition: UniaxialFiber2d.cpp:82
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: UniaxialFiber2d.cpp:211