ejectionModel.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2023 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "ejectionModel.H"
27 
28 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
29 
30 namespace Foam
31 {
34 }
35 
36 
37 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
38 
40 (
41  const dictionary& dict,
42  const solvers::isothermalFilm& film
43 )
44 :
45  film_(film),
46  rate_
47  (
48  volScalarField::Internal::New
49  (
50  "ejectionRate",
51  film.mesh,
53  )
54  ),
55  diameter_
56  (
57  volScalarField::Internal::New
58  (
59  "ejectionDiameter",
60  film.mesh,
62  )
63  )
64 {}
65 
66 
67 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
68 
70 {}
71 
72 
73 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
74 
76 {
77  // Resize in case of mesh change
78  rate_.setSize(film_.mesh.nCells());
79  diameter_.setSize(film_.mesh.nCells());
80 }
81 
82 
84 {
85  // Resize in case of mesh change
86  rate_.setSize(film_.mesh.nCells());
87  diameter_.setSize(film_.mesh.nCells());
88 }
89 
90 
92 {
93  // Resize in case of mesh change
94  rate_.setSize(film_.mesh.nCells());
95  diameter_.setSize(film_.mesh.nCells());
96 }
97 
98 
100 {
101  return true;
102 }
103 
104 
105 // ************************************************************************* //
Generic GeometricField class.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
virtual bool movePoints()
Update for mesh motion.
Definition: ejectionModel.C:99
virtual ~ejectionModel()
Destructor.
Definition: ejectionModel.C:69
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
Definition: ejectionModel.C:75
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
Definition: ejectionModel.C:91
ejectionModel(const dictionary &dict, const solvers::isothermalFilm &film)
Construct from dictionary and film model.
Definition: ejectionModel.C:40
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
Definition: ejectionModel.C:83
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Definition: polyMeshMap.H:51
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Solver module for flow of compressible isothermal liquid films.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Namespace for OpenFOAM.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const dimensionSet dimless
const dimensionSet dimLength
const dimensionSet dimTime
defineTypeNameAndDebug(combustionModel, 0)
dictionary dict