FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

createFields.H File Reference


Detailed Description

Definition in file createFields.H.

#include "src/finiteVolume/cfdTools/compressible/compressibleCreatePhi.H"
Include dependency graph for createFields.H:

Go to the source code of this file.

Functions

Info<< "Reading thermophysical
properties\n"<< endl;autoPtr
< hsCombustionThermo >  
pThermo (hsCombustionThermo::New(mesh))
volScalarField  rho (IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho())
dimensionedScalar  stoicRatio (thermo.lookup("stoichiometricAirFuelMassRatio"))
Info<< "Reading field U\n"
<< endl;volVectorField U(IOobject("U",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);Info
<< "Creating turbulence model\n"
<< endl;autoPtr
< compressible::turbulenceModel >  
turbulence (compressible::turbulenceModel::New(rho, U, phi, thermo))
IOdictionary  combustionProperties (IOobject("combustionProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Info<< "Creating combustion
model\n"<< endl;autoPtr
< combustionModel >  
combustion (combustionModel::combustionModel::New(combustionProperties, thermo, turbulence(), phi, rho))
 if (composition.contains("ft"))
 if (composition.contains("fu"))
fields  add (hs)

Variables

hsCombustionThermo &  thermo = pThermo()
basicMultiComponentMixture &  composition = thermo.composition()
volScalarField &  p = thermo.p()
volScalarField &  hs = thermo.hs()
const volScalarField &  psi = thermo.psi()
volScalarField &  ft = composition.Y("ft")
volScalarField &  fu = composition.Y("fu")
Info<< "Calculating field g.h\n"
<< endl;volScalarField gh("gh",
g &mesh.C());surfaceScalarField
ghf("gh", g &mesh.Cf());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;volScalarField dQ(IOobject("dQ",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE), mesh,
dimensionedScalar("dQ",
dimMass/pow3(dimTime)/dimLength,
0.0));Info<< "Creating field
DpDt\n"<< endl;volScalarField
DpDt=fvc::DDt(surfaceScalarField("phiU",
phi/fvc::interpolate(rho)), p);dimensionedScalar
initialMass=fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme
< scalar >::fieldTable  
fields

Function Documentation

Info<< "Reading thermophysical properties\n" << endl;autoPtr<hsCombustionThermo> pThermo ( hsCombustionThermo::   Newmesh  )
volScalarField rho ( IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE)   ,
thermo.   rho()  
)
dimensionedScalar stoicRatio ( thermo.   lookup"stoichiometricAirFuelMassRatio"  )
Info<< "Reading field U\n" << endl;volVectorField U( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);Info<< "Creating turbulence model\n" << endl;autoPtr<compressible::turbulenceModel> turbulence ( compressible::turbulenceModel::   Newrho, U, phi, thermo  )
IOdictionary combustionProperties ( IOobject("combustionProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE)    )

Referenced by if(), and combustionModel::New().

Info<< "Creating combustion model\n" << endl;autoPtr<combustionModel> combustion ( combustionModel::combustionModel::   NewcombustionProperties, thermo, turbulence(), phi, rho  )
if ( composition.   contains"ft"  )

Definition at line 135 of file createFields.H.

if ( composition.   contains"fu"  )

Definition at line 140 of file createFields.H.

fields add ( hs    )

Variable Documentation

hsCombustionThermo& thermo = pThermo()

Definition at line 8 of file createFields.H.

basicMultiComponentMixture& composition = thermo.composition()

Definition at line 10 of file createFields.H.

volScalarField& p = thermo.p()

Definition at line 30 of file createFields.H.

const volScalarField& psi = thermo.psi()

Definition at line 33 of file createFields.H.

Info<< "Calculating field g.h\n" << endl;volScalarField gh("gh", g & mesh.C());surfaceScalarField ghf("gh", g & mesh.Cf());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;volScalarField dQ( IOobject ( "dQ", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar("dQ", dimMass/pow3(dimTime)/dimLength, 0.0));Info<< "Creating field DpDt\n" << endl;volScalarField DpDt = fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);dimensionedScalar initialMass = fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields

Definition at line 133 of file createFields.H.