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& p = thermo.p();
11 const volScalarField& T = thermo.T();
12 const surfaceScalarField& hQGDf = thermo.hQGDf();
13 const surfaceScalarField& tauQGDf = thermo.tauQGDf();
14 
15 Info << "Thermo corrected" << endl;
16 
17 volVectorField U
18 (
19  IOobject
20  (
21  "U",
22  runTime.timeName(),
23  mesh,
24  IOobject::MUST_READ,
25  IOobject::AUTO_WRITE
26  ),
27  mesh
28 );
29 
30 volScalarField rho
31 (
32  IOobject
33  (
34  "rho",
35  runTime.timeName(),
36  mesh,
37  IOobject::NO_READ,
38  IOobject::AUTO_WRITE
39  ),
40  thermo.rho()
41 );
42 
43 surfaceScalarField phiu
44 (
45  "phiu",
46  mesh.Sf() & linearInterpolate(U)
47 );
48 
49 surfaceScalarField phiwo
50 (
51  "phiwo",
52  mesh.Sf() & linearInterpolate(U)
53 );
54 
55 Switch implicitDiffusion (thermo.implicitDiffusion());
56 
57 label pRefCell = 0;
58 scalar pRefValue = 0.0;
59 setRefCell(p, thermo.subDict("QGD"), pRefCell, pRefValue);
60 
61 fvScalarMatrix TSu
62 (
63  T,
64  T.dimensions()*dimVolume/dimTime
65 );
66 
67 //
68 //END-OF-FILE
69 //
70 
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())
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
volScalarField & T
Definition: createFields.H:53
fvScalarMatrix TSu(T, T.dimensions()*dimVolume/dimTime)
volScalarField & p
Definition: createFields.H:52