1 if (
mesh.nCells() != 1)
4 <<
"Solver only applicable to single cell cases"
8 Info<<
"Reading initial conditions.\n" <<
endl;
9 IOdictionary initialConditions
16 IOobject::MUST_READ_IF_MODIFIED,
21 scalar
p0 = initialConditions.get<scalar>(
"p");
22 scalar
T0 = initialConditions.get<scalar>(
"T");
26 Info<<
"Reading thermophysical properties\n" << endl;
27 autoPtr<psiReactionThermo>
pThermo(psiReactionThermo::New(
mesh));
31 autoPtr<BasicChemistryModel<psiReactionThermo>>
pChemistry
33 BasicChemistryModel<psiReactionThermo>::New(
thermo)
60 dimensionedScalar(dimEnergy/dimMass/dimTemperature, Zero)
74 dimensionedVector(dimVelocity, Zero)
77 #include "createPhi.H"
80 post<<
"# Time" << token::TAB <<
"Temperature [K]" << token::TAB
81 <<
"Pressure [Pa]" << endl;
fileName path() const
Return the full path to the (processor local) case.
const word & executable() const noexcept
Name of executable without the path.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
const volScalarField & p0
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)
autoPtr< BasicChemistryModel< psiReactionThermo > > pChemistry(BasicChemistryModel< psiReactionThermo >::New(thermo))
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiReactionThermo > pThermo(psiReactionThermo::New(mesh))
OFstream post(args.path()/"chemFoam.out")