InterfaceCompositionPhaseChangePhaseSystem.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-2016 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::InterfaceCompositionPhaseChangePhaseSystem
26 
27 Description
28  Class to provide interfacial heat and mass transfer between a number of
29  phases according to a interface composition model.
30 
31  The interface temperature is calculated such that the net rate at which the
32  heat is transferred to the interface is equal to the latent heat consumed by
33  the mass transfer.
34 
35 SourceFiles
36  InterfaceCompositionPhaseChangePhaseSystem.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef InterfaceCompositionPhaseChangePhaseSystem_H
41 #define InterfaceCompositionPhaseChangePhaseSystem_H
42 
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 class interfaceCompositionModel;
51 
52 /*---------------------------------------------------------------------------*\
53  Class InterfaceCompositionPhaseChangePhaseSystem Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 template<class BasePhaseSystem>
58 :
59  public HeatAndMassTransferPhaseSystem<BasePhaseSystem>
60 {
61 protected:
62 
63  // Protected typedefs
64 
65  typedef HashTable
66  <
71 
72 
73  // Protected data
74 
75  // Sub Models
76 
77  //- Interface composition models
78  interfaceCompositionModelTable interfaceCompositionModels_;
79 
80 
81 public:
82 
83  // Constructors
84 
85  //- Construct from fvMesh
87 
88 
89  //- Destructor
91 
92 
93  // Member Functions
94 
95  //- Return the mass transfer matrices
97 
98  //- Correct the thermodynamics
99  virtual void correctThermo();
100 
101  //- Read base phaseProperties dictionary
102  virtual bool read();
103 };
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #ifdef NoRepository
114 #endif
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
virtual ~InterfaceCompositionPhaseChangePhaseSystem()
Destructor.
Base class to support interfacial heat and mass transfer between a number of phases.
InterfaceCompositionPhaseChangePhaseSystem(const fvMesh &)
Construct from fvMesh.
An STL-conforming hash table.
Definition: HashTable.H:61
virtual autoPtr< phaseSystem::massTransferTable > massTransfer() const
Return the mass transfer matrices.
HashTable< autoPtr< interfaceCompositionModel >, phasePairKey, phasePairKey::hash > interfaceCompositionModelTable
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:53
interfaceCompositionModelTable interfaceCompositionModels_
Interface composition models.
virtual bool read()
Read base phaseProperties dictionary.
Namespace for OpenFOAM.
Class to provide interfacial heat and mass transfer between a number of phases according to a interfa...
virtual void correctThermo()
Correct the thermodynamics.