write.H
Go to the documentation of this file.
1  if (runTime.outputTime())
2  {
3  volVectorField gradT(fvc::grad(T));
4 
5  volScalarField gradTx
6  (
7  IOobject
8  (
9  "gradTx",
10  runTime.timeName(),
11  mesh,
12  IOobject::NO_READ,
13  IOobject::AUTO_WRITE
14  ),
15  gradT.component(vector::X)
16  );
17 
18  volScalarField gradTy
19  (
20  IOobject
21  (
22  "gradTy",
23  runTime.timeName(),
24  mesh,
25  IOobject::NO_READ,
26  IOobject::AUTO_WRITE
27  ),
28  gradT.component(vector::Y)
29  );
30 
31  volScalarField gradTz
32  (
33  IOobject
34  (
35  "gradTz",
36  runTime.timeName(),
37  mesh,
38  IOobject::NO_READ,
39  IOobject::AUTO_WRITE
40  ),
41  gradT.component(vector::Z)
42  );
43 
44 
45  runTime.write();
46  }
Foam::fvc::grad
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcGrad.C:52
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::volVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
T
const volScalarField & T
Definition: createFields.H:25
Y
PtrList< volScalarField > & Y
Definition: createFields.H:36