Skip to content
Snippets Groups Projects
Commit ec58d035 authored by matti2's avatar matti2
Browse files

BUG: Stoppingprofile failed due to wrong dimensions

parent 28c8d896
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment