Skip to content
Snippets Groups Projects
Commit e965fa07 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Compute second derivative (ignored)

parent 29890363
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,20 @@ class RuinaFunction : public NiceFunction { ...@@ -73,6 +73,20 @@ class RuinaFunction : public NiceFunction {
return coefficient * normalStress * (a * std::log(eta * s) + mu); return coefficient * normalStress * (a * std::log(eta * s) + mu);
} }
/*
d/dx a * log(eta x) + mu
= a * 1/(eta x) * eta
= a/x
*/
double virtual second_deriv(double s) const {
if (eta * s < rho)
return 0;
else if (eta * s == rho)
return 37; // TODO: not differentiable;
else
return coefficient * normalStress * (a / s);
}
private: private:
double coefficient; double coefficient;
double a; double a;
......
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