All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
updateFluxes.H
Go to the documentation of this file.
1 //Gradients and divergence
2 //---------Start---------
4 
5 divUf = tr(gradUf);
6 
8 
10 
11 //---------End---------
12 
13 //Continuity equation fluxes
14 //---------Start---------
15 
16 rhoW = tauQGDf *
17  (
18  ((Uf * gradRhof) & Uf)
19  +
20  (rhoUf * divUf)
21  +
23  );
24 
25 phiw = mesh.Sf() & rhoW;
26 
28 
29 rhoW += tauQGDf * gradPf;
30 
32 
33 phiJm = mesh.Sf() & jm;
34 phi = mesh.Sf() & rhoUf;
35 //---------End---------
36 
37 // Fluxes for momentum balance equation
38 //---------Start---------
39 
41 phiP = mesh.Sf() * pf;
42 
43 Pif =
44  //QGD diffusive fluxes
45  tauQGDf*
46  (
47  (UrhoUf & gradUf)
48  +
49  Uf*gradPf
50  )
51  +
52  tauQGDf *
53  (
54  I * ( (Uf & gradPf) + (gammaf * pf * divUf) )
55  );
56 
58 {
59  Pif +=
60  muf*
61  (
62  gradUf
63  +
64  Foam::T(gradUf)
65  -
66  (2.0/3.0)*I*divUf
67  );
68 }
69 else
70 {
71  tauMCPtr() = qgdInterpolate(turbulence->muEff() * dev2(Foam::T(fvc::grad(U))));
72  phiTauMC = mesh.Sf() & tauMCPtr();
73 }
74 
75 phiPi = mesh.Sf() & Pif;
76 
77 //---------End---------
78 
79 // Fluxes for energy balance equation
80 //---------Start---------
82 
83 qf =
84  -tauQGDf*
85  (
86  UrhoUf &
87  (
88  gradef
89  - (pf / rhof / rhof) * gradRhof
90  )
91  );
92 
94 {
95  qf -=
97 }
98 
99 phiQ = mesh.Sf() & qf;
100 
101 phiPiU = mesh.Sf() & (Pif & Uf);
102 
103 //---------End---------
rhoUf
Definition: updateFields.H:14
gradPf
Definition: updateFluxes.H:33
tmp< GeometricField< T, Foam::fvsPatchField, Foam::surfaceMesh > > qgdFlux(const GeometricField< scalar, Foam::fvsPatchField, Foam::surfaceMesh > &flux, const GeometricField< T, Foam::fvPatchField, Foam::volMesh > &psi, const GeometricField< T, Foam::fvsPatchField, Foam::surfaceMesh > &psif, const word fluxName)
pf
Definition: updateFields.H:21
const surfaceScalarField & tauQGDf
Definition: createFields.H:55
phiP
Definition: updateFluxes.H:51
muf
Definition: updateFields.H:38
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
Switch implicitDiffusion(thermo.implicitDiffusion())
gradRhof
Definition: updateFluxes.H:11
phiJmH
——–End———
Definition: updateFluxes.H:95
gradUf
Definition: updateFields.H:34
phiPiU
Definition: updateFluxes.H:115
gradef
Definition: updateFluxes.H:9
gammaf
Definition: updateFields.H:27
phiPi
Definition: updateFluxes.H:85
phiJm
Definition: updateFluxes.H:39
qf
Definition: updateFluxes.H:97
alphauf
Definition: updateFields.H:42
tmp< GeometricField< T, Foam::fvsPatchField, Foam::surfaceMesh > > qgdInterpolate(const GeometricField< T, Foam::fvPatchField, Foam::volMesh > &psi)
rhof
Definition: updateFields.H:27
H
Definition: updateFields.H:34
autoPtr< surfaceTensorField > tauMCPtr
phiJmU
——–End———
Definition: updateFluxes.H:50
rhoW
——–End———
Definition: updateFluxes.H:22
UrhoUf
Definition: updateFields.H:18
volScalarField & e
Definition: createFields.H:50
Hf
Definition: updateFields.H:35
phiTauMC
Definition: updateFluxes.H:82
divUf
Definition: updateFluxes.H:7
jm
Definition: updateFluxes.H:37
Uf
Definition: updateFields.H:30
phiQ
Definition: updateFluxes.H:113
volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho())
Info<< "Thermo corrected"<< endl;autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:59
volScalarField & T
Definition: createFields.H:53
tmp< surfaceVectorField > grad(const volScalarField &vF)
volScalarField & p
Definition: createFields.H:52
phiw
Definition: updateFluxes.H:31
Pif
Definition: updateFluxes.H:53