xc
NDMaterialWrapper.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 
29 #ifndef NDMaterialWrapper_h
30 #define NDMaterialWrapper_h
31 
32 #include "material/MaterialWrapper.h"
33 #include "material/nD/NDMaterial.h"
34 
35 namespace XC {
36 
38 //
40 class NDMaterialWrapper: public MaterialWrapper<NDMaterial, MAT_TAG_NDMaterialWrapper>
41  {
42  public:
43  NDMaterialWrapper(void);
44  NDMaterialWrapper(const NDMaterial &material);
45 
46  double getRho(void) const;
47  // send back strain
48  const Vector& getStrain() const;
49  // send back stress
50  const Vector& getStress() const;
51  // send back the tangent
52  const Matrix &getTangent() const;
53  const Matrix &getInitialTangent() const;
54 
55  // set the strain to be sent to the main material
56  int setTrialStrain(const Vector &);
57 
58  const std::string &getType(void) const;
59  int getOrder(void) const;
60 
61  int commitState(void);
62  int revertToLastCommit(void);
63  int revertToStart(void);
64 
65  Response *setResponse(const std::vector<std::string> &argv, Information &matInfo);
66  int getResponse(int responseID, Information &matInformation);
67  };
68 } // end of XC namespace
69 
70 
71 #endif
72 
Float vector abstraction.
Definition: Vector.h:94
const Matrix & getTangent() const
brief this function sends the tangent back to the element
Definition: NDMaterialWrapper.cc:61
Information about an element.
Definition: Information.h:81
Base class response objects.
Definition: Response.h:81
Encapsulates a copy to a material.
Definition: MaterialWrapper.h:41
Encapsulates a copy to an uniaxial material.
Definition: NDMaterialWrapper.h:40
NDMaterialWrapper(void)
Default constructor.
Definition: NDMaterialWrapper.cc:30
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111