Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
20267c68
Commit
20267c68
authored
Aug 07, 2017
by
Andrew Heather
Browse files
BUG: Corrected false integer divisions. Fixes
#557
parent
9b05e436
Changes
7
Hide whitespace changes
Inline
Side-by-side
applications/solvers/multiphase/reactingEulerFoam/interfacialModels/dragModels/Ergun/Ergun.C
View file @
20267c68
...
...
@@ -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
...
...
applications/solvers/multiphase/reactingEulerFoam/interfacialModels/dragModels/Gibilaro/Gibilaro.C
View file @
20267c68
...
...
@@ -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
);
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/dragModels/Ergun/Ergun.C
View file @
20267c68
...
...
@@ -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
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/dragModels/Gibilaro/Gibilaro.C
View file @
20267c68
...
...
@@ -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
);
...
...
applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/SpaldingsLaw/SpaldingsLaw.C
View file @
20267c68
...
...
@@ -91,7 +91,7 @@ void Foam::tabulatedWallFunctions::SpaldingsLaw::invertFunction()
(
2
*
E_
*
uPlus
+
exp
(
kUPlus
)
*
(
kUPlus
+
1
)
-
2
/
3
*
pow3
(
kUPlus
)
-
2
.
0
/
3
.
0
*
pow3
(
kUPlus
)
-
1
.
5
*
sqr
(
kUPlus
)
-
2
*
kUPlus
-
1
...
...
src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C
View file @
20267c68
...
...
@@ -128,13 +128,13 @@ void Foam::functionObjects::thermoCoupleProbes::derivatives
scalarField
Re
(
rhoc
*
Uc
*
d_
/
muc
);
scalarField
Pr
(
Cpc
*
muc
/
kappac
);
Pr
=
max
(
ROOTVSMALL
,
Pr
);
scalarField
Nu
(
2
.
0
+
(
0
.
4
*
sqrt
(
Re
)
+
0
.
06
*
pow
(
Re
,
2
/
3
))
*
pow
(
Pr
,
0
.
4
));
scalarField
Nu
(
2
.
0
+
(
0
.
4
*
sqrt
(
Re
)
+
0
.
06
*
pow
(
Re
,
2
.
0
/
3
.
0
))
*
pow
(
Pr
,
0
.
4
));
scalarField
htc
(
Nu
*
kappac
/
d_
);
const
scalar
sigma
=
physicoChemical
::
sigma
.
value
();
scalar
area
=
4
*
constant
::
mathematical
::
pi
*
sqr
(
0
.
5
*
d_
);
scalar
volume
=
(
4
/
3
)
*
constant
::
mathematical
::
pi
*
pow3
(
0
.
5
*
d_
);
scalar
volume
=
(
4
.
0
/
3
.
0
)
*
constant
::
mathematical
::
pi
*
pow3
(
0
.
5
*
d_
);
dydx
=
(
epsilon_
*
(
G
/
4
-
sigma
*
pow4
(
y
))
*
area
+
htc
*
(
Tc
-
y
)
*
area
)
...
...
src/lagrangian/intermediate/submodels/Thermodynamic/SurfaceFilmModel/ThermoSurfaceFilm/ThermoSurfaceFilm.C
View file @
20267c68
...
...
@@ -318,7 +318,7 @@ void Foam::ThermoSurfaceFilm<CloudType>::wetSplashInteraction
const
scalar
epsilon
=
0
.
993
-
theta
*
(
1
.
76
-
theta
*
(
1
.
56
-
theta
*
0
.
49
));
// Update parcel velocity
U
=
-
epsilon
*
(
Un
)
+
5
/
7
*
(
Ut
);
U
=
-
epsilon
*
(
Un
)
+
5
.
0
/
7
.
0
*
(
Ut
);
keepParticle
=
true
;
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment