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 SLGThermo slgThermo(mesh, thermo);
11 
12 volScalarField& e = thermo.he();
13 
14 volScalarField& p = thermo.p();
15 const volScalarField& T = thermo.T();
16 
17 const surfaceScalarField& tauQGDf = thermo.tauQGDf();
18 const surfaceScalarField& hQGDf = thermo.hQGDf();
19 const volScalarField& gamma = thermo.gamma();
20 const volScalarField& psi = thermo.psi();
21 
22 Info << "Thermo corrected" << endl;
23 
24 autoPtr<compressible::turbulenceModel> turbulence;
25 
26 volVectorField U
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 volScalarField rho
40 (
41  IOobject
42  (
43  "rho",
44  runTime.timeName(),
45  mesh,
46  IOobject::NO_READ,
47  IOobject::AUTO_WRITE
48  ),
49  thermo.rho()
50 );
51 
52 volVectorField rhoU
53 (
54  IOobject
55  (
56  "rhoU",
57  runTime.timeName(),
58  mesh,
59  IOobject::NO_READ,
60  IOobject::NO_WRITE
61  ),
62  rho*U
63 );
64 
65 volScalarField rhoE
66 (
67  IOobject
68  (
69  "rhoE",
70  runTime.timeName(),
71  mesh,
72  IOobject::NO_READ,
73  IOobject::NO_WRITE
74  ),
75  rho*e + rho*0.5*magSqr(U)
76 );
77 
78 volScalarField H
79 (
80  IOobject
81  (
82  "Ht",
83  runTime.timeName(),
84  mesh,
85  IOobject::NO_READ,
86  IOobject::NO_WRITE
87  ),
88  (rhoE + p)/rho
89 );
90 
91 #include "createZeroSources.H"
92 
93 surfaceScalarField phi
94 (
95  "phi",
96  linearInterpolate(rho*U) & mesh.Sf()
97 );
98 
99 surfaceScalarField phiRhof
100 (
101  "phiRhof",
102  linearInterpolate(rho)*phi
103 );
104 
105 Switch implicitDiffusion (thermo.implicitDiffusion());
106 
107 Info<< "Creating turbulence model\n" << endl;
108 turbulence.reset
109 (
110  compressible::turbulenceModel::New
111  (
112  rho,
113  U,
114  phiRhof,
115  thermo
116  ).ptr()
117 );
118 
119 Info<< "\nReading gravitationalProperties" << endl;
120 
121 IOdictionary gravitationalProperties
122 (
123  IOobject
124  (
125  "gravitationalProperties",
126  runTime.constant(),
127  mesh,
128  IOobject::MUST_READ_IF_MODIFIED,
129  IOobject::NO_WRITE
130  )
131 );
132 
133 const dimensionedVector g(gravitationalProperties.lookup("g"));
134 
135 #include "createClouds.H"
136 
137 //
138 //END-OF-FILE
139 //
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
surfaceScalarField phiRhof("phiRhof", linearInterpolate(rho)*phi)
H
Definition: updateFields.H:34
volScalarField & e
Definition: createFields.H:50
SLGThermo slgThermo(mesh, thermo)
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