Skip to content
Permalink
Browse files

driftFluxFoam::BinghamPlastic: added limiter to avoid floating point …

…exception for high phase fraction

Patch contributed by Juho Peltola, VTT.
  • Loading branch information...
Henry Weller
Henry Weller committed Sep 27, 2018
1 parent 441b7e0 commit 6388a1d5d0becee4b29f71b13b4bb6af32614f9f
@@ -93,8 +93,12 @@ Foam::mixtureViscosityModels::BinghamPlastic::mu
pow
(
scalar(10),
yieldStressExponent_
*(max(alpha_, scalar(0)) + yieldStressOffset_)
min
(
log10(vGreat),
yieldStressExponent_
*(max(alpha_, scalar(0)) + yieldStressOffset_)
)
)
- pow
(

0 comments on commit 6388a1d

Please sign in to comment.
You can’t perform that action at this time.