setAlphaEff.H
Go to the documentation of this file.
1  Info<< "Creating turbulence model\n" << endl;
2  tmp<volScalarField> talphaEff;
3 
4  IOobject turbulenceHeader
5  (
6  "turbulenceProperties",
7  runTime.constant(),
8  mesh,
9  IOobject::MUST_READ
10  );
11 
12  IOobject RASHeader
13  (
14  "RASProperties",
15  runTime.constant(),
16  mesh,
17  IOobject::MUST_READ
18  );
19 
20  IOobject LESHeader
21  (
22  "LESProperties",
23  runTime.constant(),
24  mesh,
25  IOobject::MUST_READ
26  );
27 
28  if (turbulenceHeader.headerOk())
29  {
30  autoPtr<compressible::turbulenceModel> turbulence
31  (
33  (
34  rho,
35  U,
36  phi,
37  thermo
38  )
39  );
40 
41  talphaEff = turbulence->alphaEff();
42  }
43  else if (RASHeader.headerOk())
44  {
45  autoPtr<compressible::RASModel> turbulence
46  (
47  compressible::New<compressible::RASModel>
48  (
49  rho,
50  U,
51  phi,
52  thermo
53  )
54  );
55 
56  talphaEff = turbulence->alphaEff();
57  }
58  else if (LESHeader.headerOk())
59  {
60  autoPtr<compressible::LESModel> turbulence
61  (
62  compressible::New<compressible::LESModel>
63  (
64  rho,
65  U,
66  phi,
67  thermo
68  )
69  );
70 
71  talphaEff = turbulence->alphaEff();
72  }
73  else
74  {
75  talphaEff = tmp<volScalarField>
76  (
77  new volScalarField
78  (
79  IOobject
80  (
81  "alphaEff",
82  runTime.timeName(),
83  mesh,
84  IOobject::NO_READ,
85  IOobject::NO_WRITE
86  ),
87  mesh,
89  )
90  );
91  }
92 
LESHeader
IOobject LESHeader("LESProperties", runTime.constant(), mesh, IOobject::MUST_READ)
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::dimLength
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
talphaEff
Info<< "Creating turbulence model\n"<< endl;tmp< volScalarField > talphaEff
Definition: setAlphaEff.H:2
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
turbulenceHeader
IOobject turbulenceHeader("turbulenceProperties", runTime.constant(), mesh, IOobject::MUST_READ)
U
U
Definition: pEqn.H:46
Foam::dimTime
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
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
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::dimMass
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:49
alphaEff
const volScalarField & alphaEff
Definition: setAlphaEff.H:93
rho
rho
Definition: pEqn.H:3
RASHeader
IOobject RASHeader("RASProperties", runTime.constant(), mesh, IOobject::MUST_READ)