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

readThermophysicalProperties.H

Go to the documentation of this file.
00001 Info<< "Reading thermophysicalProperties\n" << endl;
00002 
00003 // Pr defined as a separate constant to enable calculation of k, currently
00004 // inaccessible through thermo
00005 IOdictionary thermophysicalProperties
00006 (
00007     IOobject
00008     (
00009         "thermophysicalProperties",
00010         runTime.constant(),
00011         mesh,
00012         IOobject::MUST_READ,
00013         IOobject::NO_WRITE
00014     )
00015 );
00016 
00017 dimensionedScalar Pr = dimensionedScalar("Pr", dimless, 1.0);
00018 
00019 if (thermophysicalProperties.found("Pr"))
00020 {
00021     Pr = thermophysicalProperties.lookup("Pr");
00022 }
Copyright © 2000-2009 OpenCFD Ltd