db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
40 lines
736 B
C
40 lines
736 B
C
Info << "Constructing Spray" << endl;
|
|
|
|
pointMesh pMesh(mesh);
|
|
volPointInterpolation vpi(mesh, pMesh);
|
|
|
|
PtrList<specieProperties> gasProperties(Y.size());
|
|
forAll(gasProperties, i)
|
|
{
|
|
gasProperties.set
|
|
(
|
|
i,
|
|
new specieProperties
|
|
(
|
|
dynamic_cast<const reactingMixture&>(thermo()).speciesData()[i]
|
|
)
|
|
);
|
|
}
|
|
|
|
spray dieselSpray
|
|
(
|
|
vpi,
|
|
U,
|
|
rho,
|
|
p,
|
|
T,
|
|
composition,
|
|
gasProperties,
|
|
thermo,
|
|
environmentalProperties
|
|
);
|
|
|
|
scalar gasMass0 = fvc::domainIntegrate(rho).value();
|
|
|
|
if (dieselSpray.twoD())
|
|
{
|
|
gasMass0 *= 2.0*mathematicalConstant::pi/dieselSpray.angleOfWedge();
|
|
}
|
|
|
|
gasMass0 -=
|
|
dieselSpray.injectedMass(runTime.value()) - dieselSpray.liquidMass();
|