Loading...
Searching...
No Matches
createFields.H File Reference
#include "createPhi.H"

Go to the source code of this file.

Functions

 Info<< "Reading thermophysical properties\n"<< endl;IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));_nu=autoPtr< dimensionedScalar > (new dimensionedScalar("nu", dimViscosity, transportProperties.lookup("nu")))
 
 Info<< "\nReading g"<< endl;_g=autoPtr< dimensionedVector > (new dimensionedVector("g", dimensionSet(0, 1, -2, 0, 0), vector(0, -9.81, 0)))
 
 Info<< "\nReading hRef"<< endl;_hRef=autoPtr< dimensionedScalar > (new dimensionedScalar("hRef", dimLength, 0))
 
 Info<< "Calculating field ghRef\n"<< endl;_ghRef=autoPtr< dimensionedScalar > (new dimensionedScalar("ghRef", dimAcceleration *dimLength, 0))
 
 Info<< "Reading field gh\n"<< endl;_gh=autoPtr< volScalarField > (new volScalarField(IOobject("gh", runTime.timeName(), mesh),(g &mesh.C()) - ghRef))
 
 Info<< "Reading field ghf\n"<< endl;_ghf=autoPtr< surfaceScalarField > (new surfaceScalarField(IOobject("ghf", runTime.timeName(), mesh),(g &mesh.Cf()) - ghRef))
 
 Info<< "Reading field T\n"<< endl;_T=autoPtr< volScalarField > (new volScalarField(IOobject("T", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh))
 
 Info<< "Reading field p_rgh\n"<< endl;_p_rgh=autoPtr< volScalarField > (new volScalarField(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh))
 
 Info<< "Reading field U\n"<< endl;_U=autoPtr< volVectorField > (new volVectorField(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh))
 
 Info<< "Creating turbulence model\n"<< endl;turbulence=autoPtr< incompressible::turbulenceModel > (incompressible::turbulenceModel::New(U, phi, laminarTransport))
 
 Info<< "Reading field alphat\n"<< endl;_alphat=autoPtr< volScalarField > (new volScalarField(IOobject("alphat", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh))
 
 Info<< "Reading field p\n"<< endl;_p=autoPtr< volScalarField > (new volScalarField(IOobject("p", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), p_rgh+rhok *gh))
 
 setRefCell (p, p_rgh, pimple.dict(), pRefCell, pRefValue)
 
 if (p_rgh.needReference())
 
mesh setFluxRequired (p_rgh.name())
 

Variables

dimensionedScalar & nu = _nu()
 
 _nut
 
volScalarField & nut = _nut()
 
 _UliftBC
 
volScalarField & UliftBC = _UliftBC()
 
 _Pr
 
dimensionedScalar & Pr = _Pr()
 
 _Prt
 
dimensionedScalar & Prt = _Prt()
 
 _beta
 
dimensionedScalar & beta = _beta()
 
 _TRef
 
dimensionedScalar & TRef = _TRef()
 
dimensionedVector & g = _g()
 
dimensionedScalar & hRef = _hRef()
 
dimensionedScalar & ghRef = _ghRef()
 
volScalarField & gh = _gh()
 
surfaceScalarField & ghf = _ghf()
 
volScalarField & T = _T()
 
volScalarField & p_rgh = _p_rgh()
 
volVectorField & U = _U()
 
 _laminarTransport
 
singlePhaseTransportModel & laminarTransport = _laminarTransport()
 
 _rhok
 
volScalarField & rhok = _rhok()
 
volScalarField & alphat = _alphat()
 
volScalarField & p = _p()
 
 pRefCell = 0
 
 pRefValue = 0.0
 
pimpleControl & pimple = _pimple()
 
 _MRF
 

Function Documentation

◆ if()

if ( p_rgh. needReference())

Definition at line 345 of file createFields.H.

◆ Info<< "\nReading g"<< endl;_g=autoPtr< dimensionedVector >()

Info<< "\nReading g"<< endl;_g=autoPtr< dimensionedVector > ( new dimensionedVector"g", dimensionSet(0, 1, -2, 0, 0), vector(0, -9.81, 0))

◆ Info<< "\nReading hRef"<< endl;_hRef=autoPtr< dimensionedScalar >()

Info<< "\nReading hRef"<< endl;_hRef=autoPtr< dimensionedScalar > ( new dimensionedScalar"hRef", dimLength, 0)

◆ Info<< "Calculating field ghRef\n"<< endl;_ghRef=autoPtr< dimensionedScalar >()

Info<< "Calculating field ghRef\n"<< endl;_ghRef=autoPtr< dimensionedScalar > ( new dimensionedScalar"ghRef", dimAcceleration *dimLength, 0)

◆ Info<< "Creating turbulence model\n"<< endl;turbulence=autoPtr< incompressible::turbulenceModel >()

Info<< "Creating turbulence model\n"<< endl;turbulence=autoPtr< incompressible::turbulenceModel > ( incompressible::turbulenceModel::New(U, phi, laminarTransport) )

◆ Info<< "Reading field alphat\n"<< endl;_alphat=autoPtr< volScalarField >()

Info<< "Reading field alphat\n"<< endl;_alphat=autoPtr< volScalarField > ( new volScalarFieldIOobject("alphat", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)

◆ Info<< "Reading field gh\n"<< endl;_gh=autoPtr< volScalarField >()

Info<< "Reading field gh\n"<< endl;_gh=autoPtr< volScalarField > ( new volScalarFieldIOobject("gh", runTime.timeName(), mesh),(g &mesh.C()) - ghRef)

◆ Info<< "Reading field ghf\n"<< endl;_ghf=autoPtr< surfaceScalarField >()

Info<< "Reading field ghf\n"<< endl;_ghf=autoPtr< surfaceScalarField > ( new surfaceScalarFieldIOobject("ghf", runTime.timeName(), mesh),(g &mesh.Cf()) - ghRef)

◆ Info<< "Reading field p\n"<< endl;_p=autoPtr< volScalarField >()

Info<< "Reading field p\n"<< endl;_p=autoPtr< volScalarField > ( new volScalarFieldIOobject("p", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), p_rgh+rhok *gh)

◆ Info<< "Reading field p_rgh\n"<< endl;_p_rgh=autoPtr< volScalarField >()

Info<< "Reading field p_rgh\n"<< endl;_p_rgh=autoPtr< volScalarField > ( new volScalarFieldIOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)

◆ Info<< "Reading field T\n"<< endl;_T=autoPtr< volScalarField >()

Info<< "Reading field T\n"<< endl;_T=autoPtr< volScalarField > ( new volScalarFieldIOobject("T", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)

◆ Info<< "Reading field U\n"<< endl;_U=autoPtr< volVectorField >()

Info<< "Reading field U\n"<< endl;_U=autoPtr< volVectorField > ( new volVectorFieldIOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)

◆ Info<< "Reading thermophysical properties\n"<< endl;IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));_nu=autoPtr< dimensionedScalar >()

Info<< "Reading thermophysical properties\n"<< endl;IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));_nu=autoPtr< dimensionedScalar > ( new dimensionedScalar"nu", dimViscosity, transportProperties.lookup("nu"))

◆ setFluxRequired()

mesh setFluxRequired ( p_rgh. name())

◆ setRefCell()

setRefCell ( p ,
p_rgh ,
pimple. dict(),
pRefCell ,
pRefValue  )

Variable Documentation

◆ _beta

_beta
Initial value:
= autoPtr<dimensionedScalar>
(
new dimensionedScalar
(
"beta",
dimless / dimTemperature,
transportProperties.lookup("beta")
)
)
IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE))

Definition at line 116 of file createFields.H.

◆ _laminarTransport

_laminarTransport
Initial value:
= autoPtr<singlePhaseTransportModel>
(
new singlePhaseTransportModel( U, phi )
)
surfaceScalarField & phi
volVectorField & U

Definition at line 265 of file createFields.H.

◆ _MRF

_MRF
Initial value:
= autoPtr<IOMRFZoneList>
(
new IOMRFZoneList(mesh)
)
Foam::fvMesh & mesh
Definition createMesh.H:47

Definition at line 357 of file createFields.H.

◆ _nut

_nut
Initial value:
= autoPtr<volScalarField>
(
new volScalarField
(
IOobject
(
"nut",
runTime.timeName(),
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
)
)
Foam::Time & runTime
Definition createTime.H:33

Definition at line 57 of file createFields.H.

◆ _Pr

_Pr
Initial value:
= autoPtr<dimensionedScalar>
(
new dimensionedScalar
(
"Pr",
dimless,
transportProperties.lookup("Pr")
)
)

Definition at line 92 of file createFields.H.

◆ _Prt

_Prt
Initial value:
= autoPtr<dimensionedScalar>
(
new dimensionedScalar
(
"Prt",
dimless,
transportProperties.lookup("Prt")
)
)

Definition at line 104 of file createFields.H.

◆ _rhok

_rhok
Initial value:
= autoPtr<volScalarField>
(
new volScalarField
(
IOobject
(
"rhok",
runTime.timeName(),
),
1.0 - beta * (T - TRef)
)
)
dimensionedScalar & TRef
dimensionedScalar & beta
volScalarField & T

Definition at line 278 of file createFields.H.

◆ _TRef

_TRef
Initial value:
= autoPtr<dimensionedScalar>
(
new dimensionedScalar
(
"TRef",
dimTemperature,
transportProperties.lookup("TRef")
)
)

Definition at line 128 of file createFields.H.

◆ _UliftBC

_UliftBC
Initial value:
= autoPtr<volScalarField>
(
new volScalarField
(
IOobject
(
"UliftBC",
runTime.timeName(),
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
)
)

Definition at line 74 of file createFields.H.

◆ alphat

volScalarField& alphat = _alphat()

Definition at line 310 of file createFields.H.

◆ beta

dimensionedScalar& beta = _beta()

Definition at line 125 of file createFields.H.

◆ g

dimensionedVector& g = _g()

Definition at line 150 of file createFields.H.

◆ gh

volScalarField& gh = _gh()

Definition at line 190 of file createFields.H.

◆ ghf

surfaceScalarField& ghf = _ghf()

Definition at line 205 of file createFields.H.

◆ ghRef

dimensionedScalar& ghRef = _ghRef()

Definition at line 174 of file createFields.H.

◆ hRef

dimensionedScalar& hRef = _hRef()

Definition at line 162 of file createFields.H.

◆ laminarTransport

singlePhaseTransportModel& laminarTransport = _laminarTransport()

Definition at line 269 of file createFields.H.

◆ nu

dimensionedScalar& nu = _nu()

Definition at line 54 of file createFields.H.

◆ nut

volScalarField& nut = _nut()
Examples
06POD_RBF.C.

Definition at line 72 of file createFields.H.

◆ p

volScalarField& p = _p()

Definition at line 328 of file createFields.H.

◆ p_rgh

volScalarField& p_rgh = _p_rgh()
Examples
10UnsteadyBBEnclosed.C, and 11UnsteadyBBOpen.C.

Definition at line 242 of file createFields.H.

◆ pimple

pimpleControl& pimple = _pimple()

Definition at line 334 of file createFields.H.

◆ Pr

dimensionedScalar& Pr = _Pr()

Definition at line 101 of file createFields.H.

◆ pRefCell

pRefCell = 0

Definition at line 331 of file createFields.H.

◆ pRefValue

pRefValue = 0.0

Definition at line 332 of file createFields.H.

◆ Prt

dimensionedScalar& Prt = _Prt()

Definition at line 113 of file createFields.H.

◆ rhok

volScalarField& rhok = _rhok()

Definition at line 291 of file createFields.H.

◆ T

volScalarField& T = _T()

Definition at line 224 of file createFields.H.

◆ TRef

dimensionedScalar& TRef = _TRef()

Definition at line 137 of file createFields.H.

◆ U

volVectorField& U = _U()

Definition at line 260 of file createFields.H.

◆ UliftBC

volScalarField& UliftBC = _UliftBC()

Definition at line 89 of file createFields.H.