xc
UniaxialFiber3d.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.7 $
49 // $Date: 2003/02/25 23:33:36 $
50 // $Source: material/section/fiber_section/fiber/UniaxialFiber3d.h,v $
51 
52 
53 // File: ~/fiber/UniaxialFiber3d.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 // UniaxialFiber3d.h.
61 //
62 // What: "@(#) UniaxialFiber3d.h, revA"
63 
64 #ifndef UniaxialFiber3d_h
65 #define UniaxialFiber3d_h
66 
67 #include "UniaxialFiber.h"
68 #include <utility/matrix/Matrix.h>
69 #include <utility/matrix/Vector.h>
70 
71 namespace XC {
72 class UniaxialMaterial;
73 class Response;
74 
76 //
85  {
86  private:
87  double as[2];
88  static Matrix ks;
89  static Vector fs;
90 
91  void set_position(const Vector &position);
92  protected:
93  int sendData(Communicator &);
94  int recvData(const Communicator &);
95 
96  public:
97  UniaxialFiber3d(int classTag= FIBER_TAG_Uniaxial3d);
98  UniaxialFiber3d(int tag,const UniaxialMaterial &theMat,const double &Area, const Vector &position,int classTag= FIBER_TAG_Uniaxial3d);
99  UniaxialFiber3d(int tag,const MaterialHandler &,const std::string &nmbMat,const double &, const Vector &position,int classTag= FIBER_TAG_Uniaxial3d);
100 
101  int setTrialFiberStrain(const Vector &vs);
104 
105  Fiber *getCopy(void) const;
106  int getOrder(void) const;
107  const ResponseId &getResponseType(void) const;
108 
109  int sendSelf(Communicator &);
110  int recvSelf(const Communicator &);
111  void Print(std::ostream &s, int flag =0) const;
112 
113  Response *setResponse(const std::vector<std::string> &argv, Information &info);
114  int getResponse(int responseID, Information &info);
115 
116  void getFiberLocation(double &y, double &z) const;
117  inline virtual double getLocY(void) const
118  { return -as[0]; } //XXX sign of y
119  inline virtual double getLocZ(void) const
120  { return as[1]; }
121  };
122 } // end of XC namespace
123 
124 
125 #endif
126 
int setTrialFiberStrain(const Vector &vs)
Sets the fiber trian strain.
Definition: UniaxialFiber3d.cpp:106
Uniaxial fiber on a three-dimensional space.
Definition: UniaxialFiber3d.h:84
Float vector abstraction.
Definition: Vector.h:94
Matrix & getFiberTangentStiffContr(void)
Returns the fiber contribution to the section stiffness.
Definition: UniaxialFiber3d.cpp:137
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
int recvData(const Communicator &)
Receive data through the communicator argument.
Definition: UniaxialFiber3d.cpp:187
Base class response objects.
Definition: Response.h:81
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
int getOrder(void) const
Returns the dimension of the stress resultant vector.
Definition: UniaxialFiber3d.cpp:172
Vector & getFiberStressResultants(void)
Returns the stress resultant of the fiber.
Definition: UniaxialFiber3d.cpp:121
Section fiber.
Definition: Fiber.h:90
UniaxialFiber3d(int classTag=FIBER_TAG_Uniaxial3d)
Constructor.
Definition: UniaxialFiber3d.cpp:87
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: UniaxialFiber3d.cpp:195
Fiber * getCopy(void) const
Virtual constructor.
Definition: UniaxialFiber3d.cpp:168
Stiffness material contribution response identifiers.
Definition: ResponseId.h:61
Material handler (definition, searching,...).
Definition: MaterialHandler.h:46
int sendData(Communicator &)
Send data through the communicator argument.
Definition: UniaxialFiber3d.cpp:179
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Fiber of uniaxial material.
Definition: UniaxialFiber.h:42
Matrix of floats.
Definition: Matrix.h:111
void getFiberLocation(double &y, double &z) const
Returns fiber position.
Definition: UniaxialFiber3d.cpp:260
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: UniaxialFiber3d.cpp:228
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: UniaxialFiber3d.cpp:209