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
dieselSpray
spraySubModels
injectorModel
constant
constInjector.H
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
Class
25
Foam::constInjector
26
27
Description
28
Injector model with
29
specified Constant values for the droplet diameter and spray cone angle
30
31
\*---------------------------------------------------------------------------*/
32
33
#ifndef constInjector_H
34
#define constInjector_H
35
36
#include <
dieselSpray/injectorModel.H
>
37
#include <
OpenFOAM/scalarList.H
>
38
39
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40
41
namespace
Foam
42
{
43
/*---------------------------------------------------------------------------*\
44
Class constInjector Declaration
45
\*---------------------------------------------------------------------------*/
46
47
class
constInjector
48
:
49
public
injectorModel
50
{
51
52
private
:
53
54
// Private data
55
56
dictionary
specDict_;
57
58
scalarList
dropletNozzleDiameterRatio_;
59
scalarList
sprayAngle_;
60
61
public
:
62
63
//- Runtime type information
64
TypeName
(
"constInjector"
);
65
66
67
// Constructors
68
69
//- Construct from components
70
constInjector
71
(
72
const
dictionary
& dict,
73
spray
& sm
74
);
75
76
77
// Destructor
78
79
~constInjector
();
80
81
82
// Member Functions
83
84
//- Return the injected droplet diameter
85
scalar
d0
(
const
label
injector
,
const
scalar time)
const
;
86
87
//- Return the spray angle of the injector
88
vector
direction
89
(
90
const
label injector,
91
const
label hole,
92
const
scalar time,
93
const
scalar
d
94
)
const
;
95
96
scalar
velocity
97
(
98
const
label i,
99
const
scalar time
100
)
const
;
101
102
scalar
averageVelocity
103
(
104
const
label i
105
)
const
;
106
107
};
108
109
110
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111
112
}
// End namespace Foam
113
114
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115
116
#endif
117
118
// ************************ vim: set sw=4 sts=4 et: ************************ //