Loading...
Searching...
No Matches
injectionModelList.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) 2020 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::regionModels::surfaceFilmModels::injectionModelList
28
29Description
30 List container for film injection models
31
32Usage
33 Example of the model specification:
34 \verbatim
35 {
36 // Mandatory entries
37 injectionModels
38 (
39 <injectionModel1>
40 <injectionModel2>
41 ...
42 );
43
44 <injectionModel1>Coeffs
45 {
46 ...
47 }
48
49 // Inherited entries
50 ...
51 }
52 \endverbatim
53
54 where the entries mean:
55 \table
56 Property | Description | Type | Reqd | Deflt
57 injectionModels | List of injection models | list | yes | -
58 \endtable
59
60SourceFiles
61 injectionModelList.C
62
63\*---------------------------------------------------------------------------*/
64
65#ifndef injectionModelList_H
66#define injectionModelList_H
67
68#include "injectionModel.H"
69#include "filmSubModelBase.H"
70
71// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
72
73namespace Foam
74{
75namespace regionModels
76{
78{
79
80/*---------------------------------------------------------------------------*\
81 Class injectionModelList Declaration
82\*---------------------------------------------------------------------------*/
83
85:
86 public PtrList<injectionModel>,
87 public filmSubModelBase
88{
89 // Private Data
90
91 //- List of mass injected per patch
92 scalar massInjected_;
93
94
95 // Private Member Functions
96
97 //- No copy construct
98 injectionModelList(const injectionModelList&) = delete;
99
100 //- No copy assignment
101 void operator=(const injectionModelList&) = delete;
102
103
104public:
105
106 // Constructors
107
108 //- Construct null
109 injectionModelList(liquidFilmBase& film);
110
111 //- Construct from type name, dictionary and surface film model
112 injectionModelList
113 (
115 const dictionary& dict
116 );
117
118
119 //- Destructor
120 virtual ~injectionModelList();
121
122
123 // Member Functions
124
125 // Evolution
126
127 //- Correct
128 virtual void correct
129 (
130 scalarField& availableMass,
131 volScalarField& massToInject,
132 volScalarField& diameterToInject
133 );
134
135
136 // I-O
137
138 //- Provide some info
139 virtual void info(Ostream& os);
140};
141
142
143// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144
145} // End namespace areaSurfaceFilmModels
146} // End namespace regionModels
147} // End namespace Foam
148
149// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150
151#endif
152
153// ************************************************************************* //
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition Ostream.H:59
constexpr PtrList() noexcept
Definition PtrListI.H:29
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
const liquidFilmBase & film() const
Return const access to the film surface film model.
const dictionary & dict() const
Return const access to the cloud dictionary.
thermo correct()
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.