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
injectorModel
injectorModel.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::injectorModel
26
27
28
Description
29
The injectormodel is used to set initial droplet size and the
30
velocity direction
31
32
\*---------------------------------------------------------------------------*/
33
34
#ifndef injectorModel_H
35
#define injectorModel_H
36
37
#include <
liquids/liquid.H
>
38
#include <
dieselSpray/injector.H
>
39
#include <
OpenFOAM/PtrList.H
>
40
#include <
OpenFOAM/IOdictionary.H
>
41
#include <
finiteVolume/volFieldsFwd.H
>
42
#include <
OpenFOAM/autoPtr.H
>
43
#include <
dieselSpray/spray.H
>
44
45
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47
namespace
Foam
48
{
49
50
/*---------------------------------------------------------------------------*\
51
Class injectorModel Declaration
52
\*---------------------------------------------------------------------------*/
53
54
class
injectorModel
55
{
56
57
protected
:
58
59
// Protected data
60
61
const
dictionary
&
dict_
;
62
spray
&
sm_
;
63
64
const
PtrList<injector>
&
injectors_
;
65
Random
&
rndGen_
;
66
67
public
:
68
69
//-Runtime type information
70
TypeName
(
"injectorModel"
);
71
72
// Declare runtime constructor selection table
73
74
declareRunTimeSelectionTable
75
(
76
autoPtr
,
77
injectorModel
,
78
dictionary
,
79
(
80
const
dictionary
& dict,
81
spray
& sm
82
),
83
(dict, sm)
84
);
85
86
87
// Constructors
88
89
//- Construct from components
90
injectorModel
91
(
92
const
dictionary
& dict,
93
spray
& sm
94
);
95
96
97
// Destructor
98
99
virtual
~injectorModel
();
100
101
102
// Selector
103
104
static
autoPtr<injectorModel>
New
105
(
106
const
dictionary
& dict,
107
spray
& sm
108
);
109
110
111
// Member Functions
112
113
//- Return the initial droplet diameter
114
virtual
scalar
d0
(
const
label
injector
,
const
scalar time)
const
= 0;
115
116
//- Return the spray angle of the injector
117
virtual
vector
direction
118
(
119
const
label
injector
,
120
const
label hole,
121
const
scalar time,
122
const
scalar
d
123
)
const
= 0;
124
125
virtual
scalar
velocity
126
(
127
const
label i,
128
const
scalar time
129
)
const
= 0;
130
131
virtual
scalar
averageVelocity
132
(
133
const
label i
134
)
const
= 0;
135
};
136
137
138
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139
140
}
// End namespace Foam
141
142
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143
144
#endif
145
146
// ************************ vim: set sw=4 sts=4 et: ************************ //