HeatTransferPhaseSystem.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::HeatTransferPhaseSystem
26 
27 Description
28  Class which models interfacial heat transfer between a number of phases.
29 
30 SourceFiles
31  HeatTransferPhaseSystem.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef HeatTransferPhaseSystem_H
36 #define HeatTransferPhaseSystem_H
37 
38 #include "phaseSystem.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 class blendingMethod;
46 template<class modelType> class BlendedInterfacialModel;
47 class heatTransferModel;
48 
49 /*---------------------------------------------------------------------------*\
50  Class HeatTransferPhaseSystem Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 template<class BasePhaseSystem>
55 :
56  public BasePhaseSystem
57 {
58 protected:
59 
60  // Protected typedefs
61 
62  typedef HashTable
63  <
68 
69 
70  // Protected data
71 
72  // Sub Models
73 
74  //- Heat transfer models
75  heatTransferModelTable heatTransferModels_;
76 
77 
78 public:
79 
80  // Constructors
81 
82  //- Construct from fvMesh
84 
85 
86  //- Destructor
87  virtual ~HeatTransferPhaseSystem();
88 
89 
90  // Member Functions
91 
92  //- Return true if there is mass transfer for phase
93  virtual bool transfersMass(const phaseModel& phase) const;
94 
95  //- Return the interfacial mass flow rate
97  (
98  const phasePairKey& key
99  ) const;
100 
101  //- Return the total interfacial mass transfer rate for phase
102  virtual tmp<volScalarField> dmdt(const phaseModel& phase) const;
103 
104  //- Return the heat transfer matrices
106  heatTransfer() const;
107 
108  //- Return the mass transfer matrices
110  massTransfer() const;
111 
112  //- Read base phaseProperties dictionary
113  virtual bool read();
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #ifdef NoRepository
124  #include "HeatTransferPhaseSystem.C"
125 #endif
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
Class which models interfacial heat transfer between a number of phases.
virtual autoPtr< phaseSystem::massTransferTable > massTransfer() const
Return the mass transfer matrices.
virtual tmp< volScalarField > dmdt(const phasePairKey &key) const
Return the interfacial mass flow rate.
heatTransferModelTable heatTransferModels_
Heat transfer models.
virtual ~HeatTransferPhaseSystem()
Destructor.
An STL-conforming hash table.
Definition: HashTable.H:61
virtual bool transfersMass(const phaseModel &phase) const
Return true if there is mass transfer for phase.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phase.H:52
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:53
HashTable< autoPtr< BlendedInterfacialModel< heatTransferModel > >, phasePairKey, phasePairKey::hash > heatTransferModelTable
A class for managing temporary objects.
Definition: PtrList.H:54
HeatTransferPhaseSystem(const fvMesh &)
Construct from fvMesh.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:53
virtual autoPtr< phaseSystem::heatTransferTable > heatTransfer() const
Return the heat transfer matrices.
virtual bool read()
Read base phaseProperties dictionary.
Namespace for OpenFOAM.