1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Place holder for 'none' option
34 \*---------------------------------------------------------------------------*/
39 #include "InjectionModel.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class NoInjection Declaration
48 \*---------------------------------------------------------------------------*/
50 template<class CloudType>
53 public InjectionModel<CloudType>
57 // Protected member functions
59 //- Number of parcels to introduce over the time step relative to SOI
66 //- Volume of parcels to introduce over the time step relative to SOI
76 //- Runtime type information
82 //- Construct from components
91 virtual ~NoInjection();
96 //- Flag to indicate whether model activates injection model
99 //- Return the end-of-injection time
100 scalar timeEnd() const;
103 // Injection geometry
105 //- Set the injection position and owner cell
106 virtual void setPositionAndCell
109 const label nParcels,
115 virtual void setProperties
118 const label nParcels,
120 typename CloudType::parcelType& parcel
123 //- Flag to identify whether model fully describes the parcel
124 virtual bool fullyDescribed() const;
126 //- Return flag to identify whether or not injection of parcelI is
128 virtual bool validInjection(const label parcelI);
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace Foam
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 # include "NoInjection.C"
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 // ************************************************************************* //