FreeFOAM The Cross-Platform CFD Toolkit
createSpray.H
Go to the documentation of this file.
1 Info << "Constructing Spray" << endl;
2 
3 PtrList<gasThermoPhysics> gasProperties(Y.size());
5 {
6  gasProperties.set
7  (
8  i,
10  (
11  dynamic_cast<const reactingMixture<gasThermoPhysics>&>
12  (thermo).speciesData()[i]
13  )
14  );
15 }
16 
17 spray dieselSpray
18 (
19  U,
20  rho,
21  p,
22  T,
25  thermo,
26  g
27 );
28 
29 scalar gasMass0 = fvc::domainIntegrate(rho).value();
30 
31 if (dieselSpray.twoD())
32 {
33  gasMass0 *= 2.0*mathematicalConstant::pi/dieselSpray.angleOfWedge();
34 }
35 
36 gasMass0 -=
37  dieselSpray.injectedMass(runTime.value()) - dieselSpray.liquidMass();
38 
39 // ************************ vim: set sw=4 sts=4 et: ************************ //