29 lines
627 B
C
29 lines
627 B
C
Info<< "\nReading transportProperties\n" << endl;
|
|
IOdictionary transportProperties
|
|
(
|
|
IOobject
|
|
(
|
|
"transportProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::NO_WRITE,
|
|
false
|
|
)
|
|
);
|
|
|
|
|
|
dimensionedScalar nu
|
|
(
|
|
transportProperties.lookup("nu")
|
|
);
|
|
|
|
|
|
// Read centerline velocity for channel simulations
|
|
dimensionedVector Ubar
|
|
(
|
|
transportProperties.lookup("Ubar")
|
|
);
|
|
|
|
dimensionedScalar magUbar = mag(Ubar);
|
|
vector flowDirection = (Ubar/magUbar).value();
|