NeoPZ
TPZReynoldsFlow.h
Go to the documentation of this file.
1 //
2 // TPZReynoldsFlow.h
3 // PZ
4 //
5 // Created by Cesar Lucci on 06/02/13.
6 //
7 //
8 
9 #ifndef __PZ__TPZReynoldsFlow__
10 #define __PZ__TPZReynoldsFlow__
11 
12 #include <iostream>
13 
14 
15 #include "TPZMaterial.h"
16 
28 {
29 public:
30 
32  TPZReynoldsFlow(int matId, REAL visc, REAL deltaT, REAL StaticPotential);
34  virtual ~TPZReynoldsFlow();
35 
37  {
38  f_nplus1Computation = false;
39  }
41  {
42  f_nplus1Computation = true;
43  }
44 
46  virtual int Dimension() const override;
47 
48 
50  virtual int NStateVariables() const override;
51 
60  virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix<STATE> &ek, TPZFMatrix<STATE> &ef) override;
61 
62 
70 // virtual void Contribute(TPZVec<TPZMaterialData> &datavec, REAL weight, TPZFMatrix<STATE> &ek, TPZFMatrix<STATE> &ef);
71  //Sera utilizado qdo for multifisico!!!
72 
73 
83  virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix<STATE> &ek, TPZFMatrix<STATE> &ef, TPZBndCond &bc) override;
84 
95  // virtual void ContributeBC(TPZVec<TPZMaterialData> &datavec, REAL weight, TPZFMatrix<STATE> &ek, TPZFMatrix<STATE> &ef, TPZBndCond &bc);
96  //Sera utilizado qdo for multifisico!!!
97 
98 
99 
100 
102  virtual TPZMaterial * NewMaterial() override;
103 
105  public:
106 virtual int ClassId() const override;
107 
108 
110  virtual void Write(TPZStream &buf, int withclassid) const override;
111 
113  virtual void Read(TPZStream &buf, void *context) override;
114 
115 private:
116  REAL f_visc;
117  REAL f_deltaT;
120 };
121 
122 #endif
123 
124 
125 
virtual void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
clarg::argBool bc("-bc", "binary checkpoints", false)
virtual ~TPZReynoldsFlow()
virtual void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
virtual int Dimension() const override
Returns the integrable dimension of the material.
This abstract class defines the behaviour which each derived class needs to implement.
This abstract class defines the behaviour which each derived class needs to implement.
Definition: TPZMaterial.h:39
virtual TPZMaterial * NewMaterial() override
It computes a contribution to the stiffness matrix and load vector at one BC integration point to mul...
This class defines the boundary condition for TPZMaterial objects.
Definition: pzbndcond.h:29
virtual 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...
virtual int ClassId() const override
Unique identifier for serialization purposes.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
void SetNplus1Computation()
Defines the interface for saving and reading data. Persistency.
Definition: TPZStream.h:50
virtual 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 integration point to multip...