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

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 }
00023 
00024 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines