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-2023 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 phaseInterface;
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 interface, mass transfer rate
82  // (used only for it's sign), and interface temperature
83  virtual tmp<volScalarField> L
84  (
85  const phaseInterface& interface,
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 phaseInterface& interface,
95  const scalarField& dmdtf,
96  const scalarField& Tf,
97  const labelUList& cells,
99  ) const = 0;
100 
101  //- Return the latent heat for a given interface, specie, mass transfer
102  // rate (used only for it's sign), and interface temperature
103  virtual tmp<volScalarField> Li
104  (
105  const phaseInterface& interface,
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 phaseInterface& interface,
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 // ************************************************************************* //
Generic GeometricField class.
virtual tmp< volScalarField > L(const phaseInterface &interface, const volScalarField &dmdtf, const volScalarField &Tf, const latentHeatScheme scheme) const =0
Return the latent heat for a given interface, mass transfer rate.
TypeName("heatTransferPhaseSystem")
Runtime type information.
static const NamedEnum< latentHeatScheme, 2 > latentHeatSchemeNames_
Names of the latent heat schemes.
heatTransferPhaseSystem()
Default constructor.
latentHeatScheme
Enumeration for the latent heat scheme.
virtual ~heatTransferPhaseSystem()
Destructor.
virtual tmp< volScalarField > Li(const phaseInterface &interface, const word &member, const volScalarField &dmidtf, const volScalarField &Tf, const latentHeatScheme scheme) const =0
Return the latent heat for a given interface, specie, mass transfer.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
A class for managing temporary objects.
Definition: tmp.H:55
Upwind interpolation scheme class.
Definition: upwind.H:54
A class for handling words, derived from string.
Definition: word.H:62
const cellShapeList & cells
static tmp< surfaceInterpolationScheme< Type > > scheme(const surfaceScalarField &faceFlux, Istream &schemeData)
Return weighting factors for scheme given from Istream.
Namespace for OpenFOAM.
Forward declarations of the specialisations of Field<T> for scalar, vector and tensor.