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 transportProperties\n" << endl;
00002 
00003     IOdictionary transportProperties
00004     (
00005         IOobject
00006         (
00007             "transportProperties",
00008             runTime.constant(),
00009             mesh,
00010             IOobject::MUST_READ,
00011             IOobject::NO_WRITE
00012         )
00013     );
00014 
00015     dimensionedScalar nu
00016     (
00017         transportProperties.lookup("nu")
00018     );
00019 
00020     Info<< "Reading field p\n" << endl;
00021     volScalarField p
00022     (
00023         IOobject
00024         (
00025             "p",
00026             runTime.timeName(),
00027             mesh,
00028             IOobject::MUST_READ,
00029             IOobject::AUTO_WRITE
00030         ),
00031         mesh
00032     );
00033 
00034 
00035     Info<< "Reading field U\n" << endl;
00036     volVectorField U
00037     (
00038         IOobject
00039         (
00040             "U",
00041             runTime.timeName(),
00042             mesh,
00043             IOobject::MUST_READ,
00044             IOobject::AUTO_WRITE
00045         ),
00046         mesh
00047     );
00048 
00049 
00050 #   include <finiteVolume/createPhi.H>
00051 
00052 
00053     label pRefCell = 0;
00054     scalar pRefValue = 0.0;
00055     setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
00056 
00057 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines