Skip to content
Snippets Groups Projects
Commit 7552608e authored by Robin Kamenicky's avatar Robin Kamenicky Committed by Andrew Heather
Browse files

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

parent 85786c69
Branches
Tags
1 merge request!530BUG: 2022-1: Various bug fixes
......@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2018-2019 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
Copyright (C) 2020-2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -126,7 +126,7 @@ void Foam::diameterModels::linearTsub::correct()
const volScalarField Tsub
(
liquid.thermo().T() - satModel.Tsat(liquid.thermo().p())
satModel.Tsat(liquid.thermo().p()) - liquid.thermo().T()
);
d_ = max
......@@ -135,7 +135,7 @@ void Foam::diameterModels::linearTsub::correct()
min
(
d2_,
(d1_*(Tsub - Tsub2_) + d2_*(Tsub - Tsub1_))/(Tsub2_ - Tsub1_)
(d1_*(Tsub - Tsub2_) - d2_*(Tsub - Tsub1_))/(Tsub1_ - Tsub2_)
)
);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment