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
definedPressureSwirl
definedPressureSwirl.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::definedPressureSwirlInjector
26
27
Description
28
Pressure swirl injector model with user-defined
29
cone-angle/interval vs. time
30
31
\*---------------------------------------------------------------------------*/
32
33
#ifndef definedPressureSwirlInjector_H
34
#define definedPressureSwirlInjector_H
35
36
#include <
dieselSpray/injectorModel.H
>
37
#include <
OpenFOAM/scalarList.H
>
38
#include <
OpenFOAM/vector.H
>
39
40
41
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42
43
namespace
Foam
44
{
45
/*---------------------------------------------------------------------------*\
46
Class definedPressureSwirlInjector Declaration
47
\*---------------------------------------------------------------------------*/
48
49
class
definedPressureSwirlInjector
50
:
51
public
injectorModel
52
{
53
54
private
:
55
56
// Private data
57
58
typedef
VectorSpace<Vector<scalar>
, scalar, 2>
pair
;
59
60
dictionary
definedPressureSwirlInjectorDict_;
61
62
List<pair>
coneAngle_;
63
List<pair>
coneInterval_;
64
65
List<pair>
maxKv_;
66
67
// The initial spray angle for the parcels
68
mutable
scalar angle_;
69
70
// The initial velocity for the parcels
71
mutable
scalar u_;
72
73
// private member functions
74
75
scalar kv
76
(
77
const
label inj,
78
const
scalar massFlow,
79
const
scalar dPressure,
80
const
scalar t
81
)
const
;
82
83
scalar deltaPressureInj(
const
scalar time,
const
label inj)
const
;
84
scalar averagePressure(
const
label inj)
const
;
85
86
public
:
87
88
//- Runtime type information
89
TypeName
(
"definedPressureSwirlInjector"
);
90
91
92
// Constructors
93
94
//- Construct from components
95
definedPressureSwirlInjector
96
(
97
const
dictionary
& dict,
98
spray
& sm
99
);
100
101
102
// Destructor
103
104
~definedPressureSwirlInjector
();
105
106
107
// Member Functions
108
109
//- Return the injected droplet diameter
110
scalar
d0
(
const
label
injector
,
const
scalar time)
const
;
111
112
//- Return the spray angle of the injector
113
vector
direction
114
(
115
const
label injector,
116
const
label hole,
117
const
scalar time,
118
const
scalar
d
119
)
const
;
120
121
scalar
velocity
122
(
123
const
label i,
124
const
scalar time
125
)
const
;
126
127
scalar
averageVelocity
128
(
129
const
label i
130
)
const
;
131
132
133
};
134
135
136
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137
138
}
// End namespace Foam
139
140
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141
142
#endif
143
144
// ************************ vim: set sw=4 sts=4 et: ************************ //