mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Corrected false integer divisions. Fixes #557
This commit is contained in:
@ -63,7 +63,7 @@ Foam::dragModels::Ergun::~Ergun()
|
||||
Foam::tmp<Foam::volScalarField> Foam::dragModels::Ergun::CdRe() const
|
||||
{
|
||||
return
|
||||
(4/3)
|
||||
(4.0/3.0)
|
||||
*(
|
||||
150
|
||||
*max
|
||||
|
||||
@ -68,7 +68,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::Gibilaro::CdRe() const
|
||||
);
|
||||
|
||||
return
|
||||
(4/3)
|
||||
(4.0/3.0)
|
||||
*(17.3/alpha2 + 0.336*pair_.Re())
|
||||
*max(pair_.continuous(), pair_.continuous().residualAlpha())
|
||||
*pow(alpha2, -2.8);
|
||||
|
||||
@ -63,7 +63,7 @@ Foam::dragModels::Ergun::~Ergun()
|
||||
Foam::tmp<Foam::volScalarField> Foam::dragModels::Ergun::CdRe() const
|
||||
{
|
||||
return
|
||||
(4/3)
|
||||
(4.0/3.0)
|
||||
*(
|
||||
150
|
||||
*max
|
||||
|
||||
@ -68,7 +68,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::Gibilaro::CdRe() const
|
||||
);
|
||||
|
||||
return
|
||||
(4/3)
|
||||
(4.0/3.0)
|
||||
*(17.3/alpha2 + 0.336*pair_.Re())
|
||||
*max(pair_.continuous(), pair_.continuous().residualAlpha())
|
||||
*pow(alpha2, -2.8);
|
||||
|
||||
Reference in New Issue
Block a user