OpenFOAM-4.x-lab/applications/solvers/combustion/SOxFoam/Sso2Calc.H
2018-01-23 23:59:03 +09:00

11 lines
268 B
C

const scalar Wso2 = 0.064066; //Molecular weight of SO2[kg/mol]
const scalar Ws = 0.032065; // S [kg/mol]
forAll (mesh.cells(),celli)
{
Sso2[celli] = (Sfuel1[celli]+Sfuel2[celli])*Ys[celli]*Wso2/Ws/mesh.V()[celli];
}