VoFPatchTransfer.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::regionModels::surfaceFilmModels::VoFPatchTransfer
28 
29 Description
30  Transfer mass between the film and the VoF in the continuous phase.
31 
32 SourceFiles
33  VoFPatchTransfer.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef VoFPatchTransfer_H
38 #define VoFPatchTransfer_H
39 
40 #include "transferModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace regionModels
47 {
48 namespace surfaceFilmModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class VoFPatchTransfer Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class VoFPatchTransfer
56 :
57  public transferModel
58 {
59  // Private member functions
60 
61  //- No copy construct
62  VoFPatchTransfer(const VoFPatchTransfer&) = delete;
63 
64  //- No copy assignment
65  void operator=(const VoFPatchTransfer&) = delete;
66 
67 
68 protected:
69 
70  //- Factor of the cell height above which the film is transferred
71  // to the VoF
72  scalar deltaFactorToVoF_;
73 
74  //- Factor of the cell height below which the VoF may be transferred
75  // to the film
76  scalar deltaFactorToFilm_;
77 
78  //- VoF limit above which all of the film is transferred to the VoF
79  scalar alphaToVoF_;
80 
81  //- VoF limit below which the VoF may be transferred to the film
82  scalar alphaToFilm_;
83 
84  //- Transfer rate coefficient
85  scalar transferRateCoeff_;
86 
87  //- List of patch IDs at which the film is removed
89 
90  //- Transferred mass for each patch at which the film is removed
92 
93 
94 public:
95 
96  //- Runtime type information
97  TypeName("VoFPatchTransfer");
98 
99 
100  // Constructors
102  //- Construct from surface film model
104 
105 
106  //- Destructor
107  virtual ~VoFPatchTransfer();
108 
109 
110  // Member Functions
111 
112  //- Correct
113  virtual void correct
114  (
115  scalarField& availableMass,
116  scalarField& massToTransfer
117  );
118 
119  //- Correct kinematic and thermodynamic transfers
120  virtual void correct
121  (
122  scalarField& availableMass,
123  scalarField& massToTransfer,
124  scalarField& energyToTransfer
125  );
126 
127  //- Accumulate the total mass injected for the patches into the
128  // scalarField provided
129  virtual void patchTransferredMassTotals
130  (
131  scalarField& patchMasses
132  ) const;
133 };
134 
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 } // End namespace surfaceFilmModels
139 } // End namespace regionModels
140 } // End namespace Foam
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #endif
145 
146 // ************************************************************************* //
virtual void patchTransferredMassTotals(scalarField &patchMasses) const
Accumulate the total mass injected for the patches into the.
scalarField patchTransferredMasses_
Transferred mass for each patch at which the film is removed.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:120
labelList patchIDs_
List of patch IDs at which the film is removed.
Base class for film transfer models, handling mass transfer between the film and the continuous phase...
Definition: transferModel.H:54
scalar alphaToFilm_
VoF limit below which the VoF may be transferred to the film.
Transfer mass between the film and the VoF in the continuous phase.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:104
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
scalar deltaFactorToVoF_
Factor of the cell height above which the film is transferred.
scalar transferRateCoeff_
Transfer rate coefficient.
scalar alphaToVoF_
VoF limit above which all of the film is transferred to the VoF.
TypeName("VoFPatchTransfer")
Runtime type information.
Namespace for OpenFOAM.
scalar deltaFactorToFilm_
Factor of the cell height below which the VoF may be transferred.