Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
lagrangian
intermediate
submodels
Kinematic
InjectionModel
NoInjection
NoInjection.C
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
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
"
27
#include <
OpenFOAM/addToRunTimeSelectionTable.H
>
28
29
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
30
31
template
<
class
CloudType>
32
Foam::label
Foam::NoInjection<CloudType>::parcelsToInject
33
(
34
const
scalar,
35
const
scalar
36
)
const
37
{
38
return
0;
39
}
40
41
42
template
<
class
CloudType>
43
Foam::scalar
Foam::NoInjection<CloudType>::volumeToInject
44
(
45
const
scalar,
46
const
scalar
47
)
const
48
{
49
return
0.0;
50
}
51
52
53
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
54
55
template
<
class
CloudType>
56
Foam::NoInjection<CloudType>::NoInjection
57
(
58
const
dictionary
&,
59
CloudType& owner
60
)
61
:
62
InjectionModel<CloudType>
(owner)
63
{}
64
65
66
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
67
68
template
<
class
CloudType>
69
Foam::NoInjection<CloudType>::~NoInjection
()
70
{}
71
72
73
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
74
75
template
<
class
CloudType>
76
bool
Foam::NoInjection<CloudType>::active
()
const
77
{
78
return
false
;
79
}
80
81
82
template
<
class
CloudType>
83
Foam::scalar
Foam::NoInjection<CloudType>::timeEnd
()
const
84
{
85
return
0.0;
86
}
87
88
89
template
<
class
CloudType>
90
void
Foam::NoInjection<CloudType>::setPositionAndCell
91
(
92
const
label,
93
const
label,
94
const
scalar,
95
vector
&,
96
label&
97
)
98
{}
99
100
101
template
<
class
CloudType>
102
void
Foam::NoInjection<CloudType>::setProperties
103
(
104
const
label,
105
const
label,
106
const
scalar,
107
typename
CloudType::parcelType&
parcel
108
)
109
{
110
// set particle velocity
111
parcel.U() = vector::zero;
112
113
// set particle diameter
114
parcel.d() = 0.0;
115
}
116
117
118
template
<
class
CloudType>
119
bool
Foam::NoInjection<CloudType>::fullyDescribed
()
const
120
{
121
return
false
;
122
}
123
124
125
template
<
class
CloudType>
126
bool
Foam::NoInjection<CloudType>::validInjection
(
const
label)
127
{
128
return
false
;
129
}
130
131
132
// ************************ vim: set sw=4 sts=4 et: ************************ //