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

readTransportProperties.H

Go to the documentation of this file.
00001     Info<< "\nReading transportProperties\n" << endl;
00002     IOdictionary transportProperties
00003     (
00004         IOobject
00005         (
00006             "transportProperties",
00007             runTime.constant(),
00008             mesh,
00009             IOobject::MUST_READ,
00010             IOobject::NO_WRITE,
00011             false
00012         )
00013     );
00014 
00015 
00016     dimensionedScalar nu
00017     (
00018         transportProperties.lookup("nu")
00019     );
00020 
00021 
00022     //  Read centerline velocity for channel simulations
00023     dimensionedVector Ubar
00024     (
00025         transportProperties.lookup("Ubar")
00026     );
00027 
00028     dimensionedScalar magUbar = mag(Ubar);
00029     vector flowDirection = (Ubar/magUbar).value();
00030 
00031 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines