VoFPatchTransfer.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) 2017-2018 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::regionModels::surfaceFilmModels::VoFPatchTransfer
26 
27 Description
28  Transfer mass between the film and the VoF in the continuous phase.
29 
30 SourceFiles
31  VoFPatchTransfer.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef VoFPatchTransfer_H
36 #define VoFPatchTransfer_H
37 
38 #include "transferModel.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace regionModels
45 {
46 namespace surfaceFilmModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class VoFPatchTransfer Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class VoFPatchTransfer
54 :
55  public transferModel
56 {
57  // Private member functions
58 
59  //- Disallow default bitwise copy construct
61 
62  //- Disallow default bitwise assignment
63  void operator=(const VoFPatchTransfer&);
64 
65 
66 protected:
67 
68  //- Factor of the cell height above which the film is transferred
69  // to the VoF
70  scalar deltaFactorToVoF_;
71 
72  //- Factor of the cell height below which the VoF may be transferred
73  // to the film
74  scalar deltaFactorToFilm_;
75 
76  //- VoF limit above which all of the film is transferred to the VoF
77  scalar alphaToVoF_;
78 
79  //- VoF limit below which the VoF may be transferred to the film
80  scalar alphaToFilm_;
81 
82  //- Transfer rate coefficient
83  scalar transferRateCoeff_;
84 
85  //- List of patch IDs at which the film is removed
87 
88  //- Transferred mass for each patch at which the film is removed
90 
91 
92 public:
93 
94  //- Runtime type information
95  TypeName("VoFPatchTransfer");
96 
97 
98  // Constructors
99 
100  //- Construct from surface film model
102 
103 
104  //- Destructor
105  virtual ~VoFPatchTransfer();
106 
107 
108  // Member Functions
109 
110  //- Correct
111  virtual void correct
112  (
113  scalarField& availableMass,
114  scalarField& massToTransfer
115  );
116 
117  //- Correct kinematic and thermodynamic transfers
118  virtual void correct
119  (
120  scalarField& availableMass,
121  scalarField& massToTransfer,
122  scalarField& energyToTransfer
123  );
124 
125  //- Accumulate the total mass injected for the patches into the
126  // scalarField provided
127  virtual void patchTransferredMassTotals
128  (
129  scalarField& patchMasses
130  ) const;
131 };
132 
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 } // End namespace surfaceFilmModels
137 } // End namespace regionModels
138 } // End namespace Foam
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 #endif
143 
144 // ************************************************************************* //
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 any number of values (e...
Definition: dictionary.H:137
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:56
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:110
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.