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
101 
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 // ************************************************************************* //
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::~VoFPatchTransfer
virtual ~VoFPatchTransfer()
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer
Transfer mass between the film and the VoF in the continuous phase.
Definition: VoFPatchTransfer.H:50
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::alphaToVoF_
scalar alphaToVoF_
Definition: VoFPatchTransfer.H:74
transferModel.H
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::patchIDs_
labelList patchIDs_
Definition: VoFPatchTransfer.H:83
Foam::regionModels::surfaceFilmModels::transferModel::correct
void correct()
Definition: transferModel.C:74
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::patchTransferredMasses_
scalarField patchTransferredMasses_
Definition: VoFPatchTransfer.H:86
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::TypeName
TypeName("VoFPatchTransfer")
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::patchTransferredMassTotals
virtual void patchTransferredMassTotals(scalarField &patchMasses) const
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::transferRateCoeff_
scalar transferRateCoeff_
Definition: VoFPatchTransfer.H:80
Foam::Field
Generic templated field type.
Definition: Field.H:59
Foam::regionModels::surfaceFilmModels::surfaceFilmRegionModel
Base class for surface film models.
Definition: surfaceFilmRegionModel.H:51
Foam::subModelBase::dict
const dictionary & dict() const
Definition: subModelBase.C:106
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:119
Foam
Definition: atmBoundaryLayer.C:26
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::alphaToFilm_
scalar alphaToFilm_
Definition: VoFPatchTransfer.H:77
Foam::regionModels::surfaceFilmModels::transferModel
Base class for film transfer models, handling mass transfer between the film and the continuous phase...
Definition: transferModel.H:54
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::deltaFactorToVoF_
scalar deltaFactorToVoF_
Definition: VoFPatchTransfer.H:67
Foam::regionModels::surfaceFilmModels::VoFPatchTransfer::deltaFactorToFilm_
scalar deltaFactorToFilm_
Definition: VoFPatchTransfer.H:71
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: BitOps.H:58
Foam::regionModels::surfaceFilmModels::filmSubModelBase::film
const surfaceFilmRegionModel & film() const
Definition: filmSubModelBaseI.H:32