OneResistanceHeatTransferPhaseSystem.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) 2015-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::OneResistanceHeatTransferPhaseSystem
26 
27 Description
28  Class which models interfacial heat transfer between a number of phases. A
29  single heat transfer model is used for each interface.
30 
31 See also
32  TwoResistanceHeatTransferPhaseSystem
33 
34 SourceFiles
35  OneResistanceHeatTransferPhaseSystem.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef OneResistanceHeatTransferPhaseSystem_H
40 #define OneResistanceHeatTransferPhaseSystem_H
41 
42 #include "phaseSystem.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 class blendingMethod;
50 template<class modelType> class BlendedInterfacialModel;
51 class heatTransferModel;
52 
53 /*---------------------------------------------------------------------------*\
54  Class OneResistanceHeatTransferPhaseSystem Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 template<class BasePhaseSystem>
59 :
60  public BasePhaseSystem
61 {
62 protected:
63 
64  // Protected typedefs
65 
66  typedef HashTable
67  <
72 
73 
74  // Protected data
75 
76  // Sub Models
77 
78  //- Heat transfer models
79  heatTransferModelTable heatTransferModels_;
80 
81 
82  // Protected Member Functions
83 
84  //- Add energy transfer terms which result from bulk mass transfers
85  void addDmdtHefs
86  (
87  const phaseSystem::dmdtfTable& dmdtfs,
89  ) const;
90 
91  //- Add energy transfer terms which result from specie mass transfers
92  void addDmidtHef
93  (
94  const phaseSystem::dmidtfTable& dmidtfs,
96  ) const;
97 
98 
99 public:
100 
101  // Constructors
102 
103  //- Construct from fvMesh
105 
106 
107  //- Destructor
109 
110 
111  // Member Functions
112 
113  //- Return the heat transfer matrices
115 
116  //- Read base phaseProperties dictionary
117  virtual bool read();
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace Foam
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #ifdef NoRepository
129 #endif
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
OneResistanceHeatTransferPhaseSystem(const fvMesh &)
Construct from fvMesh.
Class which models interfacial heat transfer between a number of phases. A single heat transfer model...
void addDmidtHef(const phaseSystem::dmidtfTable &dmidtfs, phaseSystem::heatTransferTable &eqns) const
Add energy transfer terms which result from specie mass transfers.
void addDmdtHefs(const phaseSystem::dmdtfTable &dmdtfs, phaseSystem::heatTransferTable &eqns) const
Add energy transfer terms which result from bulk mass transfers.
heatTransferModelTable heatTransferModels_
Heat transfer models.
An STL-conforming hash table.
Definition: HashTable.H:61
virtual autoPtr< phaseSystem::heatTransferTable > heatTransfer() const
Return the heat transfer matrices.
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:52
virtual bool read()
Read base phaseProperties dictionary.
Namespace for OpenFOAM.
virtual ~OneResistanceHeatTransferPhaseSystem()
Destructor.
HashTable< autoPtr< BlendedInterfacialModel< heatTransferModel > >, phasePairKey, phasePairKey::hash > heatTransferModelTable