25 int numbersol = data.
sol.
size();
35 const int nshape = phi.
Rows();
36 const STATE E = this->
fE;
44 const STATE DeltaT = FinalTemp - RefTemp;
47 const STATE ThermalStress = DeltaT * E * Gamma / (1.-2.*nu);
50 for(i = 0; i < nshape; i++) {
51 for(k = 0; k < 3; k++){
52 ef(i*3+k, 0) += weight * dphi(k, i) * ThermalStress;
72 const STATE DeltaT = FinalTemp - RefTemp;
75 const STATE ThermalStrain = DeltaT * Gamma;
76 for(
int it = 0; it < 3; it++) DSol(it,it) += -1. * ThermalStrain;
Contains the TPZThermicElast3D class which implements a 3D isotropic elasticity material with thermal...
virtual void Solution(TPZVec< STATE > &Sol, TPZFMatrix< STATE > &DSol, TPZFMatrix< REAL > &axes, int var, TPZVec< STATE > &Solout) override
Post-processing method. Based on solution Sol and its derivatives DSol, it computes the post-processe...
This class implements a 3D isotropic elasticity material with thermal stress.
This class implements a 3D isotropic elasticity material.
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...
STATE fThermalCoeff
Thermal expansion coefficient of the material.
TPZFNMatrix< 220, REAL > phi
vector of shapefunctions (format is dependent on the value of shapetype)
virtual int ClassId() const override
Define the class id associated with the class.
bool IsReferredTemperatureField()
TPZFNMatrix< 660, REAL > dphix
values of the derivative of the shape functions
int64_t size() const
Returns the number of elements of the vector.
#define DebugStop()
Returns a message to user put a breakpoint in.
TPZThermicElast3D(int nummat, STATE ThermalCoeff, STATE RefTemp, STATE E, STATE poisson, TPZVec< STATE > &force)
Class constructor.
void ContributeThermalStress(TPZVec< STATE > &sol, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi, REAL weight, TPZFMatrix< STATE > &ef)
int64_t Rows() const
Returns number of rows.
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
Contribute to stiff matrix and load vector.
void SetReferredTemperatureField()
virtual ~TPZThermicElast3D()
Default destructor.
int32_t Hash(std::string str)
STATE fRefTemperature
Temperature of reference. The thermal stress is given by the difference of the temperature field to t...
int ClassId() const override
Define the class id associated with the class.
STATE fPoisson
Poisson's ratio.
virtual void Solution(TPZVec< STATE > &Sol, TPZFMatrix< STATE > &DSol, TPZFMatrix< REAL > &axes, int var, TPZVec< STATE > &Solout) override
Post-processing method. Based on solution Sol and its derivatives DSol, it computes the post-processe...
STATE fE
Young's modulus.
STATE fFinalTemperature
When solving problem with a constant field of temperature (fReferred = false) fFinalTemperature is t...
TPZSolVec sol
vector of the solutions at the integration point