Go to the documentation of this file. 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;
31 autoPtr<BasicChemistryModel<psiReactionThermo>>
pChemistry
77 #include "createPhi.H"
80 post<<
"# Time" << token::TAB <<
"Temperature [K]" << token::TAB
81 <<
"Pressure [Pa]" <<
endl;
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
static constexpr const zero Zero
const dimensionSet dimVelocity
const dimensionSet dimEnergy
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Ostream & endl(Ostream &os)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
autoPtr< BasicChemistryModel< psiReactionThermo > > pChemistry(BasicChemistryModel< psiReactionThermo >::New(thermo))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
OFstream post(args.path()/"chemFoam.out")
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
#define FatalErrorInFunction
const word & executable() const noexcept
volScalarField Rspecific(IOobject("Rspecific", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimEnergy/dimMass/dimTemperature, Zero))
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
const volScalarField & p0
Foam::argList args(argc, argv)
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiReactionThermo > pThermo(psiReactionThermo::New(mesh))