1 Info<< "Reading thermophysical properties\n" << endl;
3 autoPtr<hsCombustionThermo> pThermo
5 hsCombustionThermo::New(mesh)
8 hsCombustionThermo& thermo = pThermo();
10 basicMultiComponentMixture& composition = thermo.composition();
25 dimensionedScalar stoicRatio
27 thermo.lookup("stoichiometricAirFuelMassRatio")
30 volScalarField& p = thermo.p();
31 volScalarField& hs = thermo.hs();
33 const volScalarField& psi = thermo.psi();
35 volScalarField& ft = composition.Y("ft");
36 volScalarField& fu = composition.Y("fu");
38 Info<< "Reading field U\n" << endl;
53 #include "compressibleCreatePhi.H"
55 Info<< "Creating turbulence model\n" << endl;
56 autoPtr<compressible::turbulenceModel> turbulence
58 compressible::turbulenceModel::New(rho, U, phi, thermo)
61 IOdictionary combustionProperties
65 "combustionProperties",
73 Info<< "Creating combustion model\n" << endl;
74 autoPtr<combustionModel> combustion
76 combustionModel::combustionModel::New
97 dimensionedScalar("dQ", dimMass/pow3(dimTime)/dimLength, 0.0)
101 Info<< "Creating field DpDt\n" << endl;
102 volScalarField DpDt =
103 fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);
106 Info<< "Calculating field g.h\n" << endl;
107 volScalarField gh("gh", g & mesh.C());
109 surfaceScalarField ghf("gh", g & mesh.Cf());
115 dimensionedScalar initialMass = fvc::domainIntegrate(rho);
118 multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields;
120 if (composition.contains("ft"))
122 fields.add(composition.Y("ft"));
125 if (composition.contains("fu"))
127 fields.add(composition.Y("fu"));