FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

readConversionProperties.H

Go to the documentation of this file.
00001 IOdictionary conversionProperties
00002 (
00003     IOobject
00004     (
00005         "conversionProperties",
00006         runTime.constant(),
00007         mesh,
00008         IOobject::MUST_READ,
00009         IOobject::NO_WRITE
00010     )
00011 );
00012 
00013 
00014 scalar startTime
00015 (
00016     readScalar(conversionProperties.lookup("startTime"))
00017 );
00018 
00019 word vComp
00020 (
00021     conversionProperties.lookup("vector")
00022 );
00023 
00024 word format
00025 (
00026     conversionProperties.lookup("format")
00027 );
00028 
00029 if ( (format != "ascii") && (format != "ieeei4r8") )
00030 {
00031     FatalError << "format type: " << format << " unknown." 
00032         << " Valid options are: ascii ieeei4r8"
00033         << abort(FatalError);
00034 
00035 }   
00036 word cells
00037 (
00038     conversionProperties.lookup("cells")
00039 );
00040 
00041 if
00042 (
00043     (cells != "hex")
00044 )
00045 {
00046     FatalError << "cells type: " << cells << " unknown."
00047         << abort(FatalError);
00048 }
00049 
00050 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines