Info<< "Reading field p\n" << endl;
volScalarField p
(
IOobject
"p",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
p.oldTime();
Info<< "Reading field T\n" << endl;
volScalarField T
"T",
T.correctBoundaryConditions();
volScalarField psi
"psi",
IOobject::NO_READ,
1.0/(R*T)
psi.oldTime();
# include "rhoBoundaryTypes.H"
volScalarField rho
"rho",
p*psi,
rhoBoundaryTypes
Info<< "Reading field U\n" << endl;
volVectorField U
"U",
# include "rhoUboundaryTypes.H"
volVectorField rhoU
"rhoU",
rho*U,
rhoUboundaryTypes
# include "rhoEboundaryTypes.H"
volScalarField rhoE
"rhoE",
rho*Cv*T + 0.5*rho*magSqr(rhoU/rho),
rhoEboundaryTypes
# include "compressibleCreatePhi.H"
phi.oldTime();
surfaceScalarField phiv
"phiv",
phi/linearInterpolate(rho),
phi.boundaryField().types()
rhoU.correctBoundaryConditions();
multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields;
volScalarField magRhoU = mag(rhoU);
volScalarField H("H", (rhoE + p)/rho);
fields.add(rho);
fields.add(magRhoU);
fields.add(H);
mesh.schemesDict().setFluxRequired(p.name());