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

createFields.H

Go to the documentation of this file.
00001     Info<< "Reading field T\n" << endl;
00002 
00003     volScalarField T
00004     (
00005         IOobject
00006         (
00007             "T",
00008             runTime.timeName(),
00009             mesh,
00010             IOobject::MUST_READ,
00011             IOobject::AUTO_WRITE
00012         ),
00013         mesh
00014     );
00015 
00016 
00017     Info<< "Reading transportProperties\n" << endl;
00018 
00019     IOdictionary transportProperties
00020     (
00021         IOobject
00022         (
00023             "transportProperties",
00024             runTime.constant(),
00025             mesh,
00026             IOobject::MUST_READ,
00027             IOobject::NO_WRITE
00028         )
00029     );
00030 
00031 
00032     Info<< "Reading diffusivity DT\n" << endl;
00033 
00034     dimensionedScalar DT
00035     (
00036         transportProperties.lookup("DT")
00037     );
00038 
00039 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines