ThermalPhaseChangePhaseSystem.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) 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::ThermalPhaseChangePhaseSystem
26 
27 Description
28  Class to provide interfacial heat and mass transfer between a number of
29  phases according the interfacial temperature approximated by the saturation
30  temperature.
31 
32  Currently only a single specified specie is considered volatile and changes
33  phase, all other species are considered nonvolatile and do not
34  affect the mass-transfer.
35 
36 SourceFiles
37  ThermalPhaseChangePhaseSystem.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef ThermalPhaseChangePhaseSystem_H
42 #define ThermalPhaseChangePhaseSystem_H
43 
45 #include "saturationModel.H"
46 #include "Switch.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class ThermalPhaseChangePhaseSystem Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 template<class BasePhaseSystem>
59 :
60  public HeatAndMassTransferPhaseSystem<BasePhaseSystem>
61 {
62 
63 protected:
64 
65  // Protected data
66 
67  //- Name of the volatile specie
69 
70  //- The saturation model used to evaluate Tsat = Tf
72 
73  // Mass transfer enabled
75 
76  //- Interfacial Mass transfer rate
78  iDmdt_;
79 
80  //- Wall Mass transfer rate
82  wDmdt_;
83 
84 
85 public:
86 
87  // Constructors
88 
89  //- Construct from fvMesh
91 
92 
93  //- Destructor
95 
96 
97  // Member Functions
98 
99  //- Return the saturationModel
100  const saturationModel& saturation() const;
101 
102  //- Return the mass transfer matrices
104 
105  //- Correct the thermodynamics
106  virtual void correctThermo();
107 
108  //- Read base phaseProperties dictionary
109  virtual bool read();
110 };
111 
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #ifdef NoRepository
121 #endif
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
HashPtrTable< volScalarField, phasePairKey, phasePairKey::hash > iDmdt_
Interfacial Mass transfer rate.
virtual autoPtr< phaseSystem::massTransferTable > massTransfer() const
Return the mass transfer matrices.
const saturationModel & saturation() const
Return the saturationModel.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Class to provide interfacial heat and mass transfer between a number of phases according the interfac...
word volatile_
Name of the volatile specie.
autoPtr< saturationModel > saturationModel_
The saturation model used to evaluate Tsat = Tf.
virtual ~ThermalPhaseChangePhaseSystem()
Destructor.
A class for handling words, derived from string.
Definition: word.H:59
Base class to support interfacial heat and mass transfer between a number of phases.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
Definition: Switch.H:60
HashPtrTable< volScalarField, phasePairKey, phasePairKey::hash > wDmdt_
Wall Mass transfer rate.
Namespace for OpenFOAM.
virtual void correctThermo()
Correct the thermodynamics.
ThermalPhaseChangePhaseSystem(const fvMesh &)
Construct from fvMesh.
virtual bool read()
Read base phaseProperties dictionary.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117