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 =
readScalar(initialConditions.lookup(
"p"));
22 scalar T0 =
readScalar(initialConditions.lookup(
"T"));
26 Info<<
nl <<
"Reading thermophysicalProperties" <<
endl;
84 p.boundaryField().types()
87 #include "createPhi.H"
90 post<<
"# Time" << token::TAB <<
"Temperature [K]" << token::TAB
91 <<
"Pressure [Pa]" <<
endl;
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
const dimensionSet dimVelocity
const dimensionSet dimEnergy
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Info<< "Reading initial conditions.\n"<< endl;IOdictionary initialConditions(IOobject("initialConditions", runTime.constant(), runTime, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));scalar p0=readScalar(initialConditions.lookup("p"));scalar T0=readScalar(initialConditions.lookup("T"));# 24 "/home/chenjia/OpenFOAM/OpenFOAM-v3.0plus/applications/solvers/combustion/chemFoam/createFields.H" 2 Info<< nl<< "Reading thermophysicalProperties"<< endl;autoPtr< psiChemistryModel > pChemistry(psiChemistryModel::New(mesh))
Ostream & endl(Ostream &os)
Add newline and flush stream.
psiChemistryModel & chemistry
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
const word & executable() const
Name of executable without the path.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
fileName path() const
Return the path to the caseName.
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
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
basicMultiComponentMixture & composition
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
volScalarField Rspecific(IOobject("Rspecific", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar("zero", dimensionSet(dimEnergy/dimMass/dimTemperature), 0.0))
Foam::argList args(argc, argv)
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), Urel+SRF->U())
PtrList< volScalarField > & Y