to simplify construction of dimensionedScalar properties and avoid the duplication of the name string in the constructor call.
21 lines
404 B
C
21 lines
404 B
C
Info<< "Reading transportProperties\n" << endl;
|
|
|
|
IOdictionary transportProperties
|
|
(
|
|
IOobject
|
|
(
|
|
"transportProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ_IF_MODIFIED,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
|
|
dimensionedScalar nu
|
|
(
|
|
"nu",
|
|
dimViscosity,
|
|
transportProperties
|
|
);
|