XC Open source finite element analysis program
BaseElasticSection2d.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 //BaseElasticSection2d.h
28 
29 #ifndef BaseElasticSection2d_h
30 #define BaseElasticSection2d_h
31 
32 #include "BaseElasticSection.h"
33 #include <utility/matrix/Vector.h>
34 #include "material/section/repres/CrossSectionProperties2d.h"
35 
36 namespace XC {
37 
39 //
43  {
44  protected:
46 
47  int sendData(CommParameters &);
48  int recvData(const CommParameters &);
49 
50 
51  public:
52  BaseElasticSection2d(int tag,int classTag,const size_t &dim, const double &E, const double &A, const double &I,double G, const double &alpha);
53  BaseElasticSection2d(int tag,int classTag,const size_t &dim,MaterialLoader *mat_ldr= nullptr);
54  BaseElasticSection2d(int classTag,const size_t &dim);
55 
57  void setCrossSectionProperties(const CrossSectionProperties2d &);
58  void sectionGeometry(const std::string &);
59 
60  double getStrain(const double &y,const double &z= 0) const;
61 
62  void Print(std::ostream &s, int flag =0) const;
63  };
64 } // end of XC namespace
65 
66 #endif
Base class for cross sections with linear elastic material on a bi-dimensional problem (3 DOFs on eac...
Definition: BaseElasticSection2d.h:42
double getStrain(const double &y, const double &z=0) const
brief Returns strain at position being passed as parameter.
Definition: BaseElasticSection2d.cc:67
const CrossSectionProperties2d & getCrossSectionProperties(void) const
Returns the mechanical properties of the section.
Definition: BaseElasticSection2d.cc:90
CrossSectionProperties2d ctes_scc
Mechanical properties of the section.
Definition: BaseElasticSection2d.h:45
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: BaseElasticSection2d.cc:82
Mechanical properties of a cross section (area, moments of inertia,...) for a bi-dimensional problem ...
Definition: CrossSectionProperties2d.h:52
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: BaseElasticSection2d.cc:74
Base class for cross sections with linear elastic material.
Definition: BaseElasticSection.h:44
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34