XC Open source finite element analysis program
FiberSectionGJ.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.3 $
48 // $Date: 2003/02/25 23:33:34 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/fiber_section/FiberSectionGJ.h,v $
50 
51 // Written: fmk
52 // Created: 04/01
53 //
54 // Description: This file contains the class definition for
55 // FiberSectionGJ.h. FiberSectionGJ 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 FiberSectionGJ_h
60 #define FiberSectionGJ_h
61 
62 #include <material/section/fiber_section/FiberSection3dBase.h>
63 #include <utility/matrix/Matrix.h>
64 
65 namespace XC {
66 class MaterialLoader;
67 class FiberSectionRepr;
68 
70 //
73  {
74  private:
75  double GJ;
76  protected:
77  friend class DqFibras;
78 
79  public:
80  FiberSectionGJ(MaterialLoader *mat_ldr= nullptr);
81  FiberSectionGJ(int tag,MaterialLoader *mat_ldr= nullptr);
82  FiberSectionGJ(int tag,const contenedor_fibras &fibers, double GJ = 1.0e10,MaterialLoader *mat_ldr= nullptr);
83 
84  Fiber *addFiber(Fiber &theFiber);
85 
86  int setInitialSectionDeformation(const Vector &deforms);
87  int setTrialSectionDeformation(const Vector &deforms);
88 
89  virtual void setupFibers(void);
90 
91  inline const double &getGJ(void) const
92  { return GJ; }
93  const Matrix &getInitialTangent(void) const;
94 
95  int revertToLastCommit(void);
96  int revertToStart(void);
97 
98  SectionForceDeformation *getCopy(void) const;
99  const ResponseId &getType(void) const;
100  int getOrder (void) const;
101 
102  int sendSelf(CommParameters &);
103  int recvSelf(const CommParameters &);
104  void Print(std::ostream &s, int flag = 0);
105 
106  };
107 
108 FiberSectionGJ FiberSectionReprToFiberSectionGJ(const int &tag,const FiberSectionRepr &fiberSectionRepr,const double &GJ);
109 
110 
111 } // end of XC namespace
112 
113 #endif
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
int setInitialSectionDeformation(const Vector &deforms)
Establece los valores de las initial strains.
Definition: FiberSectionGJ.cpp:97
Fiber section with torsional stiffness.
Definition: FiberSectionGJ.h:72
Stiffness material contribution response identifiers.
Definition: ResponseId.h:60
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: FiberSectionGJ.cpp:114
Fiber section representation.
Definition: FiberSectionRepr.h:78
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: FiberSectionGJ.cpp:146
int setTrialSectionDeformation(const Vector &deforms)
Sets trial generalized strains values.
Definition: FiberSectionGJ.cpp:104
Fiber * addFiber(Fiber &theFiber)
Adds a fiber to the section.
Definition: FiberSectionGJ.cpp:93
Contenedor de fibras.
Definition: DqFibras.h:66
Definition: Matrix.h:82
const Matrix & getInitialTangent(void) const
Return the initial tangent stiffness matrix.
Definition: FiberSectionGJ.cpp:111
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
Section fiber.
Definition: Fiber.h:89
Base class for force deformation section models. Constitutive equations of the section.
Definition: SectionForceDeformation.h:86
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int revertToStart(void)
Return to the initial state.
Definition: FiberSectionGJ.cpp:131
int revertToLastCommit(void)
Returns to last commited state.
Definition: FiberSectionGJ.cpp:124