db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
41 lines
809 B
C++
41 lines
809 B
C++
Info<< "Reading transportProperties\n" << endl;
|
|
|
|
IOdictionary transportProperties
|
|
(
|
|
IOobject
|
|
(
|
|
"transportProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
|
|
dimensionedScalar rho0
|
|
(
|
|
transportProperties.lookup("rho0")
|
|
);
|
|
|
|
dimensionedScalar T0
|
|
(
|
|
transportProperties.lookup("T0")
|
|
);
|
|
|
|
dimensionedScalar nu
|
|
(
|
|
dimensionedScalar(transportProperties.lookup("mu"))/rho0
|
|
);
|
|
|
|
dimensionedScalar DT
|
|
(
|
|
dimensionedScalar(transportProperties.lookup("k"))/
|
|
(rho0*dimensionedScalar(transportProperties.lookup("Cp")))
|
|
);
|
|
|
|
dimensionedScalar beta
|
|
(
|
|
transportProperties.lookup("beta")
|
|
);
|
|
|
|
|