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<rhoQGDThermo> pThermo
4 (
5  rhoQGDThermo::New(mesh)
6 );
7 rhoQGDThermo& thermo = pThermo();
8 thermo.correct();
9 
10 volScalarField& e = thermo.he();
11 
12 volScalarField& p = thermo.p();
13 const volScalarField& T = thermo.T();
14 const surfaceScalarField& hQGDf = thermo.hQGDf();
15 const surfaceScalarField& tauQGDf = thermo.tauQGDf();
16 
17 Info << "Thermo corrected" << endl;
18 
19 autoPtr<compressible::turbulenceModel> turbulence;
20 
21 volVectorField U
22 (
23  IOobject
24  (
25  "U",
26  runTime.timeName(),
27  mesh,
28  IOobject::MUST_READ,
29  IOobject::AUTO_WRITE
30  ),
31  mesh
32 );
33 
34 volScalarField rho
35 (
36  IOobject
37  (
38  "rho",
39  runTime.timeName(),
40  mesh,
41  IOobject::NO_READ,
42  IOobject::AUTO_WRITE
43  ),
44  thermo.rho()
45 );
46 
47 volVectorField W
48 (
49  IOobject
50  (
51  "W",
52  runTime.timeName(),
53  mesh,
54  IOobject::NO_READ,
55  IOobject::NO_WRITE
56  ),
57  U
58 );
59 
60 
61 
62 
63 Info<< "\nReading gravitationalProperties" << endl;
64 
65 IOdictionary gravitationalProperties
66 (
67  IOobject
68  (
69  "gravitationalProperties",
70  runTime.constant(),
71  mesh,
72  IOobject::MUST_READ_IF_MODIFIED,
73  IOobject::NO_WRITE
74  )
75 );
76 
77 const dimensionedVector g(gravitationalProperties.lookup("g"));
78 
79 dimensionedScalar beta
80 (
81  "beta",
82  dimless/dimTemperature,
83  thermo.subDict("mixture").subDict("transport")
84 );
85 
86 
87 surfaceScalarField phiu
88 (
89  "phiu",
90  mesh.Sf() & linearInterpolate(U)
91 );
92 
93 surfaceScalarField phiwo
94 (
95  "phiwo",
96  mesh.Sf() & linearInterpolate(W)
97 );
98 
99 surfaceScalarField phi
100 (
101  "phi",
102  mesh.Sf() & (linearInterpolate(U) - linearInterpolate(W))
103 );
104 
105 volVectorField BdFrc
106 (
107  "BdFrc",
108  T*g*beta
109 );
110 
111 Switch implicitDiffusion (thermo.implicitDiffusion());
112 
113 surfaceScalarField phiRhof
114 (
115  "phiRhof",
116  linearInterpolate(rho)*phi
117 );
118 
119 Info<< "Creating turbulence model\n" << endl;
120 turbulence.reset
121 (
122  compressible::turbulenceModel::New
123  (
124  rho,
125  U,
126  phiRhof,
127  thermo
128  ).ptr()
129 );
130 
131 #include "createIcoZeroSources.H"
132 
133 label pRefCell = 0;
134 scalar pRefValue = 0.0;
135 setRefCell(p, thermo.subDict("QGD"), pRefCell, pRefValue);
136 
137 SLGThermo slgThermo(mesh, thermo);
138 
139 #include "createClouds.H"
140 
141 //
142 //END-OF-FILE
143 //
144 
volVectorField W(IOobject("W", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), U)
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())
dimensionedScalar beta("beta", dimless/dimTemperature, thermo.subDict("mixture").subDict("transport"))
surfaceScalarField phiRhof("phiRhof", linearInterpolate(rho)*phi)
BdFrc
Definition: updateFields.H:35
volScalarField & e
Definition: createFields.H:50
SLGThermo slgThermo(mesh, thermo)
rhoQGDThermo & thermo
Definition: createFields.H:47
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())
phiu
——–Start———
Definition: updateFluxes.H:33
phiwo
Definition: updateFluxes.H:8
Info<< "Thermo corrected"<< endl;autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:59
volScalarField & T
Definition: createFields.H:53
volScalarField & p
Definition: createFields.H:52