OpenFOAM: API Guide
v2112
The open source CFD toolbox
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_IF_MODIFIED,
9
IOobject::NO_WRITE
10
)
11
);
12
13
14
scalar
startTime
15
(
16
conversionProperties
.get<scalar>(
"startTime"
)
17
);
18
19
word
vComp
20
(
21
conversionProperties
.get<word>(
"vector"
)
22
);
23
24
word
format
25
(
26
conversionProperties
.get<word>(
"format"
)
27
);
28
29
if
((
format
!=
"ascii"
) && (
format
!=
"ieeei4r8"
))
30
{
31
FatalError
32
<<
"format type: "
<<
format
<<
" unknown."
33
<<
" Valid options are: ascii ieeei4r8"
34
<< abort(FatalError);
35
36
}
37
38
word
cells
39
(
40
conversionProperties
.get<word>(
"cells"
)
41
);
42
43
if
44
(
45
(
cells
!=
"hex"
)
46
)
47
{
48
FatalError
49
<<
"cells type: "
<<
cells
<<
" unknown."
50
<< abort(FatalError);
51
}
startTime
Foam::label startTime
Definition:
checkTimeOptions.H:1
mesh
dynamicFvMesh & mesh
Definition:
createDynamicFvMesh.H:6
runTime
engineTime & runTime
Definition:
createEngineTime.H:13
cells
const cellShapeList & cells
Definition:
gmvOutputHeader.H:3
format
word format(conversionProperties.get< word >("format"))
conversionProperties
IOdictionary conversionProperties(IOobject("conversionProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE))
vComp
word vComp(conversionProperties.get< word >("vector"))
applications
utilities
postProcessing
dataConversion
foamToGMV
readConversionProperties.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.