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

createRefUnits.H

Go to the documentation of this file.
00001 reducedUnits refUnits;
00002 
00003 IOobject reducedUnitsDictIOobject
00004 (
00005     "reducedUnitsDict",
00006     runTime.system(),
00007     mesh,
00008     IOobject::READ_IF_PRESENT,
00009     IOobject::NO_WRITE
00010 );
00011 
00012 if (reducedUnitsDictIOobject.headerOk())
00013 {
00014     Info << nl
00015         << "Reading reference quantities from reducedUnitsDict file." << endl;
00016 
00017     IOdictionary reducedUnitsDict(reducedUnitsDictIOobject);
00018 
00019     refUnits.setRefValues(reducedUnitsDict);
00020 }
00021 
00022 Info << refUnits << endl;
00023 
00024 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines