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

checkpoint test using all the norm instead of normal part

parent 9321ca8e
No related branches found
No related tags found
1 merge request!181Coal jl8
......@@ -413,14 +413,17 @@ void mlawNonLocalPorousCoupledLaw::checkCoalescence(IPNonLocalPorosity* q1, cons
// Get normal traction on the interface from tau stress
double sigmax = 0.;
static SVector3 Norm;
static SVector3 tractionForce;
Norm = q1->getConstRefToReferenceOutwardNormal();
if (Norm.norm() > 0){ // is it usefulll ???
Norm.normalize();
for (int i=0; i<3; i++){
tractionForce(i) = 0.;
for (int j=0; j<3; j++){
sigmax += Norm(i)*kCor(i,j)*Norm(j);
tractionForce(i) += kCor(i,j)*Norm(j);
}
}
sigmax = tractionForce.norm();
}
else{
Msg::Fatal("mlawNonLocalPorousCoupledLaw::updatePlasticState: zero normal");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment