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-2018 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 false;
63 }
64 
65 
66 template<class CloudType>
68 {
69  return 0.0;
70 }
71 
72 
73 template<class CloudType>
75 (
76  const scalar,
77  const scalar
78 )
79 {
80  return 0;
81 }
82 
83 
84 template<class CloudType>
86 (
87  const scalar,
88  const scalar
89 )
90 {
91  return 0.0;
92 }
93 
94 
95 template<class CloudType>
97 (
98  const label,
99  const label,
100  const scalar,
101  vector&,
102  label&,
103  label&,
104  label&
105 )
106 {}
107 
108 
109 template<class CloudType>
111 (
112  const label,
113  const label,
114  const scalar,
115  typename CloudType::parcelType& parcel
116 )
117 {
118  // set particle velocity
119  parcel.U() = Zero;
120 
121  // set particle diameter
122  parcel.d() = 0.0;
123 }
124 
125 
126 template<class CloudType>
128 {
129  return false;
130 }
131 
132 
133 template<class CloudType>
135 {
136  return false;
137 }
138 
139 
140 // ************************************************************************* //
virtual bool validInjection(const label parcelI)
Return flag to identify whether or not injection of parcelI is.
Definition: NoInjection.C:134
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual void setProperties(const label parcelI, const label nParcels, const scalar time, typename CloudType::parcelType &parcel)
Set the parcel properties.
Definition: NoInjection.C:111
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:86
static const zero Zero
Definition: zero.H:97
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:218
scalar timeEnd() const
Return the end-of-injection time.
Definition: NoInjection.C:67
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:97
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:75
virtual bool fullyDescribed() const
Flag to identify whether model fully describes the parcel.
Definition: NoInjection.C:127
virtual ~NoInjection()
Destructor.
Definition: NoInjection.C:53
bool active() const
Flag to indicate whether model activates injection model.
Definition: NoInjection.C:60
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:69