createFields.H
Go to the documentation of this file.
1 Info<< "Reading thermophysical properties\n" << endl;
2 
3 autoPtr<psiThermo> pThermo
4 (
6 );
7 psiThermo& thermo = pThermo();
8 thermo.validate(args.executable(), "h", "e");
9 
11 (
12  IOobject
13  (
14  "rho",
15  runTime.timeName(),
16  mesh,
17  IOobject::READ_IF_PRESENT,
18  IOobject::AUTO_WRITE
19  ),
20  thermo.rho()
21 );
22 
24 const volScalarField& psi = thermo.psi();
25 
26 Info<< "Reading field U\n" << endl;
28 (
29  IOobject
30  (
31  "U",
32  runTime.timeName(),
33  mesh,
34  IOobject::MUST_READ,
35  IOobject::AUTO_WRITE
36  ),
37  mesh
38 );
39 
40 #include "compressibleCreatePhi.H"
41 
42 
43 label pRefCell = 0;
44 scalar pRefValue = 0.0;
46 
47 mesh.setFluxRequired(p.name());
48 
50 (
51  dimensionedScalar::lookupOrDefault
52  (
53  "rhoMax",
54  simple.dict(),
55  dimDensity,
56  GREAT
57  )
58 );
59 
61 (
62  dimensionedScalar::lookupOrDefault
63  (
64  "rhoMin",
65  simple.dict(),
66  dimDensity,
67  0
68  )
69 );
70 
71 Info<< "Creating turbulence model\n" << endl;
72 autoPtr<compressible::RASModel> turbulence
73 (
74  compressible::New<compressible::RASModel>
75  (
76  rho,
77  U,
78  phi,
79  thermo
80  )
81 );
82 
pRefCell
label pRefCell
Definition: createFields.H:112
pRefValue
scalar pRefValue
Definition: createFields.H:113
pThermo
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiThermo > pThermo(psiThermo::New(mesh))
Foam::compressible::New
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Definition: turbulentFluidThermoModel.C:36
Foam::dimDensity
const dimensionSet dimDensity
Foam::fvc::domainIntegrate
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
Definition: fvcVolumeIntegrate.C:86
setRefCell
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
phi
surfaceScalarField & phi
Definition: createFields.H:13
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
rho
rho
Definition: createFields.H:79
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
simple
Simple relative velocity model.
rhoMin
PtrList< dimensionedScalar > rhoMin(fluidRegions.size())
Foam::argList::executable
const word & executable() const
Name of executable without the path.
Definition: argListI.H:30
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
turbulence
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
Foam::Info
messageStream Info
psi
const volScalarField & psi
Definition: createFields.H:24
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:41
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
p
volScalarField & p
Definition: createFields.H:51
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
compressibleCreatePhi.H
Creates and initialises the face-flux field phi.
Foam::volVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
initialMass
dimensionedScalar initialMass
Definition: createFields.H:83
rhoMax
PtrList< dimensionedScalar > rhoMax(fluidRegions.size())
args
Foam::argList args(argc, argv)
U
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), Urel+SRF->U())