1 Info<<
"Reading thermophysical properties\n" <<
endl;
3 psiReactionThermo& thermo =
pThermo();
8 basicSpecieMixture& composition = thermo.composition();
9 PtrList<volScalarField>& Y = composition.Y();
11 const word
inertSpecie(thermo.lookup(
"inertSpecie"));
15 <<
"Inert specie " <<
inertSpecie <<
" not found in available species " 16 << composition.species()
20 Info<<
"Creating field rho\n" <<
endl;
36 Info<<
"\nReading field U\n" <<
endl;
52 #include "createMRF.H" 55 Info<<
"Creating turbulence model\n" <<
endl;
56 autoPtr<compressible::turbulenceModel>
turbulence 67 Info<<
"Creating combustion model\n" <<
endl;
68 autoPtr<CombustionModel<psiReactionThermo>>
combustion 74 #include "readGravitationalAcceleration.H" 92 mesh.setFluxRequired(p_rgh.name());
97 multivariateSurfaceInterpolationScheme<scalar>::fieldTable
fields;
103 fields.add(thermo.he());
109 "additionalControls",
112 IOobject::MUST_READ_IF_MODIFIED,
119 additionalControlsDict.lookup(
"solvePrimaryRegion")
124 additionalControlsDict.lookupOrDefault<
bool>(
"solvePyrolysisRegion",
true)
128 Info<<
"Creating field dpdt\n" <<
endl;
141 Info<<
"Creating field kinetic energy K\n" <<
endl;
Switch solvePrimaryRegion(additionalControlsDict.lookup("solvePrimaryRegion"))
Info<< "Reading initial conditions.\"<< endl;IOdictionary initialConditions(IOobject("initialConditions", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));scalar p0=readScalar(initialConditions.lookup("p"));scalar T0=readScalar(initialConditions.lookup("T"));# 24 "/home/ubuntu/OpenFOAM-7/applications/solvers/combustion/chemFoam/createFields.H" 2 Info<< "Reading thermophysical properties\"<< endl;autoPtr< rhoReactionThermo > pThermo(rhoReactionThermo::New(mesh))
const word & executable() const
Name of executable without the path.
errorManipArg< error, int > exit(error &err, const int errNo=1)
volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
SLGThermo slgThermo(mesh, thermo)
Switch solvePyrolysisRegion(additionalControlsDict.lookupOrDefault< bool >("solvePyrolysisRegion", true))
Ostream & endl(Ostream &os)
Add newline and flush stream.
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
rhoReactionThermo & thermo
GeometricField< vector, fvPatchField, volMesh > volVectorField
CGAL::Exact_predicates_exact_constructions_kernel K
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensioned< scalar > magSqr(const dimensioned< Type > &)
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
Info<< "Creating combustion model\"<< endl;autoPtr< CombustionModel< psiReactionThermo > > combustion(CombustionModel< psiReactionThermo >::New(thermo, turbulence()))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Foam::argList args(argc, argv)
const word inertSpecie(thermo.lookup("inertSpecie"))
Creates and initialises the face-flux field phi.
IOdictionary additionalControlsDict(IOobject("additionalControls", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE))