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.lookup<scalar>("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 {
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 {
49  << "cells type: " << cells << " unknown."
50  << abort(FatalError);
51 }
word cells(conversionProperties.lookup("cells"))
error FatalError
IOdictionary conversionProperties(IOobject("conversionProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE))
scalar startTime(conversionProperties.lookup< scalar >("startTime"))
word format(conversionProperties.lookup("format"))
fvMesh & mesh
word vComp(conversionProperties.lookup("vector"))
errorManip< error > abort(error &err)
Definition: errorManip.H:131