NeoPZ
pznonlinearpoisson3d.h
Go to the documentation of this file.
1 
6 #ifndef MATNLPOISSON3DH
7 #define MATNLPOISSON3DH
8 
9 #include "pzpoisson3d.h"
10 #include "pzpoisson3dreferred.h"
11 
17 
18 protected:
19 
22 
25 
26 public:
27 
28  TPZNonLinearPoisson3d(int nummat, int dim);
29 
31 
32  virtual ~TPZNonLinearPoisson3d();
33 
34  bool IsReferred(){ return this->fIsReferred;}
35 
36  void SetReferred(bool Is){ this->fIsReferred = Is; }
37 
39  void SetSUPGStab(STATE sd = 1.0);
40 
42  void SetGradientStab(STATE sd = 1.0);
43 
46 
52  virtual void Contribute(TPZMaterialData &data,
53  REAL weight,
55  TPZFMatrix<STATE> &ef) override;
56 
64  virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix<STATE> &ef) override;
65 
66  virtual void ContributeBC(TPZMaterialData &data,
67  REAL weight,
70  TPZBndCond &bc) override;
71  virtual void ContributeBC(TPZMaterialData &data,
72  REAL weight,
74  TPZBndCond &bc) override
75  {
76  TPZMatPoisson3dReferred::ContributeBC(data,weight,ef,bc);
77  }
78 
79  virtual void ContributeInterface(TPZMaterialData &data, TPZMaterialData &dataleft, TPZMaterialData &dataright,
80  REAL weight,
82  TPZFMatrix<STATE> &ef) override;
83  virtual void ContributeInterface(TPZMaterialData &data, TPZMaterialData &dataleft, TPZMaterialData &dataright,
84  REAL weight,
85  TPZFMatrix<STATE> &ef) override
86  {
87  TPZMatPoisson3dReferred::ContributeInterface(data,dataleft,dataright,weight,ef);
88  }
89 
90  virtual void ContributeBCInterface(TPZMaterialData &data, TPZMaterialData &dataleft,
91  REAL weight,
94  TPZBndCond &bc) override;
95  virtual void ContributeBCInterface(TPZMaterialData &data, TPZMaterialData &dataleft,
96  REAL weight,
98  TPZBndCond &bc) override
99  {
100  TPZMatPoisson3dReferred::ContributeBCInterface(data,dataleft,weight,ef,bc);
101  }
102 
105 protected:
107  public:
108 int ClassId() const override;
109 
110 };
111 
112 #endif
virtual 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 SetGradientStab(STATE sd=1.0)
Define gradient stabilization term.
clarg::argBool bc("-bc", "binary checkpoints", false)
virtual void ContributeInterface(TPZMaterialData &data, TPZMaterialData &dataleft, TPZMaterialData &dataright, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
It computes a contribution to stiffness matrix and load vector at one integration point...
virtual void ContributeBCInterface(TPZMaterialData &data, TPZMaterialData &dataleft, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
Contains the TPZMatPoisson3d class.
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 BC integration point...
virtual void ContributeBCInterface(TPZMaterialData &data, TPZMaterialData &dataleft, REAL weight, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
It computes a contribution to residual vector at one BC integration point.
virtual void ContributeBCInterface(TPZMaterialData &data, TPZMaterialData &dataleft, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
This class defines the boundary condition for TPZMaterial objects.
Definition: pzbndcond.h:29
virtual void ContributeInterface(TPZMaterialData &data, TPZMaterialData &dataleft, TPZMaterialData &dataright, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
It computes a contribution to stiffness matrix and load vector at one integration point...
TPZNonLinearPoisson3d(int nummat, int dim)
Contains the TPZMatPoisson3dReferred class which implements a version of TPZMatPoisson3d (convection...
virtual void ContributeInterface(TPZMaterialData &data, TPZMaterialData &dataleft, TPZMaterialData &dataright, REAL weight, TPZFMatrix< STATE > &ef) override
It computes a contribution to residual vector at one integration point.
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 BC integration point...
EStabilizationType
Definitions of stabilization terms.
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...
void SetSUPGStab(STATE sd=1.0)
Define SUPG stabilization term.
This class implements a version of TPZMatPoisson3d where the convection term is given at each integr...
void SetNoStabilizationTerm()
Define no stabilization term.
int fStabilizationType
Stabilization term definition.
int ClassId() const override
Unique identifier for serialization purposes.