Info<< "Reading field p\n" << endl;
volScalarField p
(
IOobject
"p",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Info<< "Reading field rho\n" << endl;
volScalarField rho
"rho",
Info<< "Reading field U\n" << endl;
volVectorField U
"U",
# include "createPhi.H"
// Mass flux
// Initialisation does not matter because rhoPhi is reset after the
// gamma solution before it is used in the U equation.
surfaceScalarField rhoPhi = fvc::interpolate(rho)*phi;
volScalarField gamma
IOobject::NO_READ,
dimensionedScalar("0", dimless, 0.0)
volScalarField psiByRho
"psiByRho",
(gamma*psig + (1.0 - gamma)*psil)/rho
mesh.schemesDict().setFluxRequired(p.name());