heatTransferPhaseSystem.H
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) 2020 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::heatTransferPhaseSystem
26 
27 SourceFiles
28  heatTransferPhaseSystem.C
29 
30 \*---------------------------------------------------------------------------*/
31 
32 #ifndef heatTransferPhaseSystem_H
33 #define heatTransferPhaseSystem_H
34 
35 #include "NamedEnum.H"
36 #include "primitiveFieldsFwd.H"
37 #include "volFieldsFwd.H"
38 
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 
41 namespace Foam
42 {
43 
44 class phasePair;
45 
46 /*---------------------------------------------------------------------------*\
47  Class heatTransferPhaseSystem Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 {
52 public:
53 
54  //- Enumeration for the latent heat scheme
55  enum class latentHeatScheme
56  {
57  symmetric,
58  upwind
59  };
60 
61  //- Names of the latent heat schemes
63 
64 
65  //- Runtime type information
66  TypeName("heatTransferPhaseSystem");
67 
68 
69  // Constructors
70 
71  //- Default constructor
73 
74 
75  //- Destructor
76  virtual ~heatTransferPhaseSystem();
77 
78 
79  // Member Functions
80 
81  //- Return the latent heat for a given pair, mass transfer rate (used
82  // only for it's sign), and interface temperature
83  virtual tmp<volScalarField> L
84  (
85  const phasePair& pair,
86  const volScalarField& dmdtf,
87  const volScalarField& Tf,
89  ) const = 0;
90 
91  //- As above, but for a cell-set
92  virtual tmp<scalarField> L
93  (
94  const phasePair& pair,
95  const scalarField& dmdtf,
96  const scalarField& Tf,
97  const labelUList& cells,
99  ) const = 0;
100 
101  //- Return the latent heat for a given pair, specie, mass transfer rate
102  // (used only for it's sign), and interface temperature
103  virtual tmp<volScalarField> Li
104  (
105  const phasePair& pair,
106  const word& member,
107  const volScalarField& dmidtf,
108  const volScalarField& Tf,
110  ) const = 0;
111 
112  //- As above, but for a cell-set
113  virtual tmp<scalarField> Li
114  (
115  const phasePair& pair,
116  const word& member,
117  const scalarField& dmidtf,
118  const scalarField& Tf,
119  const labelUList& cells,
121  ) const = 0;
122 };
123 
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 } // End namespace Foam
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #endif
132 
133 // ************************************************************************* //
heatTransferPhaseSystem()
Default constructor.
static tmp< surfaceInterpolationScheme< Type > > scheme(const surfaceScalarField &faceFlux, Istream &schemeData)
Return weighting factors for scheme given from Istream.
virtual ~heatTransferPhaseSystem()
Destructor.
Forward declarations of the specialisations of Field<T> for scalar, vector and tensor.
const cellShapeList & cells
A class for handling words, derived from string.
Definition: word.H:59
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Definition: HashTable.H:60
latentHeatScheme
Enumeration for the latent heat scheme.
virtual tmp< volScalarField > Li(const phasePair &pair, const word &member, const volScalarField &dmidtf, const volScalarField &Tf, const latentHeatScheme scheme) const =0
Return the latent heat for a given pair, specie, mass transfer rate.
static const NamedEnum< latentHeatScheme, 2 > latentHeatSchemeNames_
Names of the latent heat schemes.
TypeName("heatTransferPhaseSystem")
Runtime type information.
Upwind differencing scheme class.
Definition: upwind.H:51
A class for managing temporary objects.
Definition: PtrList.H:53
virtual tmp< volScalarField > L(const phasePair &pair, const volScalarField &dmdtf, const volScalarField &Tf, const latentHeatScheme scheme) const =0
Return the latent heat for a given pair, mass transfer rate (used.
Namespace for OpenFOAM.