All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
createFields.H
Go to the documentation of this file.
1 Info<< "Reading thermophysical properties\n" << endl;
2 
3 autoPtr<psiQGDThermo> pThermo
4 (
5  psiQGDThermo::New(mesh)
6 );
7 psiQGDThermo& thermo = pThermo();
8 thermo.correct();
9 
10 volScalarField& e = thermo.he();
11 
12 volScalarField& p = thermo.p();
13 const volScalarField& T = thermo.T();
14 
15 const surfaceScalarField& tauQGDf = thermo.tauQGDf();
16 const surfaceScalarField& hQGDf = thermo.hQGDf();
17 const volScalarField& gamma = thermo.gamma();
18 const volScalarField& psi = thermo.psi();
19 
20 Info << "Thermo corrected" << endl;
21 
22 autoPtr<compressible::turbulenceModel> turbulence;
23 
24 volVectorField U
25 (
26  IOobject
27  (
28  "U",
29  runTime.timeName(),
30  mesh,
31  IOobject::MUST_READ,
32  IOobject::AUTO_WRITE
33  ),
34  mesh
35 );
36 
37 volScalarField rho
38 (
39  IOobject
40  (
41  "rho",
42  runTime.timeName(),
43  mesh,
44  IOobject::NO_READ,
45  IOobject::AUTO_WRITE
46  ),
47  thermo.rho()
48 );
49 
50 volVectorField rhoU
51 (
52  IOobject
53  (
54  "rhoU",
55  runTime.timeName(),
56  mesh,
57  IOobject::NO_READ,
58  IOobject::NO_WRITE
59  ),
60  rho*U
61 );
62 
63 volScalarField rhoE
64 (
65  IOobject
66  (
67  "rhoE",
68  runTime.timeName(),
69  mesh,
70  IOobject::NO_READ,
71  IOobject::NO_WRITE
72  ),
73  rho*e + rho*0.5*magSqr(U)
74 );
75 
76 volScalarField H
77 (
78  IOobject
79  (
80  "Ht",
81  runTime.timeName(),
82  mesh,
83  IOobject::NO_READ,
84  IOobject::NO_WRITE
85  ),
86  (rhoE + p)/rho
87 );
88 
89 surfaceScalarField phi
90 (
91  "phi",
92  linearInterpolate(rho*U) & mesh.Sf()
93 );
94 
95 Switch implicitDiffusion (thermo.implicitDiffusion());
96 
97 Info<< "Creating turbulence model\n" << endl;
98 turbulence.reset
99 (
100  compressible::turbulenceModel::New
101  (
102  rho,
103  U,
104  phi,
105  thermo
106  ).ptr()
107 );
108 
109 #include "createZeroSources.H"
110 
111 //
112 //END-OF-FILE
113 //
114 
const surfaceScalarField & tauQGDf
Definition: createFields.H:55
const surfaceScalarField & hQGDf
Definition: createFields.H:54
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
Switch implicitDiffusion(thermo.implicitDiffusion())
volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *e+rho *0.5 *magSqr(U))
const volScalarField & gamma
Definition: createFields.H:19
H
Definition: updateFields.H:34
volScalarField & e
Definition: createFields.H:50
rhoQGDThermo & thermo
Definition: createFields.H:47
const volScalarField & psi
Definition: createFields.H:20
Info<< "\nReading gravitationalProperties"<< endl;IOdictionary gravitationalProperties(IOobject("gravitationalProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));const dimensionedVector g(gravitationalProperties.lookup("g"));Info<< "Reading thermophysical properties\n"<< endl;autoPtr< rhoQGDThermo > pThermo(rhoQGDThermo::New(mesh))
volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho())
Info<< "Thermo corrected"<< endl;autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:59
volScalarField & T
Definition: createFields.H:53
volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U)
volScalarField & p
Definition: createFields.H:52