XC Open source finite element analysis program
BaseElasticSection3d.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 //BaseElasticSection3d.h
28 
29 #ifndef BaseElasticSection3d_h
30 #define BaseElasticSection3d_h
31 
32 #include "BaseElasticSection.h"
33 #include <utility/matrix/Vector.h>
34 #include "material/section/repres/CrossSectionProperties3d.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  BaseElasticSection3d(int tag,int classTag,const size_t &dim,const CrossSectionProperties3d &ctes,MaterialLoader *mat_ldr= nullptr);
53  BaseElasticSection3d(int tag,int classTag,const size_t &dim,MaterialLoader *mat_ldr= nullptr);
54 
56  void setCrossSectionProperties(const CrossSectionProperties3d &);
57  void sectionGeometry(const std::string &);
58 
59  double getStrain(const double &y,const double &z) const;
60 
61  void Print(std::ostream &s, int flag =0) const;
62  };
63 
64 inline std::ostream &operator<<(std::ostream &os,const BaseElasticSection3d &scc)
65  {
66  scc.Print(os);
67  return os;
68  }
69 } // end of XC namespace
70 
71 #endif
Mechanical properties of a section (area, moments of inertia,...) in a three-dimensional problem (six...
Definition: CrossSectionProperties3d.h:40
CrossSectionProperties3d ctes_scc
Mechanical properties of the section.
Definition: BaseElasticSection3d.h:45
const CrossSectionProperties3d & getCrossSectionProperties(void) const
Returns the mechanical properties of the section.
Definition: BaseElasticSection3d.cc:64
double getStrain(const double &y, const double &z) const
Returns strain at position being passed as parameter.
Definition: BaseElasticSection3d.cc:68
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: BaseElasticSection3d.cc:79
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: BaseElasticSection3d.cc:87
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
Base class for cross sections with linear elastic material on a three-dimensional problem (6 DOFs on ...
Definition: BaseElasticSection3d.h:42
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