FreeFOAM The Cross-Platform CFD Toolkit
readTransportProperties.H
Go to the documentation of this file.
1  Info<< "\nReading transportProperties\n" << endl;
2  IOdictionary transportProperties
3  (
4  IOobject
5  (
6  "transportProperties",
7  runTime.constant(),
8  mesh,
9  IOobject::MUST_READ,
10  IOobject::NO_WRITE,
11  false
12  )
13  );
14 
15 
17  (
18  transportProperties.lookup("nu")
19  );
20 
21 
22  // Read centerline velocity for channel simulations
24  (
25  transportProperties.lookup("Ubar")
26  );
27 
28  dimensionedScalar magUbar = mag(Ubar);
29  vector flowDirection = (Ubar/magUbar).value();
30 
31 // ************************ vim: set sw=4 sts=4 et: ************************ //