1 #include "readGravitationalAcceleration.H" 3 Info<<
"Reading thermophysical properties\n" <<
endl;
5 psiReactionThermo& thermo =
pThermo();
10 basicSpecieMixture& composition = thermo.composition();
11 PtrList<volScalarField>& Y = composition.Y();
13 const word
inertSpecie(thermo.lookup(
"inertSpecie"));
17 <<
"Inert specie " <<
inertSpecie <<
" not found in available species " 18 << composition.species()
31 IOobject::READ_IF_PRESENT,
37 Info<<
"\nReading field U\n" <<
endl;
53 mesh.setFluxRequired(p.name());
57 dimensionedScalar::lookupOrDefault
68 dimensionedScalar::lookupOrDefault
77 Info<<
"Creating turbulence model\n" <<
endl;
78 autoPtr<compressible::momentumTransportModel>
turbulence 89 Info<<
"Creating thermophysical transport model\n" <<
endl;
95 Info<<
"Creating combustion model\n" <<
endl;
96 autoPtr<CombustionModel<psiReactionThermo>>
combustion 101 Info<<
"Creating field dpdt\n" <<
endl;
114 Info<<
"Creating field kinetic energy K\n" <<
endl;
116 multivariateSurfaceInterpolationScheme<scalar>::fieldTable
fields;
122 fields.add(thermo.he());
const word & executable() const
Name of executable without the path.
pimpleNoLoopControl & pimple
errorManipArg< error, int > exit(error &err, const int errNo=1)
SLGThermo slgThermo(mesh, thermo)
Ostream & endl(Ostream &os)
Add newline and flush stream.
rhoReactionThermo & thermo
GeometricField< vector, fvPatchField, volMesh > volVectorField
CGAL::Exact_predicates_exact_constructions_kernel K
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
GeometricField< scalar, fvPatchField, volMesh > volScalarField
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
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::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
Info<< "Reading thermophysical properties\"<< endl;autoPtr< rhoReactionThermo > pThermo(rhoReactionThermo::New(mesh))
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
const dimensionSet dimDensity
Info<< "Creating thermophysical transport model\"<< endl;autoPtr< fluidThermophysicalTransportModel > thermophysicalTransport(fluidThermophysicalTransportModel::New(turbulence(), thermo))
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.