RanzMarshallHeatTransfer.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2026 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
28 #include "coupledToThermalFluid.H"
29 #include "sphericalCoupled.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35 namespace Lagrangian
36 {
39  (
43  );
44 }
45 }
46 
47 
48 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
49 
51 Foam::Lagrangian::RanzMarshallHeatTransfer::calcH
52 (
53  const LagrangianModelRef& model,
54  const LagrangianSubMesh& subMesh
55 ) const
56 {
57  const clouds::spherical& sCloud = cloud<clouds::spherical>();
58  const clouds::sphericalCoupled& scCloud = cloud<clouds::sphericalCoupled>();
59  const clouds::coupledToThermalFluid& cctfCloud =
60  cloud<clouds::coupledToThermalFluid>();
61 
62  tmp<LagrangianSubScalarSubField> td = sCloud.d(model, subMesh);
63  const LagrangianSubScalarSubField& d = td();
64  const LagrangianSubScalarField& a = sCloud.a(model, subMesh);
65  const LagrangianSubScalarField& Re = scCloud.Re(model, subMesh);
66  const LagrangianSubScalarField& kappac = cctfCloud.kappac(model, subMesh);
67  const LagrangianSubScalarField& Prc = cctfCloud.Prc(model, subMesh);
68 
69  tmp<LagrangianSubScalarField> tNu(2 + 0.6*sqrt(Re)*cbrt(Prc));
70 
71  return a*tNu*kappac/d;
72 }
73 
74 
75 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
Base class for Lagrangian models.
Heat transfer model of Ranz and Marshall for spherical particles in a turbulent carrier flow.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
A class for managing temporary objects.
Definition: tmp.H:55
defineTypeNameAndDebug(collisionPhaseTransfer, 0)
addToRunTimeSelectionTable(LagrangianModel, collisionPhaseTransfer, dictionary)
Namespace for OpenFOAM.
void cbrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
LagrangianSubSubField< scalar > LagrangianSubScalarSubField
LagrangianSubField< scalar > LagrangianSubScalarField
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
scalarField Re(const UList< complex > &cf)
Definition: complexFields.C:97