Loading...
Searching...
No Matches
filmSeparation.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) 2011-2017 OpenFOAM Foundation
9 Copyright (C) 2021-2024 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::regionModels::areaSurfaceFilmModels::filmSeparation
29
30Description
31 The \c filmSeparation is a collection of curvature thin-film separation
32 models designed to predict the onset of film separation and mass separation
33 in geometries featuring sharp and/or rounded corners.
34
35Usage
36 Minimal example by using boundary-condition files:
37 \verbatim
38 injectionModels
39 {
40 // Mandatory entries
41 filmSeparation
42 }
43
44 filmSeparationCoeffs
45 {
46 model <word>;
47
48 // Conditional entries
49
50 // Option-1: when model == OwenRyley
51
52 // Option-2: when model == Friedrich
53
54 // Inherited entries
55 ...
56 }
57 \endverbatim
58
59 where the entries mean:
60 \table
61 Property | Description | Type | Reqd | Deflt
62 model | Name of the filmSeparation model | word | yes | -
63 \endtable
64
65 Options for the \c model entry:
66 \verbatim
67 OwenRyley | Model proposed by Owen-Ryley (1985)
68 Friedrich | Model proposed by Friedrich et al. (2008)
69 \endverbatim
70
71 The inherited entries are elaborated in:
72 - \link injectionModel.H \endlink
73
74SourceFiles
75 filmSeparation.C
76
77\*---------------------------------------------------------------------------*/
78
79#ifndef Foam_filmSeparation_H
80#define Foam_filmSeparation_H
81
82#include "injectionModel.H"
83
84// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85
86namespace Foam
87{
88
89// Forward Declarations
91
92namespace regionModels
93{
95{
96
97/*---------------------------------------------------------------------------*\
98 Class filmSeparation Declaration
99\*---------------------------------------------------------------------------*/
100
101class filmSeparation
102:
103 public injectionModel
104{
105 // Private Data
106
107 //- Film-separation model
108 autoPtr<filmSeparationModel> filmSeparationModelPtr_;
109
110
111public:
112
113 //- Runtime type information
114 TypeName("filmSeparation");
115
116
117 // Constructors
118
119 //- Construct from base film model and dictionary
121 (
123 const dictionary& dict
124 );
126
127 //- Destructor
128 virtual ~filmSeparation();
129
130
131 // Member Functions
132
133 //- Correct film properties due to the film separation
134 virtual void correct
135 (
136 scalarField& availableMass,
137 scalarField& massToInject,
138 scalarField& diameterToInject
139 );
140};
141
142
143// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144
145} // End namespace areaSurfaceFilmModels
146} // End namespace regionModels
147} // End namespace Foam
148
149// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150
151#endif
152
153// ************************************************************************* //
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A base class for filmSeparation models.
The filmSeparation is a collection of curvature thin-film separation models designed to predict the o...
TypeName("filmSeparation")
Runtime type information.
filmSeparation(liquidFilmBase &film, const dictionary &dict)
Construct from base film model and dictionary.
const liquidFilmBase & film() const
Return const access to the film surface film model.
Base class for film injection models, handling mass transfer from the film.
const dictionary & dict() const
Return const access to the cloud dictionary.
Namespace for OpenFOAM.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68