FreeFOAM The Cross-Platform CFD Toolkit
createRefUnits.H
Go to the documentation of this file.
1 reducedUnits refUnits;
2 
4 (
5  "reducedUnitsDict",
6  runTime.system(),
7  mesh,
8  IOobject::READ_IF_PRESENT,
9  IOobject::NO_WRITE
10 );
11 
12 if (reducedUnitsDictIOobject.headerOk())
13 {
14  Info << nl
15  << "Reading reference quantities from reducedUnitsDict file." << endl;
16 
17  IOdictionary reducedUnitsDict(reducedUnitsDictIOobject);
18 
19  refUnits.setRefValues(reducedUnitsDict);
20 }
21 
22 Info << refUnits << endl;
23 
24 // ************************ vim: set sw=4 sts=4 et: ************************ //