RanzMarshall.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011 OpenFOAM Foundation
9 Copyright (C) 2021 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
29#include "RanzMarshall.H"
30
31// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32
33template<class CloudType>
35(
36 const dictionary& dict,
38)
39:
41 a_(this->coeffDict().template getOrDefault<scalar>("a", 2.0)),
42 b_(this->coeffDict().template getOrDefault<scalar>("b", 0.6)),
43 m_(this->coeffDict().template getOrDefault<scalar>("m", 1.0/2.0)),
44 n_(this->coeffDict().template getOrDefault<scalar>("n", 1.0/3.0))
45{}
46
47
48template<class CloudType>
50:
52 a_(htm.a_),
53 b_(htm.b_),
54 m_(htm.m_),
55 n_(htm.n_)
56{}
57
58
59// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
60
61template<class CloudType>
63(
64 const scalar Re,
65 const scalar Pr
66) const
67{
68 // (AOB:p. 18 below Eq. 42)
69 return a_ + b_*pow(Re, m_)*pow(Pr, n_);
70}
71
72
73// ************************************************************************* //
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:75
Templated class to calculate the fluid-particle heat transfer coefficients based on a specified Nusse...
Nusselt-number model using the empirical Ranz-Marshall correlation to be used in modelling of the flu...
Definition: RanzMarshall.H:226
virtual scalar Nu(const scalar Re, const scalar Pr) const
Return Nusselt number.
Definition: RanzMarshall.C:63
A cloud is a registry collection of lagrangian particles.
Definition: cloud.H:60
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dictionary dict
dimensionedScalar Pr("Pr", dimless, laminarTransport)