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;
IOobject reducedUnitsDictIOobject("reducedUnitsDict", runTime.system(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE)
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
reducedUnits refUnits
Definition: createRefUnits.H:1
dynamicFvMesh & mesh
static const char nl
Definition: Ostream.H:260
messageStream Info