XC Open source finite element analysis program
FiberSection3dBase.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.8 $
48 // $Date: 2003/02/25 23:33:34 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/fiber_section/FiberSection3dBase.h,v $
50 
51 // Written: fmk
52 // Created: 04/01
53 //
54 // Description: This file contains the class definition for
55 // FiberSection3dBase.h. FiberSection3dBase provides the abstraction of a
56 // 3d beam section discretized by fibers. The section stiffness and
57 // stress resultants are obtained by summing fiber contributions.
58 
59 #ifndef FiberSection3dBase_h
60 #define FiberSection3dBase_h
61 
62 #include <material/section/fiber_section/FiberSectionBase.h>
63 #include <material/section/repres/section/contenedor_fibras.h>
64 #include <utility/matrix/Vector.h>
65 
66 namespace XC {
67 class FiberSectionRepr;
68 
70 //
74  {
75  protected:
76 
77  friend class DqFibras;
78  friend class StoFibras;
79  double get_strain(const double &y,const double &z) const;
80  public:
81  FiberSection3dBase(int classTag, int dim,MaterialLoader *mat_ldr= nullptr);
82  FiberSection3dBase(int tag, int classTag, int dim,MaterialLoader *mat_ldr= nullptr);
83  FiberSection3dBase(int tag, int classTag, int dim,const contenedor_fibras &fibers,MaterialLoader *mat_ldr= nullptr);
86 
87  Fiber *addFiber(Fiber &)= 0;
88  Fiber *addFiber(int tag,const MaterialLoader &,const std::string &nmbMat,const double &, const Vector &position);
89 
90  virtual double getStrain(const double &y,const double &z) const;
91 
92  int setParameter(const std::vector<std::string> &argv, Parameter &param);
93  int updateParameter(int parameterID, Information &info);
94  inline virtual double getCdgZ(void) const
95  { return fibras.getZCdg(); }
96 
97 
98  };
99 
100 } // end of XC namespace
101 
102 #endif
FiberSection3dBase(int classTag, int dim, MaterialLoader *mat_ldr=nullptr)
constructor for blank object that recvSelf needs to be invoked upon
Definition: FiberSection3dBase.cc:58
std::list< Fiber * > contenedor_fibras
Contenedor de fibras.
Definition: contenedor_fibras.h:36
Definition: Vector.h:82
Base class for fiber sections on three-dimensional problems.
Definition: FiberSection3dBase.h:73
StoFibras fibras
Pointers to fibers container.
Definition: FiberSectionBase.h:68
Information about an element.
Definition: Information.h:80
virtual double getStrain(const double &y, const double &z) const
Returns strain at position being passed as parameter.
Definition: FiberSection3dBase.cc:151
Contenedor de fibras.
Definition: DqFibras.h:66
Contenedor de fibras.
Definition: StoFibras.h:40
FiberSection3dBase & operator=(const FiberSection3dBase &otro)
Assignment operator.
Definition: FiberSection3dBase.cc:66
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
Section fiber.
Definition: Fiber.h:89
Definition: Parameter.h:65
Base class for fiber sections.
Definition: FiberSectionBase.h:57
================================================================================
Definition: ContinuaReprComponent.h:34
virtual double getCdgZ(void) const
Returns the coordenada «z» del centro de gravedad of the cross-section.
Definition: FiberSection3dBase.h:94