Skip to content
Snippets Groups Projects
Commit 6fcf9165 authored by Julien Leclerc's avatar Julien Leclerc
Browse files

correct method 3

parent 9dd1cc0c
No related branches found
No related tags found
1 merge request!147Coal jl8
......@@ -129,9 +129,12 @@ double mlawNonLocalPorousThomasonLaw::yieldFunction(const double kcorEq, const d
// Get values in ipvs
double Cft = q1->getConstRefToIPCoalescence().getConcentrationFactor();
double CftOffset = q0->getConstRefToIPCoalescence().getCrackOffsetOnCft();
if (_CfTOffsetMethod==2 or _CfTOffsetMethod==3){
if (_CfTOffsetMethod==2){
if (!q0->getConstRefToIPCoalescence().getCoalescenceOnsetFlag()){CftOffset = 1.;};
};
}
else if (_CfTOffsetMethod==3){
if (!q0->getConstRefToIPCoalescence().getCoalescenceActiveFlag()){CftOffset = 1.;};
}
double R0 = _j2IH->getYield0();
if (_roundedMethod == 1){
......
......@@ -501,7 +501,7 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
if (_CfTOffsetMethod == 3){
q1Thom->getRefToCrackOffsetOnCft() = 1. + yieldThomason*R0/(Cft*R);
if (q1Thom->getRefToCrackOffsetOnCft() > 2.){Msg::Error("High value of Cft Offset = %e",q1Thom->getRefToCrackOffsetOnCft());};
if (q1Thom->getRefToCrackOffsetOnCft() > 2.){Msg::Error("High predicted value of Cft Offset = %e",q1Thom->getRefToCrackOffsetOnCft());};
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment