XC Open source finite element analysis program
SectionAggregator.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.10 $
48 // $Date: 2003/02/25 23:33:34 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/SectionAggregator.h,v $
50 
51 
52 // File: ~/section/SectionAggregator.h
53 //
54 // Written: MHS
55 // Created: Jun 2000
56 // Revision: A
57 //
58 // Description: This file contains the class definition for
59 // SectionAggregator. SectionAggregator decorates an MP
60 // section (couple bending and axial) with an uncoupled shear
61 // relation.
62 //
63 // What: "@(#) SectionAggregator.h, revA"
64 
65 #ifndef SectionAggregator_h
66 #define SectionAggregator_h
67 
68 #include <material/section/SeccionBarraPrismatica.h>
69 #include <material/section/AggregatorAdditions.h>
70 
71 namespace XC {
73 //
78  {
79  private:
80  SeccionBarraPrismatica *theSection;
81  AggregatorAdditions theAdditions;
82 
83  Vector *def;
84  Vector *defzero;
85  Vector *s;
86  Matrix *ks;
87  Matrix *fs;
88  ResponseId *theCode;
89 
90  static double workArea[];
91  //static int codeArea[];
92 
93  void copia_seccion(const SectionForceDeformation *);
94  void check_ptrs(void) const;
95  void alloc_storage_ptrs(void);
96  void libera_storage_ptrs(void);
97  void libera(void);
98  protected:
99  int sendData(CommParameters &);
100  int recvData(const CommParameters &);
101 
102  public:
103  SectionAggregator(MaterialLoader *mat_ldr= nullptr);
104  SectionAggregator(int tag,MaterialLoader *mat_ldr= nullptr);
105  SectionAggregator(int tag, SeccionBarraPrismatica &theSection,const AggregatorAdditions &theAdditions,MaterialLoader *mat_ldr= nullptr);
106  SectionAggregator(int tag, const AggregatorAdditions &theAdditions,MaterialLoader *mat_ldr= nullptr);
107  SectionAggregator(int tag, SeccionBarraPrismatica &thesection,UniaxialMaterial &theAddition, int c,MaterialLoader *mat_ldr= nullptr);
110  ~SectionAggregator(void);
111 
112  inline SeccionBarraPrismatica *getSection(void)
113  { return theSection; }
114  void setSection(const std::string &sectionName);
115  inline AggregatorAdditions &getAdditions(void)
116  { return theAdditions; }
117  void setAddtions(const std::vector<std::string> &,const std::vector<std::string> &);
118  void setAddtionsPyList(const boost::python::list &,const boost::python::list &);
119 
120 
121  int setInitialSectionDeformation(const Vector &deforms);
122  int setTrialSectionDeformation(const Vector &deforms);
123  virtual double getStrain(const double &y,const double &z) const;
125  const Vector &getInitialSectionDeformation(void) const;
126  const Vector &getSectionDeformation(void) const;
127  const Vector &getStressResultant(void) const;
128  const Matrix &getSectionTangent(void) const;
129  const Matrix &getInitialTangent(void) const;
130  const Matrix &getSectionFlexibility(void) const;
131  const Matrix &getInitialFlexibility(void) const;
132 
133  int commitState(void);
134  int revertToLastCommit(void);
135  int revertToStart(void);
136 
137  SectionForceDeformation *getCopy(void) const;
138  const ResponseId &getType(void) const;
139  int getOrder(void) const;
140 
141  int sendSelf(CommParameters &);
142  int recvSelf(const CommParameters &);
143 
144  void Print(std::ostream &s, int flag =0) const;
145 
146  Response *setResponse(const std::vector<std::string> &argv, Information &info);
147  int getResponse(int responseID, Information &info);
148 
149  int setVariable(const std::string &argv);
150  int getVariable(int variableID, double &info);
151 
152  };
153 } // end of XC namespace
154 
155 #endif
~SectionAggregator(void)
destructor:
Definition: SectionAggregator.cpp:304
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: SectionAggregator.cpp:308
SectionAggregator decorates an MP section (couple bending and axial) with an uncoupled shear relation...
Definition: SectionAggregator.h:77
const Matrix & getSectionTangent(void) const
Returns the tangent stiffness matrix.
Definition: SectionAggregator.cpp:398
int commitState(void)
Commits material state after convergence.
Definition: SectionAggregator.cpp:518
virtual double getStrain(const double &y, const double &z) const
Returns strain at position being passed as parameter.
Definition: SectionAggregator.cpp:348
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: SectionAggregator.cpp:597
const Matrix & getInitialTangent(void) const
Returns the initial tangent stiffness matrix.
Definition: SectionAggregator.cpp:419
pointers to UniaxialMaterial with the degree of freedom associated to each of them (used in SectionAg...
Definition: AggregatorAdditions.h:45
Definition: Vector.h:82
int setVariable(const std::string &argv)
Returns the identificador de la variable cuyo nombre being passed as parameter.
Definition: SectionAggregator.cpp:658
const ResponseId & getType(void) const
Section stiffness contribution response identifiers.
Definition: SectionAggregator.cpp:494
void setSection(const std::string &sectionName)
Assigns the section.
Definition: SectionAggregator.cpp:248
int getOrder(void) const
Returns the order of the section.
Definition: SectionAggregator.cpp:509
int setInitialSectionDeformation(const Vector &deforms)
Sets initial strain.
Definition: SectionAggregator.cpp:312
const Matrix & getSectionFlexibility(void) const
Returns the flexibility matrix.
Definition: SectionAggregator.cpp:439
Information about an element.
Definition: Information.h:80
int revertToLastCommit(void)
Returns the material to the las commited state.
Definition: SectionAggregator.cpp:528
Stiffness material contribution response identifiers.
Definition: ResponseId.h:60
void zeroInitialSectionDeformation(void)
Zeroes material initial generalized strain.
Definition: SectionAggregator.cpp:357
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: SectionAggregator.cpp:567
Base class for beam-column cross sections. Constitutive equations of the section. ...
Definition: SeccionBarraPrismatica.h:50
int getResponse(int responseID, Information &info)
Returns section response.
Definition: SectionAggregator.cpp:650
SectionAggregator(MaterialLoader *mat_ldr=nullptr)
Default constructor.
Definition: SectionAggregator.cpp:220
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: SectionAggregator.cpp:552
const Matrix & getInitialFlexibility(void) const
Returns the initial flexibility matrix.
Definition: SectionAggregator.cpp:458
const Vector & getSectionDeformation(void) const
Returns material trial generalized strain.
Definition: SectionAggregator.cpp:381
Definition: Matrix.h:82
const Vector & getInitialSectionDeformation(void) const
Returns material initial generalized strain.
Definition: SectionAggregator.cpp:366
int getVariable(int variableID, double &info)
Returns the valor de la variable cuyo nombre being passed as parameter.
Definition: SectionAggregator.cpp:672
void Print(std::ostream &s, int flag=0) const
Imprime el objeto.
Definition: SectionAggregator.cpp:616
Response * setResponse(const std::vector< std::string > &argv, Information &info)
Returns the respuesta of the section.
Definition: SectionAggregator.cpp:633
const Vector & getStressResultant(void) const
Returns the stress resultant.
Definition: SectionAggregator.cpp:478
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
int revertToStart(void)
Reverts the material to its initial state.
Definition: SectionAggregator.cpp:540
int setTrialSectionDeformation(const Vector &deforms)
Sets trial strain.
Definition: SectionAggregator.cpp:330
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: SectionAggregator.cpp:582
Base class for force deformation section models. Constitutive equations of the section.
Definition: SectionForceDeformation.h:86
Communication parameters between processes.
Definition: CommParameters.h:65
XC::SectionAggregator & operator=(const SectionAggregator &otro)
Assignment operator.
Definition: SectionAggregator.cpp:225
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88