ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / solvers / incompressible / channelFoam / readTransportProperties.H
blobabaee647c753d14e25258899dcfbcba9acce273f
1     Info<< "\nReading transportProperties\n" << endl;
2     IOdictionary transportProperties
3     (
4         IOobject
5         (
6             "transportProperties",
7             runTime.constant(),
8             mesh,
9             IOobject::MUST_READ_IF_MODIFIED,
10             IOobject::NO_WRITE,
11             false
12         )
13     );
16     dimensionedScalar nu
17     (
18         transportProperties.lookup("nu")
19     );
22     //  Read centerline velocity for channel simulations
23     dimensionedVector Ubar
24     (
25         transportProperties.lookup("Ubar")
26     );
28     dimensionedScalar magUbar = mag(Ubar);
29     vector flowDirection = (Ubar/magUbar).value();