createFields.H
Go to the documentation of this file.
1 Info<< "Reading thermophysical properties\n" << endl;
2 
3 autoPtr<rhoThermo> pThermo
4 (
6 );
7 rhoThermo& 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 
23 volScalarField& p = thermo.p();
24 
25 Info<< "Reading field U\n" << endl;
27 (
28  IOobject
29  (
30  "U",
31  runTime.timeName(),
32  mesh,
33  IOobject::MUST_READ,
34  IOobject::AUTO_WRITE
35  ),
36  mesh
37 );
38 
39 #include "compressibleCreatePhi.H"
40 
41 
42 label pRefCell = 0;
43 scalar pRefValue = 0.0;
44 setRefCell(p, simple.dict(), pRefCell, pRefValue);
45 
46 mesh.setFluxRequired(p.name());
47 
49 (
50  dimensionedScalar::lookupOrDefault
51  (
52  "rhoMax",
53  simple.dict(),
54  dimDensity,
55  GREAT
56  )
57 );
58 
60 (
61  dimensionedScalar::lookupOrDefault
62  (
63  "rhoMin",
64  simple.dict(),
65  dimDensity,
66  0
67  )
68 );
69 
70 Info<< "Creating turbulence model\n" << endl;
71 autoPtr<compressible::turbulenceModel> turbulence
72 (
74  (
75  rho,
76  U,
77  phi,
78  thermo
79  )
80 );
81 
83 
84 #include "createMRF.H"
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
surfaceScalarField & phi
PtrList< dimensionedScalar > rhoMax(fluidRegions.size())
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
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
PtrList< dimensionedScalar > rhoMin(fluidRegions.size())
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
const word & executable() const
Name of executable without the path.
Definition: argListI.H:30
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
rho
Definition: createFields.H:81
dynamicFvMesh & mesh
volVectorField U(IOobject("U", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector("zero", dimVelocity, Zero))
const dimensionSet dimDensity
const dictionary & simple
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label pRefCell
Definition: createFields.H:106
messageStream Info
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiThermo > pThermo(psiThermo::New(mesh))
Foam::argList args(argc, argv)
Creates and initialises the face-flux field phi.
scalar pRefValue
Definition: createFields.H:107