createFields.H File Reference
Include dependency graph for createFields.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Info<< "Reading thermophysical properties\n"<< endl;autoPtr< fluidThermo > pThermo (fluidThermo::New(mesh))
thermo validate (args.executable(), "h", "e")
volScalarField rho (IOobject("rho",, mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), thermo.renameRho())
Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U",, mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, simple.dict(), thermo.incompressible());mesh.schemes().setFluxRequired(;Info<< "Creating turbulence model\n"<< endl;autoPtr< compressible::momentumTransportModel > turbulence (compressible::momentumTransportModel::New(rho, U, phi, thermo))
Info<< "Creating thermophysical transport model\n"<< endl;autoPtr< fluidThermoThermophysicalTransportModel > thermophysicalTransport (fluidThermoThermophysicalTransportModel::New(turbulence(), thermo))


fluidThermo & thermo = pThermo()
volScalarField & p = thermo.p()
dimensionedScalar initialMass = fvc::domainIntegrate(rho)

Function Documentation

◆ pThermo()

Info<< "Reading thermophysical properties\n" << endl;autoPtr<fluidThermo> pThermo ( fluidThermo::New(mesh)  )

◆ validate()

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

◆ rho()

volScalarField rho ( IOobject("rho",, mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE)  ,
thermo.  renameRho() 

◆ turbulence()

Info<< "Reading field U\n" << endl;volVectorField U( IOobject ( "U",, mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);pressureReference pressureReference( p, simple.dict(), thermo.incompressible());mesh.schemes().setFluxRequired(;Info<< "Creating turbulence model\n" << endl;autoPtr<compressible::momentumTransportModel> turbulence ( compressible::momentumTransportModel::New(rho, U, phi, thermo )

◆ thermophysicalTransport()

Info<< "Creating thermophysical transport model\n" << endl;autoPtr<fluidThermoThermophysicalTransportModel> thermophysicalTransport ( fluidThermoThermophysicalTransportModel::New(turbulence(), thermo )

Variable Documentation

◆ thermo

fluidThermo& thermo = pThermo()

Definition at line 7 of file createFields.H.

◆ p

volScalarField& p = thermo.p()

Definition at line 10 of file createFields.H.

◆ initialMass

dimensionedScalar initialMass = fvc::domainIntegrate(rho)

Definition at line 68 of file createFields.H.

Referenced by if().