50 lines
846 B
C
50 lines
846 B
C
Info<< "Reading field T\n" << endl;
|
|
|
|
volScalarField T
|
|
(
|
|
IOobject
|
|
(
|
|
"T",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh
|
|
);
|
|
|
|
|
|
Info<< "Reading diffusivity DT\n" << endl;
|
|
|
|
volScalarField DT
|
|
(
|
|
IOobject
|
|
(
|
|
"DT",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::READ_IF_PRESENT,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh,
|
|
dimensionedScalar(dimViscosity, Zero)
|
|
);
|
|
|
|
if (!DT.headerOk())
|
|
{
|
|
IOdictionary transportProperties
|
|
(
|
|
IOobject
|
|
(
|
|
"transportProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ_IF_MODIFIED,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
DT = dimensionedScalar("DT", dimViscosity, transportProperties);
|
|
}
|
|
|
|
#include "createFvOptions.H"
|