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

finish implementation of cft offset method 0 and 1

parent dbd5bb44
No related branches found
No related tags found
1 merge request!128Coal jl8
...@@ -123,7 +123,12 @@ void mlawNonLocalPorousCoupledLaw::setOnsetTriaxialityForRoundedYieldSurface(con ...@@ -123,7 +123,12 @@ void mlawNonLocalPorousCoupledLaw::setOnsetTriaxialityForRoundedYieldSurface(con
void mlawNonLocalPorousCoupledLaw::setCfTOffsetMethod(const int MethodNumber){ void mlawNonLocalPorousCoupledLaw::setCfTOffsetMethod(const int MethodNumber){
_CfTOffsetMethod = MethodNumber; _CfTOffsetMethod = MethodNumber;
if (_CfTOffsetMethod == 0 or _CfTOffsetMethod == 1 or _CfTOffsetMethod == 2){
Msg::Info("mlawNonLocalPorousCoupledLaw::useCfTOffset: Offset method %d is used",_CfTOffsetMethod); Msg::Info("mlawNonLocalPorousCoupledLaw::useCfTOffset: Offset method %d is used",_CfTOffsetMethod);
}
else{
Msg::Fatal("mlawNonLocalPorousCoupledLaw::useCfTOffset: Offset method %d is not existing",_CfTOffsetMethod);
}
}; };
void mlawNonLocalPorousCoupledLaw::setCrackTransition(const bool fl){ void mlawNonLocalPorousCoupledLaw::setCrackTransition(const bool fl){
...@@ -388,6 +393,10 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons ...@@ -388,6 +393,10 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
// Check Thomason criterion: // Check Thomason criterion:
double yieldThomason = _mlawCoales->yieldFunction(kcorEq,pcor,R,yieldfV,q0,q1,T); double yieldThomason = _mlawCoales->yieldFunction(kcorEq,pcor,R,yieldfV,q0,q1,T);
/* check this value */ /* check this value */
if(_CfTOffsetMethod == 2)
{
q1Thom->getRefToCrackOffsetOnCft() = 1. + yieldThomason*R0/(Cft*R);
}
if ((sigmax - Cft*R > _tol) and (yieldThomason > _tol)){ if ((sigmax - Cft*R > _tol) and (yieldThomason > _tol)){
// If coalescence occurs, update Cft offset value and others variables // If coalescence occurs, update Cft offset value and others variables
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment