Skip to content
Snippets Groups Projects
Commit b035523b authored by Tom Fischer's avatar Tom Fischer
Browse files

[MaL/Fluid/Viscosity] Fix derivation.

parent 8ee6d86d
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ public:
}
/**
* Get the partial differential of the viscosity with respect to
* Get the partial differential of the viscosity with respect to
* temperature.
* \param var_vals Variable values in an array. The order of its elements
* is given in enum class PropertyVariableType.
......@@ -81,7 +81,8 @@ public:
{
(void)var;
const double T = var_vals[static_cast<int>(PropertyVariableType::T)];
return -_mu0 * std::exp(-(T - _temperature_c) / _temperature_v);
return -_mu0 / _temperature_v *
std::exp(-(T - _temperature_c) / _temperature_v);
}
private:
......
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