initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / applications / solvers / combustion / dieselEngineFoam / createSpray.H
blobc5bc0d88cf0d6caf6dc00654074908e9c1697ffb
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 reduce(gasMass0, sumOp<scalar>());
41 gasMass0 -=
42     dieselSpray.injectedMass(runTime.value()) - dieselSpray.liquidMass();