compressibleCreatePhi.H
Go to the documentation of this file.00001 IOobject phiHeader
00002 (
00003 "phi",
00004 runTime.timeName(),
00005 mesh,
00006 IOobject::NO_READ
00007 );
00008
00009
00010 surfaceScalarField* phiPtr;
00011
00012 if (phiHeader.headerOk())
00013 {
00014 Info<< "Reading face flux field phi\n" << endl;
00015
00016 phiPtr = new surfaceScalarField
00017 (
00018 IOobject
00019 (
00020 "phi",
00021 runTime.timeName(),
00022 mesh,
00023 IOobject::MUST_READ,
00024 IOobject::AUTO_WRITE
00025 ),
00026 mesh
00027 );
00028 }
00029 else
00030 {
00031 Info<< "Calculating face flux field phi\n" << endl;
00032
00033 wordList phiTypes
00034 (
00035 rhoU.boundaryField().size(),
00036 calculatedFvPatchScalarField::typeName
00037 );
00038
00039 phiPtr = new surfaceScalarField
00040 (
00041 IOobject
00042 (
00043 "phi",
00044 runTime.timeName(),
00045 mesh,
00046 IOobject::NO_READ,
00047 IOobject::AUTO_WRITE
00048 ),
00049 linearInterpolate(rhoU) & mesh.Sf(),
00050 phiTypes
00051 );
00052 }
00053
00054 surfaceScalarField& phi = *phiPtr;
Copyright © 2000-2009 OpenCFD Ltd