heatTransferModel.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 | Copyright (C) 2011-2015 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 Class
25  Foam::heatTransferModel
26 
27 Description
28 
29 SourceFiles
30  heatTransferModel.C
31  newHeatTransferModel.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef heatTransferModel_H
36 #define heatTransferModel_H
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 #include "dictionary.H"
41 #include "phaseModel.H"
42 #include "runTimeSelectionTables.H"
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class heatTransferModel Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 {
53 protected:
54 
55  // Protected data
56 
60  const phaseModel& phase2_;
61 
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("heatTransferModel");
67 
68 
69  // Declare runtime construction
70 
72  (
73  autoPtr,
75  dictionary,
76  (
77  const dictionary& interfaceDict,
78  const volScalarField& alpha1,
79  const phaseModel& phase1,
80  const phaseModel& phase2
81  ),
82  (interfaceDict, alpha1, phase1, phase2)
83  );
84 
85 
86  // Constructors
87 
89  (
90  const dictionary& interfaceDict,
91  const volScalarField& alpha1,
92  const phaseModel& phase1,
93  const phaseModel& phase2
94  );
95 
96 
97  //- Destructor
98  virtual ~heatTransferModel();
99 
100 
101  // Selectors
102 
104  (
105  const dictionary& interfaceDict,
106  const volScalarField& alpha1,
107  const phaseModel& phase1,
108  const phaseModel& phase2
109  );
110 
111 
112  // Member Functions
113 
114  //- The heat-transfer function K used in the enthalpy eq.
115  // ddt(alpha1*rho1*ha) + ... = ... alpha1*alpha2*K*(Ta - Tb)
116  // ddt(alpha2*rho2*hb) + ... = ... alpha1*alpha2*K*(Tb - Ta)
117  // ********************************** NB! *****************************
118  // for numerical reasons alpha1 and alpha2 has been
119  // extracted from the heat-transfer function K,
120  // so you MUST divide K by alpha1*alpha2 when implementing the
121  // heat-transfer function
122  // ********************************** NB! *****************************
123  virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0;
124 };
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
phaseModel & phase1
Definition: createFields.H:12
const phaseModel & phase2_
phaseModel & phase2
Definition: createFields.H:13
heatTransferModel(const dictionary &interfaceDict, const volScalarField &alpha1, const phaseModel &phase1, const phaseModel &phase2)
const volScalarField & alpha1_
tmp< volScalarField > K() const
The heat transfer function K used in the enthalpy equation.
Macros to ease declaration of run-time selection tables.
declareRunTimeSelectionTable(autoPtr, heatTransferModel, dictionary,( const dictionary &interfaceDict, const volScalarField &alpha1, const phaseModel &phase1, const phaseModel &phase2 ),(interfaceDict, alpha1, phase1, phase2))
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Namespace for OpenFOAM.
TypeName("heatTransferModel")
Runtime type information.
Base class for film heat transfer models.
volScalarField & alpha1
Definition: createFields.H:15
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:53
const phaseModel & phase1_
const dictionary & interfaceDict_
static autoPtr< heatTransferModel > New(const dictionary &interfaceDict, const volScalarField &alpha1, const phaseModel &phase1, const phaseModel &phase2)
virtual ~heatTransferModel()
Destructor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
A class for managing temporary objects.
Definition: PtrList.H:118