|
[Sponsors] |
How to understand "Y[inertIndex] = scalar(1) - Yt" in YEqn.H |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 21, 2013, 09:59 |
How to understand "Y[inertIndex] = scalar(1) - Yt" in YEqn.H
|
#1 |
Member
赵庆良
Join Date: Aug 2013
Posts: 56
Rep Power: 12 |
Hi Foamers:
As we can see the following codes in YEqn.H: { label inertIndex = -1; volScalarField Yt(0.0*Y[0]); forAll(Y, i) { if (Y[i].name() != inertSpecie) { volScalarField& Yi = Y[i]; solve ( fvm::ddt(rho, Yi) + mvConvection->fvmDiv(phi, Yi) - fvm::laplacian(turbulence->muEff(), Yi) == kappa*chemistry.RR(i), mesh.solver("Yi") ); Yi.max(0.0); Yt += Yi; } else { inertIndex = i; } } Y[inertIndex] = scalar(1) - Yt; Y[inertIndex].max(0.0); } What does the "Y[inertIndex]"meas?How can I understand it?and what does the "Y[inertIndex]"use? Thanks in advance! |
|
|
|