FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

write.H

Go to the documentation of this file.
00001     if (runTime.outputTime())
00002     {
00003         volVectorField gradT = fvc::grad(T);
00004 
00005         volScalarField gradTx
00006         (
00007             IOobject
00008             (
00009                 "gradTx",
00010                 runTime.timeName(),
00011                 mesh,
00012                 IOobject::NO_READ,
00013                 IOobject::AUTO_WRITE
00014             ),
00015             gradT.component(vector::X)
00016         );
00017 
00018         volScalarField gradTy
00019         (
00020             IOobject
00021             (
00022                 "gradTy",
00023                 runTime.timeName(),
00024                 mesh,
00025                 IOobject::NO_READ,
00026                 IOobject::AUTO_WRITE
00027             ),
00028             gradT.component(vector::Y)
00029         );
00030 
00031         volScalarField gradTz
00032         (
00033             IOobject
00034             (
00035                 "gradTz",
00036                 runTime.timeName(),
00037                 mesh,
00038                 IOobject::NO_READ,
00039                 IOobject::AUTO_WRITE
00040             ),
00041             gradT.component(vector::Z)
00042         );
00043 
00044 
00045         runTime.write();
00046     }
00047 
00048 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines