filmSeparationModel.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) 2024 OpenCFD Ltd.
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 Namespace
27  Foam::filmSeparationModels
28 
29 Description
30  A namespace for various \c filmSeparation model implementations.
31 
32 Class
33  Foam::filmSeparationModel
34 
35 Description
36  A base class for \c filmSeparation models.
37 
38 SourceFiles
39  filmSeparationModel.C
40  filmSeparationModelNew.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef Foam_filmSeparationModel_H
45 #define Foam_filmSeparationModel_H
46 
47 #include "liquidFilmBase.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class filmSeparationModel Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 {
60  // Private Data
61 
62  //- Const reference to the film properties
64 
65 
66 public:
67 
68  //- Runtime type information
69  TypeName("filmSeparationModel");
70 
71 
72  // Declare runtime constructor selection table
73 
75  (
76  autoPtr,
78  dictionary,
79  (
81  const dictionary& dict
82  ),
83  (film, dict)
84  );
85 
86 
87  // Selectors
88 
89  //- Return a reference to the selected filmSeparation model
91  (
93  const dictionary& dict
94  );
95 
96 
97  // Generated Methods
98 
99  //- No copy construct
100  filmSeparationModel(const filmSeparationModel&) = delete;
101 
102  //- No copy assignment
103  void operator=(const filmSeparationModel&) = delete;
104 
105 
106  // Constructors
107 
108  //- Construct from the base film model and dictionary
110  (
112  const dictionary& dict
113  );
114 
115 
116  //- Destructor
117  virtual ~filmSeparationModel() = default;
118 
119 
120  // Member Functions
121 
122  // Access
123 
124  //- Return const access to the film properties
126  {
127  return film_;
128  }
129 
130  //- Return const access to the finite-area mesh
131  const faMesh& mesh() const noexcept { return film_.regionMesh(); }
132 
133 
134  // Evaluation
135 
136  //- Calculate the mass ratio of film separation
138 };
139 
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 } // End namespace Foam
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 #endif
148 
149 // ************************************************************************* //
TypeName("filmSeparationModel")
Runtime type information.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
Definition: faMesh.H:133
dictionary dict
declareRunTimeSelectionTable(autoPtr, filmSeparationModel, dictionary,(const regionModels::areaSurfaceFilmModels::liquidFilmBase &film, const dictionary &dict),(film, dict))
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
filmSeparationModel(const filmSeparationModel &)=delete
No copy construct.
const faMesh & mesh() const noexcept
Return const access to the finite-area mesh.
const faMesh & regionMesh() const
Return the region mesh database.
const direction noexcept
Definition: scalarImpl.H:255
void operator=(const filmSeparationModel &)=delete
No copy assignment.
A base class for filmSeparation models.
static autoPtr< filmSeparationModel > New(const regionModels::areaSurfaceFilmModels::liquidFilmBase &film, const dictionary &dict)
Return a reference to the selected filmSeparation model.
const regionModels::areaSurfaceFilmModels::liquidFilmBase & film() const
Return const access to the film properties.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
A class for managing temporary objects.
Definition: HashPtrTable.H:50
virtual tmp< scalarField > separatedMassRatio() const =0
Calculate the mass ratio of film separation.
Namespace for OpenFOAM.
virtual ~filmSeparationModel()=default
Destructor.