Info<< nl << "Reading thermophysicalProperties" << endl;
autoPtr<rhoChemistryModel> pChemistry
(
rhoChemistryModel::New(mesh)
);
rhoChemistryModel& chemistry = pChemistry();
hsReactionThermo& thermo = chemistry.thermo();
basicMultiComponentMixture& composition = thermo.composition();
PtrList<volScalarField>& Y = composition.Y();
word inertSpecie(thermo.lookup("inertSpecie"));
volScalarField rho
IOobject
"rho",
runTime.timeName(),
mesh
),
thermo.rho()
Info<< "Reading field U\n" << endl;
volVectorField U
"U",
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
volScalarField& p = thermo.p();
const volScalarField& psi = thermo.psi();
volScalarField& hs = thermo.hs();
const volScalarField& T = thermo.T();
#include "compressibleCreatePhi.H"
volScalarField kappa
"kappa",
IOobject::NO_READ,
dimensionedScalar("zero", dimless, 0.0)
Info << "Creating turbulence model.\n" << nl;
autoPtr<compressible::turbulenceModel> turbulence
compressible::turbulenceModel::New
rho,
U,
phi,
thermo
)
Info<< "Creating field DpDt\n" << endl;
volScalarField DpDt =
fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);
multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields;
forAll(Y, i)
{
fields.add(Y[i]);
}
fields.add(hs);
DimensionedField<scalar, volMesh> chemistrySh
"chemistry::Sh",
IOobject::NO_WRITE
dimensionedScalar("chemistrySh", dimEnergy/dimTime/dimVolume, 0.0)
mesh.schemesDict().setFluxRequired(p.name());