Skip to content
Snippets Groups Projects
Commit ca4a0e1a authored by Robin Kamenicky's avatar Robin Kamenicky Committed by Kutalmış Berçin
Browse files

BUG: linearTsubDiameter: fix the definition of bubble diameter (fixes #2312)

parent 0cbd8eab
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2018-2019 OpenFOAM Foundation Copyright (C) 2018-2019 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd. Copyright (C) 2020-2022 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -126,7 +126,7 @@ void Foam::diameterModels::linearTsub::correct() ...@@ -126,7 +126,7 @@ void Foam::diameterModels::linearTsub::correct()
const volScalarField Tsub const volScalarField Tsub
( (
liquid.thermo().T() - satModel.Tsat(liquid.thermo().p()) satModel.Tsat(liquid.thermo().p()) - liquid.thermo().T()
); );
d_ = max d_ = max
...@@ -135,7 +135,7 @@ void Foam::diameterModels::linearTsub::correct() ...@@ -135,7 +135,7 @@ void Foam::diameterModels::linearTsub::correct()
min min
( (
d2_, d2_,
(d1_*(Tsub - Tsub2_) + d2_*(Tsub - Tsub1_))/(Tsub2_ - Tsub1_) (d1_*(Tsub - Tsub2_) - d2_*(Tsub - Tsub1_))/(Tsub1_ - Tsub2_)
) )
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment