Go to the source code of this file.
|
Info<< "Reading thermophysical properties\"<< endl;autoPtr< rhoReactionThermo > | pThermo (rhoReactionThermo::New(mesh)) |
|
thermo | validate (args.executable(), "h", "e") |
|
const word | inertSpecie (thermo.lookup("inertSpecie")) |
|
| if (!composition.species().found(inertSpecie)) |
|
volScalarField | rho (IOobject("rho", runTime.timeName(), mesh), thermo.rho()) |
|
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField &p=thermo.p();pressureControl pressureControl(p, rho, pimple.dict(), false);mesh.setFluxRequired(p.name());Info<< "Creating turbulence model.\"<< nl;autoPtr< compressible::momentumTransportModel > | turbulence (compressible::momentumTransportModel::New(rho, U, phi, thermo)) |
|
Info<< "Creating thermophysical transport model\"<< endl;autoPtr< rhoReactionThermophysicalTransportModel > | thermophysicalTransport (rhoReactionThermophysicalTransportModel::New(turbulence(), thermo)) |
|
Info<< "Creating reaction model\"<< endl;autoPtr< CombustionModel< rhoReactionThermo > > | reaction (CombustionModel< rhoReactionThermo >::New(thermo, turbulence())) |
|
| forAll (Y, i) |
|
fields | add (thermo.he()) |
|
|
rhoReactionThermo & | thermo = pThermo() |
|
basicSpecieMixture & | composition = thermo.composition() |
|
PtrList< volScalarField > & | Y = composition.Y() |
|
Info<< "Creating field dpdt\"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar(p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\"<< endl;volScalarField K("K", 0.5 *magSqr(U));dimensionedScalar initialMass=fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme< scalar >::fieldTable | fields |
|
◆ pThermo()
Info<< "Reading thermophysical properties\n" << endl;autoPtr<rhoReactionThermo> pThermo |
( |
rhoReactionThermo::New(mesh) |
| ) |
|
◆ validate()
thermo validate |
( |
args. |
executable(), |
|
|
"h" |
, |
|
|
"e" |
|
|
) |
| |
◆ inertSpecie()
const word inertSpecie |
( |
thermo. |
lookup"inertSpecie" | ) |
|
◆ if()
if |
( |
!composition. |
species).found(inertSpecie | ) |
|
Definition at line 12 of file createFields.H.
References args, Foam::dimTime, Foam::fvc::domainIntegrate(), dpdt, Foam::endl(), argList::executable(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, inertSpecie(), Foam::Info, initialMass, Foam::magSqr(), mesh, Foam::compressible::New(), Foam::nl, p, phi, pimple, pressureControl, reaction(), rho, runTime, thermo, thermophysicalTransport(), turbulence, and U().
◆ rho()
volScalarField rho |
( |
IOobject("rho", runTime.timeName(), mesh) |
, |
|
|
thermo. |
rho() |
|
) |
| |
◆ turbulence()
Info<< "Reading field U\n" << endl;volVectorField U( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);volScalarField& p = thermo.p();pressureControl pressureControl(p, rho, pimple.dict(), false);mesh.setFluxRequired(p.name());Info << "Creating turbulence model.\n" << nl;autoPtr<compressible::momentumTransportModel> turbulence |
( |
compressible::momentumTransportModel::New(rho, U, phi, thermo) |
| ) |
|
◆ thermophysicalTransport()
Info<< "Creating thermophysical transport model\n" << endl;autoPtr<rhoReactionThermophysicalTransportModel> thermophysicalTransport |
( |
rhoReactionThermophysicalTransportModel::New(turbulence(), thermo) |
| ) |
|
◆ reaction()
Info<< "Creating reaction model\n" << endl;autoPtr<CombustionModel<rhoReactionThermo> > reaction |
( |
CombustionModel< rhoReactionThermo > |
::Newthermo, turbulence() | ) |
|
◆ forAll()
◆ add()
◆ thermo
rhoReactionThermo& thermo = pThermo() |
◆ composition
basicSpecieMixture& composition = thermo.composition() |
PtrList<volScalarField>& Y = composition.Y() |
◆ fields
Info<< "Creating field dpdt\n" << endl;volScalarField dpdt( IOobject ( "dpdt", runTime.timeName(), mesh ), mesh, dimensionedScalar(p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\n" << endl;volScalarField K("K", 0.5*magSqr(U));dimensionedScalar initialMass = fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields |