Commit ec58d035 authored by Matti Rauter's avatar Matti Rauter

BUG: Stoppingprofile failed due to wrong dimensions

parent 28c8d896
......@@ -81,7 +81,7 @@ Foam::depositionModels::Stoppingprofile::Sd() const
& Us_.oldTime()/(mag(Us_.oldTime()) + smallVel)
);
hUddt = min(hUddt, 0.);
hUddt = min(hUddt, dimensionedScalar("zero", hUddt.dimensions(), 0));
Sd_ = -a/(mag(Us_.oldTime())+smallVel)*hUddt;
Sd_ = max(Sd_, dimensionedScalar(dimVelocity));
Sd_ = min(Sd_, h_/Us_.db().time().deltaT());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment