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 Info<< "Reading field U\n" << endl;
00016 volVectorField U
00017 (
00018 IOobject
00019 (
00020 "U",
00021 runTime.timeName(),
00022 mesh,
00023 IOobject::MUST_READ,
00024 IOobject::AUTO_WRITE
00025 ),
00026 mesh
00027 );
00028
00029 # include "createPhi.H"
00030
00031 multiphaseMixture mixture(U, phi);
00032
00033
00034 volScalarField rho
00035 (
00036 IOobject
00037 (
00038 "rho",
00039 runTime.timeName(),
00040 mesh,
00041 IOobject::READ_IF_PRESENT
00042 ),
00043 mixture.rho()
00044 );
00045 rho.oldTime();
00046
00047
00048 label pRefCell = 0;
00049 scalar pRefValue = 0.0;
00050 setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
00051
00052
00053
00054 autoPtr<incompressible::turbulenceModel> turbulence
00055 (
00056 incompressible::turbulenceModel::New(U, phi, mixture)
00057 );
Copyright © 2000-2009 OpenCFD Ltd