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
applications
utilities
postProcessing
graphics
ensightFoamReader
getLagrangianVector.H
Go to the documentation of this file.
1
2
// Not sure if this is necessary anymore
3
4
nVar
-=
Num_variables
-
nSprayVariables
+
lagrangianScalarNames
.size();
5
6
if
(
nVar
>= 0)
7
{
8
word
name
=
lagrangianVectorNames
[
nVar
];
9
10
IOField<vector> v
11
(
12
IOobject
13
(
14
name,
15
runTime.timeName(),
16
cloud::prefix,
17
mesh
,
18
IOobject::MUST_READ,
19
IOobject::NO_WRITE
20
)
21
);
22
23
if
(v.size())
24
{
25
for
(label n = 0; n < v.size(); n++)
26
{
27
if
(
component
== 0)
28
{
29
var_array[n+1] = v[n].x();
30
}
31
else
if
(
component
== 1)
32
{
33
var_array[n+1] = v[n].y();
34
}
35
else
if
(
component
== 2)
36
{
37
var_array[n+1] = v[n].z();
38
}
39
}
40
}
41
}
42
else
43
{
44
// Info<< "getLagrangianVector: nVar = " << nVar << endl;
45
return
Z_UNDEF;
46
}
47
48
49
// ************************ vim: set sw=4 sts=4 et: ************************ //