NeoPZ
TPZElasticity2DHybrid.h
Go to the documentation of this file.
1 
6 #ifndef TPZELASTICITYMATERIAL2DHYBRID
7 #define TPZELASTICITYMATERIAL2DHYBRID
8 
9 #include <iostream>
10 
11 #include "TPZMaterial.h"
12 #include "pzelasmat.h"
13 
14 
20 
21  public :
22 
34  TPZElasticity2DHybrid(int id, REAL E, REAL nu, REAL fx, REAL fy, int planestress = 1);
35 
36  TPZElasticity2DHybrid(int id);
37 
40 
42  virtual TPZMaterial * NewMaterial() override { return new TPZElasticity2DHybrid(*this);}
43 
45  virtual ~TPZElasticity2DHybrid();
46 
51  virtual void Contribute(TPZVec<TPZMaterialData> &data,REAL weight,TPZFMatrix<STATE> &ek,TPZFMatrix<STATE> &ef) override;
52 
54  virtual void ContributeBC(TPZMaterialData &data,REAL weight,
56 
67  // virtual void ContributeBC(TPZVec<TPZMaterialData> &datavec, REAL weight, TPZFMatrix<STATE> &ek, TPZFMatrix<STATE> &ef, TPZBndCond &bc);
68 
69 
78  // virtual void Solution(TPZVec<TPZMaterialData> &datavec, int var, TPZVec<STATE> &Solout);
79 
82 // virtual void Errors(TPZVec<TPZMaterialData> &data, TPZVec<STATE> &u_exact, TPZFMatrix<STATE> &du_exact, TPZVec<REAL> &errors)
83 // {
84 // TPZDiscontinuousGalerkin::Errors(data[0],u_exact,du_exact,errors);
85 // }
86 
87 public:
88 
89 
90  public:
91 int ClassId() const override;
92 
93 
94  void Read(TPZStream &buf, void *context) override;
95 
96  void Write(TPZStream &buf, int withclassid) const override;
97 
98 };
99 
100 #endif
void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
TPZElasticity2DHybrid()
Default constructor.
clarg::argBool bc("-bc", "binary checkpoints", false)
This class implements a simple vector storage scheme for a templated class T. Utility.
Definition: pzgeopoint.h:19
void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
This abstract class defines the behaviour which each derived class needs to implement.
Definition: TPZMaterial.h:39
int ClassId() const override
Returns the solution associated with the var index based on the finite element approximation.
virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
Applies the element boundary conditions.
This class defines the boundary condition for TPZMaterial objects.
Definition: pzbndcond.h:29
virtual ~TPZElasticity2DHybrid()
Default destructor.
Contains the TPZElasticityMaterial class which implements a two dimensional elastic material in plane...
REAL E()
Returns the elasticity modulus E.
Definition: pzelasmat.h:220
virtual void Contribute(TPZVec< TPZMaterialData > &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
Calculates the element stiffness matrix - simulate compaction as aditional variable.
virtual TPZMaterial * NewMaterial() override
Creates a new material from the current object ??
This class implements a two dimensional elastic material in plane stress or strain.
Definition: pzelasmat.h:19
This class implements a two dimensional elastic material in plane stress or strain.
Defines the interface for saving and reading data. Persistency.
Definition: TPZStream.h:50