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

Fix RuinaFunction::evaluate()

parent 631f3a39
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ class RuinaFunction : public NiceFunction { ...@@ -58,7 +58,7 @@ class RuinaFunction : public NiceFunction {
void virtual evaluate(double const &x, double &y) const { void virtual evaluate(double const &x, double &y) const {
double const arg = std::max(eta * x / h, rho); double const arg = std::max(eta * x / h, rho);
double const r = arg * (a * (std::log(arg) - 1) + mu + compound_state); double const r = arg * (a * (std::log(arg) - 1) + mu + compound_state);
y = 1 / eta * normalStress * r + a * rho + mu + compound_state; y = 1 / eta * normalStress * (r + a * rho + mu + compound_state);
y *= coefficient; y *= coefficient;
y *= h; y *= h;
} }
......
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