- relocate some standard functionality to TimePaths to allow a lighter means of managing time directories without using the entire Time mechanism. - optional enableLibs for Time construction (default is on) and a corresponding argList::noLibs() and "-no-libs" option STYLE: - mark Time::outputTime() as deprecated MAY-2016 - use pre-increment for runTime, although there is no difference in behaviour or performance.
47 lines
1003 B
C
47 lines
1003 B
C
if (runTime.writeTime())
|
|
{
|
|
volVectorField gradT(fvc::grad(T));
|
|
|
|
volScalarField gradTx
|
|
(
|
|
IOobject
|
|
(
|
|
"gradTx",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::NO_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
gradT.component(vector::X)
|
|
);
|
|
|
|
volScalarField gradTy
|
|
(
|
|
IOobject
|
|
(
|
|
"gradTy",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::NO_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
gradT.component(vector::Y)
|
|
);
|
|
|
|
volScalarField gradTz
|
|
(
|
|
IOobject
|
|
(
|
|
"gradTz",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::NO_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
gradT.component(vector::Z)
|
|
);
|
|
|
|
|
|
runTime.write();
|
|
}
|