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 (
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 surfaceScalarField phi
56 (
57  "phi",
58  mesh.Sf() & (linearInterpolate(U))
59 );
60 
61 Switch implicitDiffusion (thermo.implicitDiffusion());
62 
63 label pRefCell = 0;
64 scalar pRefValue = 0.0;
65 setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
66 
67 fvScalarMatrix TSu
68 (
69  T,
70  T.dimensions()*dimVolume/dimTime
71 );
72 
73 //
74 //END-OF-FILE
75 //
76 
const surfaceScalarField & hQGDf
Definition: createFields.H:18
const surfaceScalarField & tauQGDf
Definition: createFields.H:17
volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho())
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
static autoPtr< fvscStencil > New(const word &name, const fvMesh &mesh)
Return a reference to the selected fvscStencil model.
volScalarField & p
Definition: createFields.H:14
Switch implicitDiffusion(thermo.implicitDiffusion())
phiu
——–Start———
Definition: updateFluxes.H:33
phiwo
Definition: updateFluxes.H:8
psiQGDThermo & thermo
Definition: createFields.H:7
fvScalarMatrix TSu(T, T.dimensions()*dimVolume/dimTime)
const volScalarField & T
Definition: createFields.H:15
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiQGDThermo > pThermo(psiQGDThermo::New(mesh))