Functions | Variables
createFields.H File Reference
Include dependency graph for createFields.H:

Go to the source code of this file.


Info<< "Creating reaction model\"<< endl;autoPtr< combustionModels::rhoCombustionModel > reaction (combustionModels::rhoCombustionModel::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();mesh.setFluxRequired(;Info<< "Creating turbulence model.\"<< nl;autoPtr< compressible::turbulenceModel > turbulence (compressible::turbulenceModel::New(rho, U, phi, thermo))
reaction setTurbulence (turbulence())
 forAll (Y, i)
fields add (thermo.he())
volScalarField Qdot (IOobject("Qdot", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), mesh, dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0))


rhoReactionThermo & thermo = reaction->thermo()
basicMultiComponentMixture & composition = thermo.composition()
PtrList< volScalarField > & Y = composition.Y()
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);p_rgh=p - rho *gh;Info<< "Creating field dpdt\"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar("dpdt", p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\"<< endl;volScalarField K("K", 0.5 *magSqr(U));multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields

Function Documentation

◆ reaction()

Info<< "Creating reaction model\n" << endl;autoPtr<combustionModels::rhoCombustionModel> reaction ( combustionModels::rhoCombustionModel::New(mesh )

◆ validate()

thermo validate ( args.  executable(),
"h"  ,

◆ inertSpecie()

const word inertSpecie ( thermo.  lookup"inertSpecie")

◆ if()

if ( !composition.  species).found(inertSpecie)

◆ 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();mesh.setFluxRequired(;Info << "Creating turbulence model.\n" << nl;autoPtr<compressible::turbulenceModel> turbulence ( compressible::turbulenceModel::New(rho, U, phi, thermo )

◆ setTurbulence()

reaction setTurbulence ( turbulence()  )

◆ forAll()

forAll ( Y  ,

Definition at line 114 of file createFields.H.

References Foam::dimEnergy, Foam::dimTime, Foam::dimVolume, mesh, and Qdot().

Here is the call graph for this function:

◆ add()

fields add ( thermo.  he())

◆ Qdot()

volScalarField Qdot ( IOobject("Qdot", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE)  ,
mesh  ,
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)   

Variable Documentation

◆ thermo

rhoReactionThermo& thermo = reaction->thermo()

Definition at line 10 of file createFields.H.

◆ composition

basicMultiComponentMixture& composition = thermo.composition()

Definition at line 13 of file createFields.H.

◆ Y

PtrList<volScalarField>& Y = composition.Y()

Definition at line 14 of file createFields.H.

◆ fields

Info<< "Reading field p_rgh\n" << endl;volScalarField p_rgh( IOobject ( "p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);p_rgh = p - rho*gh;Info<< "Creating field dpdt\n" << endl;volScalarField dpdt( IOobject ( "dpdt", runTime.timeName(), mesh ), mesh, dimensionedScalar("dpdt", p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\n" << endl;volScalarField K("K", 0.5*magSqr(U));multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields

Definition at line 112 of file createFields.H.