This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/combustion/dieselEngineFoam/spraySummary.H

31 lines
1 KiB
C++
Raw Normal View History

2010-08-26 14:22:03 +00:00
label Nparcels = dieselSpray.size();
reduce(Nparcels, sumOp<label>());
2010-08-26 14:22:03 +00:00
Info<< "\nNumber of parcels in system.... | "
<< Nparcels << endl
<< "Injected liquid mass........... | "
<< 1e6*dieselSpray.injectedMass(runTime.value()) << " mg" << endl
<< "Liquid Mass in system.......... | "
<< 1e6*dieselSpray.liquidMass() << " mg" << endl
<< "SMD, Dmax...................... | "
<< dieselSpray.smd()*1e6 << " mu, "
<< dieselSpray.maxD()*1e6 << " mu"
<< endl;
2010-08-26 14:22:03 +00:00
scalar evapMass =
dieselSpray.injectedMass(runTime.value())
- dieselSpray.liquidMass();
2010-08-26 14:22:03 +00:00
scalar gasMass = fvc::domainIntegrate(rho).value();
2010-08-26 14:22:03 +00:00
if (dieselSpray.twoD())
{
gasMass *= 2.0*mathematicalConstant::pi/dieselSpray.angleOfWedge();
}
2010-08-26 14:22:03 +00:00
scalar addedMass = gasMass - gasMass0;
2010-08-26 14:22:03 +00:00
Info<< "Added gas mass................. | " << 1e6*addedMass << " mg"
<< nl << "Evaporation Continuity Error... | "
<< 1e6*(addedMass - evapMass) << " mg" << endl;