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 -------------------------------------------------------------------------------
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::injectionModelList
28 
29 Description
30  List container for film injection models
31 
32 Usage
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 
60 SourceFiles
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 
73 namespace Foam
74 {
75 namespace regionModels
76 {
77 namespace areaSurfaceFilmModels
78 {
79 
80 /*---------------------------------------------------------------------------*\
81  Class injectionModelList Declaration
82 \*---------------------------------------------------------------------------*/
83 
84 class injectionModelList
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 
104 public:
105 
106  // Constructors
107 
108  //- Construct null
110 
111  //- Construct from type name, dictionary and surface film model
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 // ************************************************************************* //
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
Correct.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
virtual void info(Ostream &os)
Provide some info.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:104
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:56
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
const liquidFilmBase & film() const
Return const access to the film surface film model.