XC Open source finite element analysis program
UniaxialFiber3d.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.7 $
48 // $Date: 2003/02/25 23:33:36 $
49 // $Source: material/section/fiber_section/fiber/UniaxialFiber3d.h,v $
50 
51 
52 // File: ~/fiber/UniaxialFiber3d.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 // UniaxialFiber3d.h. UniaxialFiber3d provides the abstraction of a
60 // uniaxial fiber that forms a fiber section for 3d frame elements (the
61 // fiber position inside the section is defined by two coordinates)
62 // The UniaxialFiber3d is subjected to a stress state with
63 // only one nonzero axial stress and corresponding axial strain.
64 //
65 // What: "@(#) UniaxialFiber3d.h, revA"
66 
67 #ifndef UniaxialFiber3d_h
68 #define UniaxialFiber3d_h
69 
70 #include "UniaxialFiber.h"
71 #include <utility/matrix/Matrix.h>
72 #include <utility/matrix/Vector.h>
73 
74 namespace XC {
75 class UniaxialMaterial;
76 class Response;
77 
79 //
82  {
83  private:
84  double as[2];
85  static Matrix ks;
86  static Vector fs;
87 
88  void set_position(const Vector &position);
89  protected:
90  int sendData(CommParameters &);
91  int recvData(const CommParameters &);
92 
93  public:
94  UniaxialFiber3d(int classTag= FIBER_TAG_Uniaxial3d);
95  UniaxialFiber3d(int tag,const UniaxialMaterial &theMat,const double &Area, const Vector &position,int classTag= FIBER_TAG_Uniaxial3d);
96  UniaxialFiber3d(int tag,const MaterialLoader &,const std::string &nmbMat,const double &, const Vector &position,int classTag= FIBER_TAG_Uniaxial3d);
97 
98  int setTrialFiberStrain(const Vector &vs);
101 
102  Fiber *getCopy(void) const;
103  int getOrder(void) const;
104  const ResponseId &getType(void) const;
105 
106  int sendSelf(CommParameters &);
107  int recvSelf(const CommParameters &);
108  void Print(std::ostream &s, int flag =0);
109 
110  Response *setResponse(const std::vector<std::string> &argv, Information &info);
111  int getResponse(int responseID, Information &info);
112 
113  void getFiberLocation(double &y, double &z) const;
114  inline virtual double getLocY(void) const
115  { return -as[0]; } //XXX sign of y
116  inline virtual double getLocZ(void) const
117  { return as[1]; }
118  };
119 } // end of XC namespace
120 
121 
122 #endif
123 
UniaxialFiber3d(int classTag=FIBER_TAG_Uniaxial3d)
Constructor.
Definition: UniaxialFiber3d.cpp:87
Definition: Vector.h:82
Representa una fibra de material uniaxial.
Definition: UniaxialFiber.h:41
Uniaxial fiber on a three-dimensional space.
Definition: UniaxialFiber3d.h:81
Matrix & getFiberTangentStiffContr(void)
Returns the fiber contribution to the section stiffness.
Definition: UniaxialFiber3d.cpp:136
int getOrder(void) const
Returns the dimension of the stress resultant vector.
Definition: UniaxialFiber3d.cpp:171
Information about an element.
Definition: Information.h:80
int sendData(CommParameters &)
Send data through the channel being passed as parameter.
Definition: UniaxialFiber3d.cpp:178
Stiffness material contribution response identifiers.
Definition: ResponseId.h:60
int setTrialFiberStrain(const Vector &vs)
Asigna la trial strain para la fibra.
Definition: UniaxialFiber3d.cpp:106
Vector & getFiberStressResultants(void)
Returns the resultante de tensiones de la fibra.
Definition: UniaxialFiber3d.cpp:120
Definition: Matrix.h:82
void getFiberLocation(double &y, double &z) const
Returns fiber position.
Definition: UniaxialFiber3d.cpp:259
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: UniaxialFiber3d.cpp:194
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
Section fiber.
Definition: Fiber.h:89
Fiber * getCopy(void) const
Virtual constructor.
Definition: UniaxialFiber3d.cpp:167
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: UniaxialFiber3d.cpp:227
int recvData(const CommParameters &)
Receive data through the channel being passed as parameter.
Definition: UniaxialFiber3d.cpp:186
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: UniaxialFiber3d.cpp:208