PhaseTransferPhaseSystem.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) 2018-2019 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::PhaseTransferPhaseSystem
26 
27 Description
28  Class which models non-thermally-coupled mass transfers; i.e.,
29  representation changes, rather than phase changes.
30 
31 SourceFiles
32  PhaseTransferPhaseSystem.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef PhaseTransferPhaseSystem_H
37 #define PhaseTransferPhaseSystem_H
38 
39 #include "phaseSystem.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 class blendingMethod;
47 template<class modelType> class BlendedInterfacialModel;
48 class phaseTransferModel;
49 
50 /*---------------------------------------------------------------------------*\
51  Class PhaseTransferPhaseSystem Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 template<class BasePhaseSystem>
56 :
57  public BasePhaseSystem
58 {
59 protected:
60 
61  // Protected typedefs
62 
63  typedef HashTable
64  <
69 
71  rDmdtTable;
72 
73 
74  // Protected data
75 
76  // Sub Models
77 
78  //- Mass transfer models
79  phaseTransferModelTable phaseTransferModels_;
80 
81  //- Mass transfer rates
82  rDmdtTable rDmdt_;
83 
84  // Protected member functions
85 
86  //- Return the representation mass transfer rate
87  virtual tmp<volScalarField> rDmdt(const phasePairKey& key) const;
88 
89 
90 public:
91 
92  // Constructors
93 
94  //- Construct from fvMesh
96 
97 
98  //- Destructor
99  virtual ~PhaseTransferPhaseSystem();
100 
101 
102  // Member Functions
103 
104  //- Return the mass transfer rate for a pair
105  virtual tmp<volScalarField> dmdt(const phasePairKey& key) const;
106 
107  //- Return the mass transfer rates for each phase
108  virtual PtrList<volScalarField> dmdts() const;
109 
110  //- Return the mass transfer matrices
112 
113  //- Correct the mass transfer rates
114  virtual void correct();
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
128  #include "PhaseTransferPhaseSystem.C"
129 #endif
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
PhaseTransferPhaseSystem(const fvMesh &)
Construct from fvMesh.
HashPtrTable< volScalarField, phasePairKey, phasePairKey::hash > rDmdtTable
Class which models non-thermally-coupled mass transfers; i.e., representation changes, rather than phase changes.
virtual tmp< volScalarField > rDmdt(const phasePairKey &key) const
Return the representation mass transfer rate.
virtual void correct()
Correct the mass transfer rates.
virtual bool read()
Read base phaseProperties dictionary.
HashTable< autoPtr< BlendedInterfacialModel< phaseTransferModel > >, phasePairKey, phasePairKey::hash > phaseTransferModelTable
An STL-conforming hash table.
Definition: HashTable.H:61
virtual PtrList< volScalarField > dmdts() const
Return the mass transfer rates for each phase.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: List.H:70
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
A class for managing temporary objects.
Definition: PtrList.H:53
virtual autoPtr< phaseSystem::massTransferTable > massTransfer() const
Return the mass transfer matrices.
rDmdtTable rDmdt_
Mass transfer rates.
virtual tmp< volScalarField > dmdt(const phasePairKey &key) const
Return the mass transfer rate for a pair.
phaseTransferModelTable phaseTransferModels_
Mass transfer models.
Namespace for OpenFOAM.
virtual ~PhaseTransferPhaseSystem()
Destructor.