RanzMarshall.H
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-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::RanzMarshall
28 
29 Group
30  grpLagrangianIntermediateHeatTransferSubModels
31 
32 Description
33  The Ranz-Marshall correlation for heat transfer
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef RanzMarshall_H
38 #define RanzMarshall_H
39 
40 #include "HeatTransferModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class RanzMarshall Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 template<class CloudType>
52 class RanzMarshall
53 :
54  public HeatTransferModel<CloudType>
55 {
56 
57 public:
58 
59  //- Runtime type information
60  TypeName("RanzMarshall");
61 
62 
63  // Constructors
64 
65  //- Construct from dictionary
67 
68  //- Construct copy
70 
71  //- Construct and return a clone
73  {
75  (
76  new RanzMarshall<CloudType>(*this)
77  );
78  }
79 
80 
81  //- Destructor
82  virtual ~RanzMarshall();
83 
84 
85  // Member Functions
86 
87  // Evaluation
88 
89  //- Nusselt number
90  virtual scalar Nu
91  (
92  const scalar Re,
93  const scalar Pr
94  ) const;
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #ifdef NoRepository
105  #include "RanzMarshall.C"
106 #endif
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 #endif
111 
112 // ************************************************************************* //
Foam::RanzMarshall::TypeName
TypeName("RanzMarshall")
Runtime type information.
Foam::HeatTransferModel
Templated heat transfer model class.
Definition: ThermoCloud.H:59
Foam::RanzMarshall::clone
virtual autoPtr< HeatTransferModel< CloudType > > clone() const
Construct and return a clone.
Definition: RanzMarshall.H:71
Pr
dimensionedScalar Pr("Pr", dimless, laminarTransport)
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:121
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::RanzMarshall
The Ranz-Marshall correlation for heat transfer.
Definition: RanzMarshall.H:51
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
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:34
HeatTransferModel.H
Foam::Re
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
Foam::RanzMarshall::~RanzMarshall
virtual ~RanzMarshall()
Destructor.
Definition: RanzMarshall.C:53
Foam::RanzMarshall::Nu
virtual scalar Nu(const scalar Re, const scalar Pr) const
Nusselt number.
Definition: RanzMarshall.C:61