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