Skip to content
Snippets Groups Projects
Commit 58349ccc authored by Ujwal Kishore Jinaga's avatar Ujwal Kishore Jinaga :clown:
Browse files

Revert "minorAdds"

This reverts commit ca7355c2
parent ca7355c2
No related branches found
No related tags found
1 merge request!375Revert "minorAdds"
...@@ -274,7 +274,7 @@ void mlawNonLinearTVE::setViscoElasticData_Bulk(const int i, const double Ki, co ...@@ -274,7 +274,7 @@ void mlawNonLinearTVE::setViscoElasticData_Bulk(const int i, const double Ki, co
_temFunc_Ki[i-1] = new constantScalarFunction(1.); _temFunc_Ki[i-1] = new constantScalarFunction(1.);
// Msg::Info("setting: element=%d Ki = %e ki = %e, ",i-1,Ki,ki); Msg::Info("setting: element=%d Ki = %e ki = %e, ",i-1,Ki,ki);
} }
}; };
...@@ -289,7 +289,7 @@ void mlawNonLinearTVE::setViscoElasticData_Shear(const int i, const double Gi, c ...@@ -289,7 +289,7 @@ void mlawNonLinearTVE::setViscoElasticData_Shear(const int i, const double Gi, c
_temFunc_Gi[i-1] = new constantScalarFunction(1.); _temFunc_Gi[i-1] = new constantScalarFunction(1.);
_temFunc_Alphai[i-1] = new constantScalarFunction(1.); _temFunc_Alphai[i-1] = new constantScalarFunction(1.);
// Msg::Info("setting: element=%d Gi = %e gi = %e, ",i-1,Gi,gi); Msg::Info("setting: element=%d Gi = %e gi = %e, ",i-1,Gi,gi);
} }
}; };
......
...@@ -1113,7 +1113,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3& ...@@ -1113,7 +1113,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
double kk = 1./sqrt(1.+2.*q1->_nup*q1->_nup); double kk = 1./sqrt(1.+2.*q1->_nup*q1->_nup);
// double Gamma = 0.; // flow rule parameter // double Gamma = 0.; // flow rule parameter
double& Gamma = q1->_Gamma; // flow rule parameter // still initialised to zero double& Gamma = q1->_Gamma; // flow rule parameter
double PhiEq = PhiEqpr; // current effective deviator double PhiEq = PhiEqpr; // current effective deviator
...@@ -1122,21 +1122,13 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3& ...@@ -1122,21 +1122,13 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
static fullVector<double> a(3), Da(3); // yield coefficients and derivatives in respect to plastic deformation static fullVector<double> a(3), Da(3); // yield coefficients and derivatives in respect to plastic deformation
this->getYieldCoefficients(q1,a); this->getYieldCoefficients(q1,a);
double Hb(0.), dHb(0.), dHbdT(0.), ddHbddT(0.); double Hb(0.), dHbdT(0.), ddHbddT(0.);
if (q1->_ipKinematic != NULL){ if (q1->_ipKinematic != NULL){
Hb = q1->_ipKinematic->getDR(); // kinematic hardening parameter Hb = q1->_ipKinematic->getDR(); // kinematic hardening parameter
dHb = q1->_ipKinematic->getDDR(); // kinematic hardening parameter
dHbdT = Hb * q1->_ipKinematic->getDRDT(); // make sure to normalise DRDT while defining in python file //NEW dHbdT = Hb * q1->_ipKinematic->getDRDT(); // make sure to normalise DRDT while defining in python file //NEW
ddHbddT = Hb * q1->_ipKinematic->getDDRDDT(); ddHbddT = Hb * q1->_ipKinematic->getDDRDDT();
} }
static fullVector<double> m(2);
getChabocheCoeffs(m,0,q1);
double Cx(0.), Px(0.);
getPlasticPotential(ptilde, PhiEq, Px); // CHANGET
double Gt = Ge + pow(kk,1) * Hb/(2*Cx); // pow(kk,2) CHANGE
double Kt = Ke + pow(kk,1) * Hb/(3*Cx); // pow(kk,2) CHANGE
//a.print("a init"); //a.print("a init");
static STensor3 devN; // dev part of yield normal static STensor3 devN; // dev part of yield normal
...@@ -1156,7 +1148,14 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3& ...@@ -1156,7 +1148,14 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
double dDgammaDGamma = 0.; double dDgammaDGamma = 0.;
double Dgamma = 0.; // eqplastic strain double Dgamma = 0.; // eqplastic strain
Cx = m(0)*Dgamma + m(1)*Px - 1/Hb * dHbdT * (T-T0) + 1; // CHECK -> CHANGED m(0)*(q0->_epsbarre + Dgamma) and no del
static fullVector<double> m(2);
getChabocheCoeffs(m,0,q1);
double Cx(0.), Px(0.);
getPlasticPotential(ptilde, PhiEq, Px);
Cx = m(0)*(q0->_epspbarre + Dgamma) + m(1)*Px - 1/Hb * dHbdT + 1;
double Gt = Ge + pow(kk,1) * Hb/(2*Cx); // pow(kk,2) CHANGE
double Kt = Ke + pow(kk,1) * Hb/(3*Cx); // pow(kk,2) CHANGE
if (q1->dissipationIsBlocked()){ if (q1->dissipationIsBlocked()){
q1->getRefToDissipationActive() = false; q1->getRefToDissipationActive() = false;
...@@ -1187,8 +1186,8 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3& ...@@ -1187,8 +1186,8 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
double dCxdDgamma = m(0); double dCxdDgamma = m(0);
double Stemp = STensorOperation::doubledot(devPhi,devXn); double Stemp = STensorOperation::doubledot(devPhi,devXn);
double He = (PhiEq*6*Gamma*kk*kk*Hb - Stemp*3.*1./PhiEq)/(2*Cx*Cx*u) * dCxdDgamma; // CHECK -> CHANGE double He = (PhiEq*6*Gamma*kk*kk*Hb - Stemp*3.*1./PhiEq)/(2*Cx*Cx*u) * dCxdDgamma;
double Hp = ptilde*(2*_b*Gamma*kk*kk*Hb - trXn)/(3*Cx*Cx*v) * dCxdDgamma; // CHECK double Hp = ptilde*(2*_b*Gamma*kk*kk*Hb - trXn)/(3*Cx*Cx*v) * dCxdDgamma;
dfdDgamma += a(2)*_n*pow(PhiEq,(_n-1))*He - a(1)*Hp; dfdDgamma += a(2)*_n*pow(PhiEq,(_n-1))*He - a(1)*Hp;
if (Gamma>0 and etaOverDt>0) if (Gamma>0 and etaOverDt>0)
...@@ -1404,6 +1403,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3& ...@@ -1404,6 +1403,7 @@ void mlawNonLinearTVP::predictorCorrector_TVP_nonAssociatedFlow(const STensor3&
//2. get DCeprDCepr and DCeinvprDCepr //2. get DCeprDCepr and DCeinvprDCepr
static STensor43 DCeprDCepr, DCeinvprDCepr; static STensor43 DCeprDCepr, DCeinvprDCepr;
DCeprDCepr = _I4; DCeprDCepr = _I4;
for (int i=0; i<3; i++) for (int i=0; i<3; i++)
for (int s=0; s<3; s++) for (int s=0; s<3; s++)
for (int k=0; k<3; k++) for (int k=0; k<3; k++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment