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