setAlphaEff.H
Go to the documentation of this file.
1 Info<< "Creating turbulence model\n" << endl;
2 tmp<volScalarField> talphaEff;
3 
5 (
6  "turbulenceProperties",
7  runTime.constant(),
8  mesh,
9  IOobject::MUST_READ_IF_MODIFIED,
10  IOobject::NO_WRITE,
11  false
12 );
13 
14 if (turbulencePropertiesHeader.typeHeaderOk<IOdictionary>(true))
15 {
16  autoPtr<compressible::turbulenceModel> turbulence
17  (
19  (
20  rho,
21  U,
22  phi,
23  thermo
24  )
25  );
26 
27  talphaEff = turbulence->alphaEff();
28 }
29 else
30 {
31  talphaEff = tmp<volScalarField>
32  (
33  new volScalarField
34  (
35  IOobject
36  (
37  "alphaEff",
38  runTime.timeName(),
39  mesh,
40  IOobject::NO_READ,
41  IOobject::NO_WRITE
42  ),
43  mesh,
45  )
46  );
47 }
surfaceScalarField & phi
Info<< "Creating turbulence model\"<< endl;tmp< volScalarField > talphaEff
Definition: setAlphaEff.H:2
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:256
rhoReactionThermo & thermo
Definition: createFields.H:28
IOobject turbulencePropertiesHeader("turbulenceProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE, false)
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
dynamicFvMesh & mesh
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
U
Definition: pEqn.H:72
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
messageStream Info
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:49