Removed unintended integer divisions
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -68,7 +68,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::Gibilaro::CdRe() const
|
|||||||
);
|
);
|
||||||
|
|
||||||
return
|
return
|
||||||
(4/3)
|
(4.0/3.0)
|
||||||
*(17.3/alpha2 + 0.336*pair_.Re())
|
*(17.3/alpha2 + 0.336*pair_.Re())
|
||||||
*max(pair_.continuous(), pair_.continuous().residualAlpha())
|
*max(pair_.continuous(), pair_.continuous().residualAlpha())
|
||||||
*pow(alpha2, -2.8);
|
*pow(alpha2, -2.8);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -68,7 +68,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::Gibilaro::CdRe() const
|
|||||||
);
|
);
|
||||||
|
|
||||||
return
|
return
|
||||||
(4/3)
|
(4.0/3.0)
|
||||||
*(17.3/alpha2 + 0.336*pair_.Re())
|
*(17.3/alpha2 + 0.336*pair_.Re())
|
||||||
*max(pair_.continuous(), pair_.continuous().residualAlpha())
|
*max(pair_.continuous(), pair_.continuous().residualAlpha())
|
||||||
*pow(alpha2, -2.8);
|
*pow(alpha2, -2.8);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -91,7 +91,7 @@ void Foam::tabulatedWallFunctions::SpaldingsLaw::invertFunction()
|
|||||||
(
|
(
|
||||||
2*E_*uPlus
|
2*E_*uPlus
|
||||||
+ exp(kUPlus)*(kUPlus + 1)
|
+ exp(kUPlus)*(kUPlus + 1)
|
||||||
- 2/3*pow3(kUPlus)
|
- 2.0/3.0*pow3(kUPlus)
|
||||||
- 1.5*sqr(kUPlus)
|
- 1.5*sqr(kUPlus)
|
||||||
- 2*kUPlus
|
- 2*kUPlus
|
||||||
- 1
|
- 1
|
||||||
|
|||||||
@ -318,7 +318,7 @@ void Foam::ThermoSurfaceFilm<CloudType>::wetSplashInteraction
|
|||||||
const scalar epsilon = 0.993 - theta*(1.76 - theta*(1.56 - theta*0.49));
|
const scalar epsilon = 0.993 - theta*(1.76 - theta*(1.56 - theta*0.49));
|
||||||
|
|
||||||
// Update parcel velocity
|
// Update parcel velocity
|
||||||
U = -epsilon*(Un) + 5/7*(Ut);
|
U = -epsilon*(Un) + 5.0/7.0*(Ut);
|
||||||
|
|
||||||
keepParticle = true;
|
keepParticle = true;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user