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-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 "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 label,
92  const label,
93  const scalar,
94  barycentric&,
95  label&,
96  label&,
97  label&,
98  label&
99 )
100 {}
101 
102 
103 template<class CloudType>
105 (
106  const label,
107  const label,
108  const scalar,
109  typename CloudType::parcelType& parcel
110 )
111 {
112  // set particle velocity
113  parcel.U() = Zero;
114 
115  // set particle diameter
116  parcel.d() = 0;
117 }
118 
119 
120 template<class CloudType>
122 {
123  return false;
124 }
125 
126 
127 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:79
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:221
Templated injection model class.
Place holder for 'none' option.
Definition: NoInjection.H:52
virtual ~NoInjection()
Destructor.
Definition: NoInjection.C:53
virtual void setPositionAndCell(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
virtual void setProperties(const label parcelI, const label nParcels, const scalar time, typename CloudType::parcelType &parcel)
Set the parcel properties.
Definition: NoInjection.C:105
NoInjection(const dictionary &, CloudType &, const word &)
Construct from components.
Definition: NoInjection.C:33
virtual label nParcelsToInject(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:121
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 keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
A class for handling words, derived from string.
Definition: word.H:62
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