xc
SectionFDPhysicalProperties.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 //SectionFDPhysicalProperties.h
29 
30 #ifndef SectionFDPhysicalProperties_h
31 #define SectionFDPhysicalProperties_h
32 
33 #include "PhysicalProperties.h"
34 #include "material/section/SectionForceDeformation.h"
35 
36 namespace XC {
37 
39 //
41 class SectionFDPhysicalProperties: public PhysicalProperties<SectionForceDeformation>
42  {
43  public:
44  SectionFDPhysicalProperties(const size_t &nMat= 0,const SectionForceDeformation *ptr_mat= nullptr);
45  SectionFDPhysicalProperties(const size_t &nMat,const Material *);
46 
47  double getMeanInternalForce(const std::string &) const;
48  double getMeanInternalDeformation(const std::string &) const;
49  double getMeanGeneralizedStrainByName(const std::string &) const;
50  double getMeanGeneralizedStressByName(const std::string &) const;
51  Vector getGeneralizedStrainAtGaussPointsByName(const std::string &) const;
52  Vector getGeneralizedStressAtGaussPointsByName(const std::string &) const;
53 
54 
55  bool haveRho(void) const;
56  Vector getRhoi(void) const;
57 
58  int getResponse(int responseID, Information &eleInformation);
59  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
60 
61  void Print(std::ostream &s, int) const;
62  };
63 
64 } // end of XC namespace
65 #endif
Base class for element&#39;s physical properties.
Definition: PhysicalProperties.h:48
Base class for force deformation section models.
Definition: SectionForceDeformation.h:88
Float vector abstraction.
Definition: Vector.h:94
Information about an element.
Definition: Information.h:81
Base class response objects.
Definition: Response.h:81
double getMeanInternalDeformation(const std::string &) const
Returns mean value of internal force.
Definition: SectionFDPhysicalProperties.cc:121
Base class for materials.
Definition: Material.h:93
bool haveRho(void) const
check to see if have mass
Definition: SectionFDPhysicalProperties.cc:259
Vector getRhoi(void) const
Returns densities for each position.
Definition: SectionFDPhysicalProperties.cc:275
Response * setResponse(const std::vector< std::string > &argv, Information &eleInformation)
Material response.
Definition: SectionFDPhysicalProperties.cc:332
double getMeanGeneralizedStrainByName(const std::string &) const
Returns the component of the average strain vector which has the code being passed as parameter...
Definition: SectionFDPhysicalProperties.cc:149
Vector getGeneralizedStrainAtGaussPointsByName(const std::string &) const
Returns the components of the strain vector which has the code being passed as parameter.
Definition: SectionFDPhysicalProperties.cc:177
Vector getGeneralizedStressAtGaussPointsByName(const std::string &) const
Returns the components of the stress vector which has the code being passed as parameter.
Definition: SectionFDPhysicalProperties.cc:232
double getMeanGeneralizedStressByName(const std::string &) const
Returns the component of the average generalized stress vector which corresponds to the code being pa...
Definition: SectionFDPhysicalProperties.cc:205
void Print(std::ostream &s, int) const
print out element data
Definition: SectionFDPhysicalProperties.cc:65
int getResponse(int responseID, Information &eleInformation)
Obtain information from an analysis.
Definition: SectionFDPhysicalProperties.cc:285
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Physical properties for shells.
Definition: SectionFDPhysicalProperties.h:41
SectionFDPhysicalProperties(const size_t &nMat=0, const SectionForceDeformation *ptr_mat=nullptr)
Constructor.
Definition: SectionFDPhysicalProperties.cc:40
double getMeanInternalForce(const std::string &) const
Returns mean value of internal force.
Definition: SectionFDPhysicalProperties.cc:94