xc
ConnectedMaterial.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 //ConnectedMaterial.h
29 
30 #ifndef ConnectedMaterial_h
31 #define ConnectedMaterial_h
32 
33 #include <material/uniaxial/UniaxialMaterial.h>
34 #include <material/uniaxial/DqUniaxialMaterial.h>
35 
36 namespace XC{
38 //
41  {
42  private:
43  void appendMaterial(const std::string &);
44  protected:
46  public:
47  ConnectedMaterial(int tag, int classTag,const DqUniaxialMaterial &theMaterials);
48  ConnectedMaterial(int tag, int classTag);
50  ConnectedMaterial &operator=(const ConnectedMaterial &);
51 
52  virtual void setMaterials(const boost::python::list &);
53  size_t getNumMaterials(void) const;
54  const DqUniaxialMaterial &getMaterials(void) const;
56 
57  int sendData(Communicator &);
58  int recvData(const Communicator &);
59 // AddingSensitivity:BEGIN //////////////////////////////////////////
60  int setParameter(const std::vector<std::string> &argv, Parameter &param);
61  double getStressSensitivity(int gradNumber, bool conditional);
62  double getTangentSensitivity(int gradNumber);
63  double getInitialTangentSensitivity(int gradNumber);
64  double getDampTangentSensitivity(int gradNumber);
65  double getRhoSensitivity(int gradNumber);
66  int commitSensitivity(double strainGradient, int gradNumber, int numGrads);
67 // AddingSensitivity:END ///////////////////////////////////////////
68  };
69 } // end of XC namespace
70 
71 
72 #endif
73 
int sendData(Communicator &)
Send its members through the communicator argument.
Definition: ConnectedMaterial.cc:135
Communication parameters between processes.
Definition: Communicator.h:66
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
size_t getNumMaterials(void) const
Return the number of connected materials.
Definition: ConnectedMaterial.cc:123
int setParameter(const std::vector< std::string > &argv, Parameter &param)
Sets the value param to the parameter argv.
Definition: ConnectedMaterial.cc:156
Pointers to UniaxialMaterial container.
Definition: DqUniaxialMaterial.h:45
virtual void setMaterials(const boost::python::list &)
Set the connected materials.
Definition: ConnectedMaterial.cc:112
Connected uniaxial materials (parallel or serial).
Definition: ConnectedMaterial.h:40
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Parameter.
Definition: Parameter.h:68
int recvData(const Communicator &)
Receives its members through the communicator argument.
Definition: ConnectedMaterial.cc:146
DqUniaxialMaterial theModels
an array of pointers to the UniaxialMaterials
Definition: ConnectedMaterial.h:45
const DqUniaxialMaterial & getMaterials(void) const
Return a reference to the material container.
Definition: ConnectedMaterial.cc:127