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
dataConversion
foamToGMV
readConversionProperties.H
Go to the documentation of this file.
1
IOdictionary
conversionProperties
2
(
3
IOobject
4
(
5
"conversionProperties"
,
6
runTime.constant(),
7
mesh
,
8
IOobject::MUST_READ,
9
IOobject::NO_WRITE
10
)
11
);
12
13
14
scalar
startTime
15
(
16
readScalar
(
conversionProperties
.lookup(
"startTime"
))
17
);
18
19
word
vComp
20
(
21
conversionProperties
.lookup(
"vector"
)
22
);
23
24
word
format
25
(
26
conversionProperties
.lookup(
"format"
)
27
);
28
29
if
( (
format
!=
"ascii"
) && (
format
!=
"ieeei4r8"
) )
30
{
31
FatalError
<<
"format type: "
<<
format
<<
" unknown."
32
<<
" Valid options are: ascii ieeei4r8"
33
<<
abort
(
FatalError
);
34
35
}
36
word
cells
37
(
38
conversionProperties
.lookup(
"cells"
)
39
);
40
41
if
42
(
43
(
cells
!=
"hex"
)
44
)
45
{
46
FatalError
<<
"cells type: "
<<
cells
<<
" unknown."
47
<<
abort
(
FatalError
);
48
}
49
50
// ************************ vim: set sw=4 sts=4 et: ************************ //