to have the prefix 'write' rather than 'output' So outputTime() -> writeTime() but 'outputTime()' is still supported for backward-compatibility. Also removed the redundant secondary-writing functionality from Time which has been superseded by the 'writeRegisteredObject' functionObject.
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();
|
|
}
|