-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathZEqn.H
38 lines (33 loc) · 1.03 KB
/
ZEqn.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
fvScalarMatrix ZEqn
(
fvm::ddt(rho, Z)
+ mvConvection->fvmDiv(phi, Z)
- fvm::laplacian(turbulence->muEff(), Z)
==
parcels.Srho(Z)
);
ZEqn.relax();
ZEqn.solve("Yi");
Z.max(0.0);
Chi = 2*turbulence->epsilon()/turbulence->k()*varZ;
if (mesh.objectRegistry::foundObject<compressible::LESModel>(turbulenceModel::propertiesName))
{
const compressible::LESModel& lesModel
= mesh.objectRegistry::lookupObject<compressible::LESModel>(turbulenceModel::propertiesName);
Chi = 2*turbulence->nu()*magSqr(fvc::grad(Z)) + 2*turbulence->nut()*varZ/Foam::sqr(lesModel.delta());
varZ_algebraic = 2*Foam::sqr(lesModel.delta())*magSqr(fvc::grad(Z));
}
fvScalarMatrix varZEqn
(
fvm::ddt(rho, varZ)
+ mvConvection->fvmDiv(phi, varZ)
- fvm::laplacian(turbulence->muEff(), varZ)
==
+ 2*turbulence->muEff()*magSqr(fvc::grad(Z))
- rho*Chi
);
varZEqn.relax();
varZEqn.solve("Yi");
varZ.max(0.0);
}