1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
28 #include "RanzMarshall.H"
29 #include "addToRunTimeSelectionTable.H"
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
35 defineTypeNameAndDebug(RanzMarshall, 0);
37 addToRunTimeSelectionTable
46 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
48 Foam::RanzMarshall::RanzMarshall(const dictionary& dict)
50 heatTransferModel(dict),
51 heatDict_(dict.subDict(typeName + "Coeffs")),
52 preRePrFactor_(readScalar(heatDict_.lookup("preRePrFactor"))),
53 ReExponent_(readScalar(heatDict_.lookup("ReExponent"))),
54 PrExponent_(readScalar(heatDict_.lookup("PrExponent")))
58 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
60 Foam::RanzMarshall::~RanzMarshall()
64 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
66 bool Foam::RanzMarshall::heatTransfer() const
72 Foam::scalar Foam::RanzMarshall::Nu
74 const scalar ReynoldsNumber,
75 const scalar PrandtlNumber
81 *pow(ReynoldsNumber, ReExponent_)
82 *pow(PrandtlNumber, PrExponent_);
86 Foam::scalar Foam::RanzMarshall::relaxationTime
88 const scalar liquidDensity,
89 const scalar diameter,
90 const scalar liquidcL,
92 const scalar ReynoldsNumber,
93 const scalar PrandtlNumber
100 /(6.0*kappa*Nu(ReynoldsNumber, PrandtlNumber));
102 time = max(SMALL, time);
108 Foam::scalar Foam::RanzMarshall::fCorrection(const scalar z) const
115 correct = z/(exp(z) - 1.0);
124 // taylor-expansion of exp(z)...
125 correct = 1.0/(1+0.5*z);
132 // ************************************************************************* //