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.lookup<scalar>(
"p");
22 scalar T0 = initialConditions.lookup<scalar>(
"T");
26 Info<<
"Reading thermophysical properties\n" <<
endl;
78 #include "createPhi.H" 81 post<<
"# Time" << token::TAB <<
"Temperature [K]" << token::TAB
82 <<
"Pressure [Pa]" <<
endl;
const word & executable() const
Name of executable without the path.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OFstream post(args.path()/"chemFoam.out")
Info<< "Reading thermophysical properties\"<< endl;autoPtr< fluidReactionThermo > pThermo(fluidReactionThermo::New(mesh))
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
volScalarField Rspecific(IOobject("Rspecific", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimensionSet(dimEnergy/dimMass/dimTemperature), 0))
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimVelocity
const dimensionSet dimEnergy
const dimensionSet dimMass
fileName path() const
Return the path to the caseName.
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
autoPtr< basicChemistryModel > pChemistry(basicChemistryModel::New(thermo))
Foam::argList args(argc, argv)
const dimensionSet dimTemperature