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-2025 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;
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;
85 }
86 
87 
88 template<class CloudType>
90 (
91  const meshSearch&,
92  const label,
93  const label,
94  const scalar,
95  barycentric&,
96  label&,
97  label&,
98  label&,
99  label&
100 )
101 {}
102 
103 
104 template<class CloudType>
106 (
107  const label,
108  const label,
109  const scalar,
110  typename CloudType::parcelType::trackingData& td,
111  typename CloudType::parcelType& parcel
112 )
113 {
114  // set particle velocity
115  parcel.U() = Zero;
116 
117  // set particle diameter
118  parcel.d() = 0;
119 }
120 
121 
122 template<class CloudType>
124 {
125  return false;
126 }
127 
128 
129 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:80
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:225
Templated injection model class.
Place holder for 'none' option.
Definition: NoInjection.H:52
virtual scalar nParcelsToInject(const scalar time0, const scalar time1)
Number of parcels to introduce relative to SOI.
Definition: NoInjection.C:68
virtual ~NoInjection()
Destructor.
Definition: NoInjection.C:53
virtual void setProperties(const label parcelI, const label nParcels, const scalar time, typename CloudType::parcelType::trackingData &td, typename CloudType::parcelType &parcel)
Definition: NoInjection.C:106
virtual void setPositionAndCell(const meshSearch &searchEngine, const label parcelI, const label nParcels, const scalar time, barycentric &coordinates, label &celli, label &tetFacei, label &tetPti, label &facei)
Set the injection position and owner cell, tetFace and tetPt.
Definition: NoInjection.C:90
NoInjection(const dictionary &, CloudType &, const word &)
Construct from components.
Definition: NoInjection.C:33
virtual bool fullyDescribed() const
Flag to identify whether model fully describes the parcel.
Definition: NoInjection.C:123
virtual scalar timeEnd() const
Return the end-of-injection time.
Definition: NoInjection.C:60
virtual scalar massToInject(const scalar time0, const scalar time1)
Parcel mass to introduce relative to SOI.
Definition: NoInjection.C:79
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Mesh object that implements searches within the local cells and faces.
Definition: meshSearch.H:59
A class for handling words, derived from string.
Definition: word.H:63
static const zero Zero
Definition: zero.H:97
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