xc
SoilMaterialBase.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 // $Revision: 1.11 $
29 // $Date: 2003/10/07 21:20:48 $
30 // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/soil/SoilMaterialBase.h,v $
31 
32 // Written: ZHY
33 // Created: August 2000
34 // Revision: A
35 //
36 // Description: This file contains the class prototype for SoilMaterialBase.
37 //
38 // What: "@(#) SoilMaterialBase.h, revA"
39 
40 #ifndef SoilMaterialBase_h
41 #define SoilMaterialBase_h
42 
43 #include "material/nD/NDMaterial.h"
44 
45 namespace XC {
46 class Response;
47 
51 //
53 //
60  {
61  protected:
62  static int matCount;
63  static std::vector<int> ndmx;
64  static std::vector<int> loadStagex;
65  int matN;
66  mutable int e2p;
67 
68  int sendData(Communicator &);
69  int recvData(const Communicator &);
70  void resizeIfNeeded(void);
71  public:
72  // Initialization constructor
73  SoilMaterialBase(int tag, int classTag);
74 
75  inline int getDimension(void) const
76  { return ndmx[matN]; }
77  void setDimension(const int &);
78  const std::string &getType(void) const;
79  int getOrder(void) const;
80 
81  int getMaterialStage(void) const;
82  void setMaterialStage(const int &);
83  void updateMaterialStage(int);
84 
85  void Print(std::ostream &s, int flag =0) const;
86  };
87 } // end of XC namespace
88 
89 #endif
Material that couples the responses of two phases: fluid and solid.
Definition: SoilMaterialBase.h:59
Communication parameters between processes.
Definition: Communicator.h:66
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: SoilMaterialBase.cc:126
void updateMaterialStage(int)
Update material stage.
Definition: SoilMaterialBase.cc:81
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: SoilMaterialBase.cc:134
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: SoilMaterialBase.cc:143
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int getMaterialStage(void) const
return the material stage (0:elastic 1:plastic).
Definition: SoilMaterialBase.cc:73