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 
scalar pRefValue
Definition: createFields.H:113
volVectorField U(IOobject( "U", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedVector("zero", dimVelocity, vector::zero), p.boundaryField().types())
surfaceScalarField & phi
Definition: createFields.H:13
Creates and initialises the face-flux field phi.
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)
messageStream Info
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
dynamicFvMesh & mesh
const dimensionSet dimDensity
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
rho
Definition: createFields.H:79
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiThermo > pThermo(psiThermo::New(mesh))
const word & executable() const
Name of executable without the path.
Definition: argListI.H:30
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
Foam::argList args(argc, argv)
PtrList< dimensionedScalar > rhoMin(fluidRegions.size())
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
const dictionary & simple
label pRefCell
Definition: createFields.H:112
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< dimensionedScalar > rhoMax(fluidRegions.size())