if (mesh.nCells() != 1) { FatalErrorInFunction << "Solver only applicable to single cell cases" << exit(FatalError); } Info<< "Reading initial conditions.\n" << endl; IOdictionary initialConditions ( IOobject ( "initialConditions", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE ) ); scalar p0 = initialConditions.get("p"); scalar T0 = initialConditions.get("T"); #include "createBaseFields.H" Info<< "Reading thermophysical properties\n" << endl; autoPtr pThermo(psiReactionThermo::New(mesh)); psiReactionThermo& thermo = pThermo(); thermo.validate(args.executable(), "h"); autoPtr> pChemistry ( BasicChemistryModel::New(thermo) ); volScalarField rho ( IOobject ( "rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), thermo.rho() ); volScalarField Rspecific ( IOobject ( "Rspecific", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar(dimEnergy/dimMass/dimTemperature, Zero) ); volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedVector(dimVelocity, Zero) ); #include "createPhi.H" OFstream post(args.path()/"chemFoam.out"); post<< "# Time" << token::TAB << "Temperature [K]" << token::TAB << "Pressure [Pa]" << endl;