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 
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;
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::RASModel> turbulence
72 (
73  compressible::New<compressible::RASModel>
74  (
75  rho,
76  U,
77  phi,
78  thermo
79  )
80 );
81 
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
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())