xc
FiberSection3d.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.8 $
49 // $Date: 2003/02/25 23:33:34 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/fiber_section/FiberSection3d.h,v $
51 
52 // Written: fmk
53 // Created: 04/01
54 //
55 // Description: This file contains the class definition for
56 // FiberSection3d.h.
57 
58 #ifndef FiberSection3d_h
59 #define FiberSection3d_h
60 
61 #include <material/section/fiber_section/FiberSection3dBase.h>
62 
63 namespace XC {
64 class MaterialHandler;
65 class FiberSectionRepr;
66 
68 //
76  {
77  private:
78 
79  friend class FiberContainer;
80  protected:
81 
82  FiberSection3d(int tag, int classTag, MaterialHandler *mat_ldr= nullptr);
83  public:
84  FiberSection3d(MaterialHandler *mat_ldr= nullptr);
85  FiberSection3d(int tag,MaterialHandler *mat_ldr= nullptr);
86  FiberSection3d(int tag,const fiber_list &,MaterialHandler *mat_ldr= nullptr);
87 
88  virtual void setupFibers(void);
89  Fiber *addFiber(Fiber &theFiber);
90 
91  int setInitialSectionDeformation(const Vector &deforms);
92  int setTrialSectionDeformation(const Vector &deforms);
93 
94  const Matrix &getInitialTangent(void) const;
95 
96  int revertToLastCommit(void);
97  int revertToStart(void);
98 
99  SectionForceDeformation *getCopy(void) const;
100  const ResponseId &getResponseType(void) const;
101  int getOrder(void) const;
102 
103  int sendSelf(Communicator &);
104  int recvSelf(const Communicator &);
105  void Print(std::ostream &s, int flag = 0) const;
106 
107  };
108 
109 FiberSection3d FiberSectionReprToFiberSection3d(const int &tag,const FiberSectionRepr &fiberSectionRepr);
110 
111 } // end of XC namespace
112 
113 #endif
const ResponseId & getResponseType(void) const
Returns the type.
Definition: FiberSection3d.cpp:124
Base class for force deformation section models.
Definition: SectionForceDeformation.h:88
Float vector abstraction.
Definition: Vector.h:94
int revertToLastCommit(void)
Returns to the last committed state.
Definition: FiberSection3d.cpp:131
const Matrix & getInitialTangent(void) const
Return the tangent initial stiffness matrix.
Definition: FiberSection3d.cpp:116
Communication parameters between processes.
Definition: Communicator.h:66
int setTrialSectionDeformation(const Vector &deforms)
Set trial strains.
Definition: FiberSection3d.cpp:109
std::list< Fiber * > fiber_list
fiber list.
Definition: fiber_list.h:37
int recvSelf(const Communicator &)
Receive the object.
Definition: FiberSection3d.cpp:148
int setInitialSectionDeformation(const Vector &deforms)
Sets values for initial generalized strains.
Definition: FiberSection3d.cpp:102
int revertToStart(void)
Returns to the initial state.
Definition: FiberSection3d.cpp:138
Fiber section model in a three-dimensional space.
Definition: FiberSection3d.h:75
Section fiber.
Definition: Fiber.h:90
int sendSelf(Communicator &)
Send the object.
Definition: FiberSection3d.cpp:141
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: FiberSection3d.cpp:120
FiberSection3d(int tag, int classTag, MaterialHandler *mat_ldr=nullptr)
Constructor (it&#39;s used in FiberSectionShear3d).
Definition: FiberSection3d.cpp:72
Stiffness material contribution response identifiers.
Definition: ResponseId.h:61
Base class for fiber sections in three-dimensional problems.
Definition: FiberSection3dBase.h:73
Material handler (definition, searching,...).
Definition: MaterialHandler.h:46
Fiber container.
Definition: FiberContainer.h:41
Fiber section representation.
Definition: FiberSectionRepr.h:79
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
Fiber * addFiber(Fiber &theFiber)
Adds a fiber to the section.
Definition: FiberSection3d.cpp:97
int getOrder(void) const
Return the number of response quantities provided by the section.
Definition: FiberSection3d.cpp:127
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: FiberSection3d.cpp:155