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  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
32  << "format type: " << format << " unknown."
33  << " Valid options are: ascii ieeei4r8"
34  << abort(FatalError);
35 
36 }
37 
38 word cells
39 (
40  conversionProperties.lookup("cells")
41 );
42 
43 if
44 (
45  (cells != "hex")
46 )
47 {
48  FatalError
49  << "cells type: " << cells << " unknown."
50  << abort(FatalError);
51 }
word format(conversionProperties.lookup("format"))
dynamicFvMesh & mesh
errorManip< error > abort(error &err)
Definition: errorManip.H:132
#define readScalar
Definition: doubleScalar.C:38
word cells(conversionProperties.lookup("cells"))
IOdictionary conversionProperties(IOobject("conversionProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE))
scalar startTime(readScalar(conversionProperties.lookup("startTime")))
word vComp(conversionProperties.lookup("vector"))