Skip to content
Snippets Groups Projects
Commit bf69fa97 authored by Ludovic Noels's avatar Ludovic Noels
Browse files

add P = sig in export

parent ee18f955
No related branches found
No related tags found
1 merge request!310Master - transfer updates into WIP branch
......@@ -34,12 +34,18 @@ double IPNonLocalDamage::get(int comp) const
// if(comp == IPField::SIG_YY) return euler[1];
// if(comp == IPField::SIG_ZZ) return euler[2];
if(comp >= IPField::SIG_XX and comp<=IPField::SIG_XY )
return _nldStress(comp-1);
else if(comp==IPField::SIG_XZ) // order xx yy zz xy xz yz
return _nldStress(comp-2);
else if(comp==IPField::SIG_YZ)
return _nldStress(comp);
if(comp == IPField::SIG_XX || comp == IPField::P_XX)
return _nldStress(0);
else if(comp == IPField::SIG_YY || comp == IPField::P_YY)
return _nldStress(1);
else if(comp == IPField::SIG_ZZ || comp == IPField::P_ZZ)
return _nldStress(2);
else if(comp==IPField::SIG_XY || comp == IPField::P_XY || comp == IPField::P_YX) // order xx yy zz xy xz yz
return _nldStress(3);
else if(comp==IPField::SIG_XZ || comp == IPField::P_XZ || comp == IPField::P_ZX) // order xx yy zz xy xz yz
return _nldStress(4);
else if(comp==IPField::SIG_YZ || comp == IPField::P_YZ || comp == IPField::P_YZ) // order xx yy zz xy xz yz
return _nldStress(5);
else if(comp == IPField::SVM) // von Mises
{
......@@ -173,7 +179,7 @@ double IPNonLocalDamage::get(int comp) const
}
else
return 0.;
return 0.;
}
void IPNonLocalDamage::restart()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment