Bug-fix for the bug-fix.
[OpenFOAM-1.5.x.git] / applications / solvers / combustion / dieselEngineFoam / createSpray.H
blobafa2f1dedce2e0e22cf2f67b7b668bdc91f34865
1 Info << "Constructing Spray" << endl;
3 pointMesh pMesh(mesh);
4 volPointInterpolation vpi(mesh, pMesh);
6 PtrList<specieProperties> gasProperties(Y.size());
7 forAll(gasProperties, i)
9     gasProperties.set
10     (
11         i,
12         new specieProperties
13         (
14             dynamic_cast<const reactingMixture&>(thermo()).speciesData()[i]
15         )
16     );
19 spray dieselSpray
21     vpi,
22     U,
23     rho,
24     p,
25     T,
26     composition,
27     gasProperties,
28     thermo,
29     environmentalProperties
32 scalar gasMass0 = fvc::domainIntegrate(rho).value();
34 if (dieselSpray.twoD())
36     gasMass0 *= 2.0*mathematicalConstant::pi/dieselSpray.angleOfWedge();
39 gasMass0 -=
40     dieselSpray.injectedMass(runTime.value()) - dieselSpray.liquidMass();