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 -------------------------------------------------------------------------------
11 License
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 
33 template<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 
48 template<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 
61 template<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 // ************************************************************************* //
Foam::HeatTransferModel
Templated class to calculate the fluid-particle heat transfer coefficients based on a specified Nusse...
Definition: ThermoCloud.H:59
Pr
dimensionedScalar Pr("Pr", dimless, laminarTransport)
Foam::pow
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Definition: dimensionedScalar.C:75
Foam::DSMCCloud
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:71
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::RanzMarshall
Nusselt-number model using the empirical Ranz-Marshall correlation to be used in modelling of the flu...
Definition: RanzMarshall.H:223
Foam::cloud
A cloud is a registry collection of lagrangian particles.
Definition: cloud.H:57
Foam::RanzMarshall::RanzMarshall
RanzMarshall(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
Definition: RanzMarshall.C:35
RanzMarshall.H
Foam::Re
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
Foam::RanzMarshall::Nu
virtual scalar Nu(const scalar Re, const scalar Pr) const
Return Nusselt number.
Definition: RanzMarshall.C:63