initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / solvers / combustion / dieselEngineFoam / createSpray.H
blobea4d0121b691884e8a774bb5c77e49bf836f10ac
1 Info << "Constructing Spray" << endl;
3 PtrList<gasThermoPhysics> gasProperties(Y.size());
4 forAll(gasProperties, i)
6     gasProperties.set
7     (
8         i,
9         new gasThermoPhysics
10         (
11             dynamic_cast<const reactingMixture<gasThermoPhysics>&>
12                 (thermo).speciesData()[i]
13         )
14     );
17 spray dieselSpray
19     U,
20     rho,
21     p,
22     T,
23     composition,
24     gasProperties,
25     thermo,
26     g
29 scalar gasMass0 = fvc::domainIntegrate(rho).value();
31 if (dieselSpray.twoD())
33     gasMass0 *= 2.0*mathematicalConstant::pi/dieselSpray.angleOfWedge();
36 gasMass0 -=
37     dieselSpray.injectedMass(runTime.value()) - dieselSpray.liquidMass();