OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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;
Copyright © 2000-2009 OpenCFD Ltd