NoInjection.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) 2011-2020 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 "NoInjection.H"
28 
29 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
30 
31 template<class CloudType>
33 (
34  const dictionary&,
35  CloudType& owner,
36  const word&
37 )
38 :
40 {}
41 
42 
43 template<class CloudType>
45 :
46  InjectionModel<CloudType>(im.owner_)
47 {}
48 
49 
50 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
51 
52 template<class CloudType>
54 {}
55 
56 
57 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
58 
59 template<class CloudType>
61 {
62  return 0.0;
63 }
64 
65 
66 template<class CloudType>
68 (
69  const scalar,
70  const scalar
71 )
72 {
73  return 0;
74 }
75 
76 
77 template<class CloudType>
79 (
80  const scalar,
81  const scalar
82 )
83 {
84  return 0.0;
85 }
86 
87 
88 template<class CloudType>
90 (
91  const label,
92  const label,
93  const scalar,
94  vector&,
95  label&,
96  label&,
97  label&
98 )
99 {}
100 
101 
102 template<class CloudType>
104 (
105  const label,
106  const label,
107  const scalar,
108  typename CloudType::parcelType& parcel
109 )
110 {
111  // set particle velocity
112  parcel.U() = Zero;
113 
114  // set particle diameter
115  parcel.d() = 0.0;
116 }
117 
118 
119 template<class CloudType>
121 {
122  return false;
123 }
124 
125 
126 template<class CloudType>
128 {
129  return false;
130 }
131 
132 
133 // ************************************************************************* //
virtual bool validInjection(const label parcelI)
Return flag to identify whether or not injection of parcelI is.
Definition: NoInjection.C:127
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual void setProperties(const label parcelI, const label nParcels, const scalar time, typename CloudType::parcelType &parcel)
Set the parcel properties.
Definition: NoInjection.C:104
Templated injection model class.
Macros for easy insertion into run-time selection tables.
NoInjection(const dictionary &, CloudType &, const word &)
Construct from components.
Definition: NoInjection.C:33
A class for handling words, derived from string.
Definition: word.H:59
virtual scalar volumeToInject(const scalar time0, const scalar time1)
Volume of parcels to introduce relative to SOI.
Definition: NoInjection.C:79
static const zero Zero
Definition: zero.H:97
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:221
scalar timeEnd() const
Return the end-of-injection time.
Definition: NoInjection.C:60
virtual void setPositionAndCell(const label parcelI, const label nParcels, const scalar time, vector &position, label &cellOwner, label &tetFacei, label &tetPti)
Set the injection position and owner cell, tetFace and tetPt.
Definition: NoInjection.C:90
Place holder for &#39;none&#39; option.
Definition: NoInjection.H:49
virtual label parcelsToInject(const scalar time0, const scalar time1)
Number of parcels to introduce relative to SOI.
Definition: NoInjection.C:68
virtual bool fullyDescribed() const
Flag to identify whether model fully describes the parcel.
Definition: NoInjection.C:120
virtual ~NoInjection()
Destructor.
Definition: NoInjection.C:53
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:75