NeoPZ
TPZPorousElasticity.h
Go to the documentation of this file.
1 
2 //
3 // TPZPorousElasticity.h
4 // pz
5 //
6 // Created by Omar DurĂ¡n on 4/13/18.
7 //
8 
9 #ifndef TPZPorousElasticity_h
10 #define TPZPorousElasticity_h
11 
12 #include <stdio.h>
13 #include "TPZMaterial.h"
14 #include <iostream>
15 
16 
18 
19 
20 public:
21 
22  virtual int ClassId() const override;
23 
25 
26  TPZPorousElasticity(int matid);
27 
29 
30  virtual ~TPZPorousElasticity();
31 
34  DebugStop();
35  }
36 
37 
38  void Print(std::ostream & out) override {
39  DebugStop();
40  }
41 
42  std::string Name() override { return "TPZPorousElasticity"; }
43 
44  int Dimension() const override {return 2;}
45 
46  virtual int NStateVariables() const override{
47  DebugStop();
48  return 0;
49  }
50 
52  {
53  DebugStop();
54  }
55 
56  void FillDataRequirements(TPZMaterialData &data) override {
57  DebugStop();
58  }
59 
60  void FillBoundaryConditionDataRequirement (int type, TPZMaterialData &data) override {
61  DebugStop();
62  }
63 
64 
65  void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix<STATE> &ek, TPZFMatrix<STATE> &ef) override {
66  DebugStop();
67  }
68 
69  void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix<STATE> &ef) override {
70  DebugStop();
71  }
72 
73  void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix<STATE> &ek,TPZFMatrix<STATE> &ef,TPZBndCond &bc) override {
74  DebugStop();
75  }
76  void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix<STATE> &ef,TPZBndCond &bc) override {
77  DebugStop();
78  }
79 
80  int VariableIndex(const std::string &name) override {
81  DebugStop();
82  return 0;
83  }
84 
85  int NSolutionVariables(int var) override {
86  DebugStop();
87  return 0;
88  }
89 
90  void Solution(TPZMaterialData &data, int var, TPZVec<STATE> &Solout) override {
91  DebugStop();
92  }
93 
94  void Solution(TPZMaterialData &data, TPZVec<TPZMaterialData> &dataleftvec, TPZVec<TPZMaterialData> &datarightvec, int var, TPZVec<STATE> &Solout, TPZCompEl * Left, TPZCompEl * Right) override {
95  DebugStop();
96  }
97 
101  void Write(TPZStream &buf, int withclassid) const override {
102  DebugStop();
103  }
104 
108  void Read(TPZStream &buf, void *context) override {
109  DebugStop();
110  }
111 
112 };
113 
114 
115 #endif /* TPZPorousElasticity_h */
virtual int ClassId() const override
Unique identifier for serialization purposes.
void Write(TPZStream &buf, int withclassid) const override
clarg::argBool bc("-bc", "binary checkpoints", false)
void FillBoundaryConditionDataRequirement(int type, TPZMaterialData &data) override
This method defines which parameters need to be initialized in order to compute the contribution of t...
void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
It computes a contribution to the stiffness matrix and load vector at one integration point...
int VariableIndex(const std::string &name) override
Returns the variable index associated with the name.
This abstract class defines the behaviour which each derived class needs to implement.
Definition: TPZMaterial.h:39
TPZPorousElasticity & operator=(const TPZPorousElasticity &copy)
void Solution(TPZMaterialData &data, TPZVec< TPZMaterialData > &dataleftvec, TPZVec< TPZMaterialData > &datarightvec, int var, TPZVec< STATE > &Solout, TPZCompEl *Left, TPZCompEl *Right) override
Returns the solution associated with the var index based on the finite element approximation around o...
#define DebugStop()
Returns a message to user put a breakpoint in.
Definition: pzerror.h:20
int Dimension() const override
Returns the integrable dimension of the material.
This class defines the boundary condition for TPZMaterial objects.
Definition: pzbndcond.h:29
void FillDataRequirements(TPZMaterialData &data) override
Fill material data parameter with necessary requirements for the.
void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
It computes a contribution to the stiffness matrix and load vector at one BC integration point...
void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
It computes a contribution to the stiffness matrix and load vector at one BC integration point...
void Read(TPZStream &buf, void *context) override
void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef) override
It computes a contribution to the residual vector at one integration point.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
void Solution(TPZMaterialData &data, int var, TPZVec< STATE > &Solout) override
Returns the solution associated with the var index based on the finite element approximation.
int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
void Print(std::ostream &out) override
Prints out the data associated with the material.
TPZPorousElasticity(const TPZPorousElasticity &cp)
Copy constructor.
std::string Name() override
Returns the name of the material.
Defines the interface for saving and reading data. Persistency.
Definition: TPZStream.h:50
Defines the interface of a computational element. Computational Element.
Definition: pzcompel.h:59