All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
createFaceFluxes.H
Go to the documentation of this file.
1 
2 /*
3  Field for debugging parallel execution
4  and tau-terms evaluation
5 */
6 /*
7 volScalarField cellNo
8 (
9  IOobject
10  (
11  "cellNo",
12  runTime.timeName(),
13  mesh,
14  IOobject::NO_READ,
15  IOobject::AUTO_WRITE
16  ),
17  rho*0.0
18 );
19 
20 forAll(cellNo, celli)
21 {
22  cellNo[celli] = mesh.C()[celli].z();
23 }
24 forAll(cellNo.boundaryField(), patchi)
25 {
26  forAll(cellNo.boundaryField()[patchi], facei)
27  {
28  cellNo.boundaryFieldRef()[patchi][facei] = mesh.Cf().boundaryField()[patchi][facei].z();
29  }
30 }
31 surfaceVectorField cellNoGradf
32 (
33  "cellNoGradf", fvsc::grad(cellNo)
34 );
35 
36 cellNo.write();
37 cellNoGradf.write();
38 return 0;
39 */
40 //Gradients and divergence
41 //---------Start---------
42 
43 
44 surfaceVectorField gradPf
45 (
46  "gradPf", fvsc::grad(p)
47 );
48 
49 surfaceVectorField gradTf
50 (
51  "gradTf", fvsc::grad(T)
52 );
53 
54 surfaceTensorField gradUf
55 (
56  "gradUf",
57  fvsc::grad(U)
58 );
59 
60 surfaceTensorField gradWf
61 (
62  "gradWf",
63  fvsc::grad(W)
64 );
65 
66 surfaceVectorField gradRhof
67 (
68  "gradRhof",
70 );
71 
72 surfaceScalarField divUf
73 (
74  "divUf",
75  tr(gradUf)
76 );
77 
78 //---------End---------
79 //P equation fluxes
80 //---------Start---------
81 //---------End---------
82 
83 // Fluxes for momentum balance equation
84 //---------Start---------
85 surfaceVectorField phiUf
86 (
87  "phiUf",
88  phi * Uf + (mesh.Sf() & (Wf * Wf))
89 );
90 
91 surfaceScalarField Pbyrho
92 (
93  "Pbyrho",
94  pf/rhof
95 );
96 
97 surfaceScalarField phiTf
98 (
99  "phiTf",
100  phi*Tf
101 );
102 
103 surfaceVectorField phiPi
104 (
105  "phiPi",
106  muf/rhof * mesh.Sf() & (gradUf+gradUf.T())
107 );
108 
109 //---------End---------
110 
111 // Fluxes for T balance equation
112 //---------Start---------
113 surfaceScalarField phiUmWT
114 (
115  "phiUmWT",
116  ((Uf-Wf)*Tf) & mesh.Sf()
117 );
118 
119 surfaceScalarField Hif
120 (
121  "Hif",
122  alphaf/rhof
123 );
124 Info << "Creating Face Fluxes is done"<< endl;
125 
126 //---------End---------
volVectorField W(IOobject("W", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), U)
gradPf
Definition: updateFluxes.H:33
pf
Definition: updateFields.H:21
muf
Definition: updateFields.H:38
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
gradRhof
Definition: updateFluxes.H:11
alphaf
Definition: updateFields.H:18
surfaceScalarField Pbyrho("Pbyrho", pf/rhof)
gradUf
Definition: updateFields.H:34
phiPi
Definition: updateFluxes.H:85
surfaceScalarField phiTf("phiTf", phi *Tf)
gradTf
Definition: updateFields.H:10
rhof
Definition: updateFields.H:27
Tf
Definition: updateFields.H:33
surfaceScalarField phiUmWT("phiUmWT",((Uf-Wf)*Tf)&mesh.Sf())
——–End———
Hif
Definition: updateFields.H:39
divUf
Definition: updateFluxes.H:7
Wf
Definition: QHDUEqn.H:31
Uf
Definition: updateFields.H:30
phiUf
Definition: QHDUEqn.H:35
volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho())
volScalarField & T
Definition: createFields.H:53
gradWf
Definition: updateFields.H:8
tmp< surfaceVectorField > grad(const volScalarField &vF)
volScalarField & p
Definition: createFields.H:52