#include "readGravitationalAcceleration.H" Info<< "Creating combustion model\n" << endl; autoPtr combustion ( combustionModels::rhoCombustionModel::New(mesh) ); rhoReactionThermo& thermo = combustion->thermo(); thermo.validate(args.executable(), "ha", "ea"); basicSpecieMixture& composition = thermo.composition(); PtrList& Y = composition.Y(); const word inertSpecie(thermo.lookup("inertSpecie")); if (!composition.contains(inertSpecie)) { FatalErrorInFunction << "Specified inert specie '" << inertSpecie << "' not found in " << "species list. Available species:" << composition.species() << exit(FatalError); } volScalarField& p = thermo.p(); volScalarField& T = thermo.T(); wordList rhoBoundaryTypes ( T.boundaryField().size(), zeroGradientFvPatchScalarField::typeName ); forAll(composition.Y(inertSpecie).boundaryField(), patchi) { rhoBoundaryTypes[patchi] = composition.Y(inertSpecie).boundaryField()[patchi].type(); } volScalarField rho ( IOobject ( "rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), thermo.rho(), rhoBoundaryTypes ); Info<< "\nReading field U\n" << endl; volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); #include "compressibleCreatePhi.H" mesh.setFluxRequired(p.name()); dimensionedScalar rhoMax ( dimensionedScalar::lookupOrDefault ( "rhoMax", simple.dict(), dimDensity, GREAT ) ); dimensionedScalar rhoMin ( dimensionedScalar::lookupOrDefault ( "rhoMin", simple.dict(), dimDensity, 0 ) ); Info<< "Creating turbulence model\n" << endl; autoPtr turbulence ( compressible::turbulenceModel::New ( rho, U, phi, thermo ) ); // Set the turbulence into the combustion model combustion->setTurbulence(turbulence()); Info<< "Creating multi-variate interpolation scheme\n" << endl; multivariateSurfaceInterpolationScheme::fieldTable fields; forAll(Y, i) { fields.add(Y[i]); } fields.add(thermo.he()); // SLFM-related fields Info<<"Creating field mf, mfVar, SDR\n"< Neta(etamax); for(label j=0 ; j