XC Open source finite element analysis program
UniaxialFiber.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 //UniaxialFiber.h
28 
29 #ifndef UniaxialFiber_h
30 #define UniaxialFiber_h
31 
32 #include "Fiber.h"
33 
34 namespace XC {
35 class UniaxialMaterial;
36 class MaterialLoader;
37 
39 //
41 class UniaxialFiber: public Fiber
42  {
43  void libera(void);
44  void alloc(const UniaxialMaterial &theMat);
45  protected:
47  double area;
48 
49  int sendData(CommParameters &);
50  int recvData(const CommParameters &);
51 
52  public:
53  UniaxialFiber(int classTag);
54  UniaxialFiber(int tag, int classTag,double Area);
55  UniaxialFiber(int tag, int classTag,const UniaxialMaterial &,const double &);
56  UniaxialFiber(int tag, int classTag,const MaterialLoader &,const std::string &,const double &);
59  ~UniaxialFiber(void);
60 
61  void setMaterial(const UniaxialMaterial *theMat);
62  void setMaterial(const MaterialLoader &ldr,const std::string &nmbMat);
63 
64  int commitState(void);
65  int revertToLastCommit(void);
66  int revertToStart(void);
67 
68  inline UniaxialMaterial *getMaterial(void)
69  { return theMaterial; }
70  inline const UniaxialMaterial *getMaterial(void) const
71  { return theMaterial; }
72  inline double getArea(void) const
73  { return area; }
74  };
75 } // end of XC namespace
76 
77 
78 #endif
79 
80 
81 
82 
83 
84 
void setMaterial(const UniaxialMaterial *theMat)
Asigna a la fibra el material being passed as parameter.
Definition: UniaxialFiber.cc:128
int sendData(CommParameters &)
Send data through the channel being passed as parameter.
Definition: UniaxialFiber.cc:157
double area
area of the fiber
Definition: UniaxialFiber.h:47
int recvData(const CommParameters &)
Receive data through the channel being passed as parameter.
Definition: UniaxialFiber.cc:168
Representa una fibra de material uniaxial.
Definition: UniaxialFiber.h:41
int revertToStart(void)
Returns to the initial state.
Definition: UniaxialFiber.cc:152
UniaxialFiber & operator=(const UniaxialFiber &)
Assignment operator.
Definition: UniaxialFiber.cc:115
UniaxialMaterial * theMaterial
pointer to a material
Definition: UniaxialFiber.h:46
int commitState(void)
Commits material state.
Definition: UniaxialFiber.cc:144
int revertToLastCommit(void)
Returns to its last commited state.
Definition: UniaxialFiber.cc:148
UniaxialFiber(int classTag)
Constructor for blank object that recvSelf needs to be invoked upon.
Definition: UniaxialFiber.cc:92
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
Section fiber.
Definition: Fiber.h:89
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88