Skip to content
Snippets Groups Projects
Commit e239a4ac authored by renchao.lu's avatar renchao.lu Committed by Dmitri Naumov
Browse files

prevent exception in case of Tnp = 0 when using Cohesive zone modelI.

parent aedd307e
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,11 @@ struct MaterialPropertiesParameters ...@@ -49,6 +49,11 @@ struct MaterialPropertiesParameters
double fracture_opening_at_residual_traction(double const t, double fracture_opening_at_residual_traction(double const t,
X const& x) const X const& x) const
{ {
if (peak_normal_traction(t, x)[0] == 0.0)
{
return 0.0;
}
return 2 * fracture_toughness(t, x)[0] / peak_normal_traction(t, x)[0]; return 2 * fracture_toughness(t, x)[0] / peak_normal_traction(t, x)[0];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment