A spray is a cloud of parcels. More...
#include <dieselSpray/spray.H>
A spray is a cloud of parcels.
Definition at line 66 of file spray.H.
Inheritance diagram for spray:
Collaboration diagram for spray:Public Member Functions | |
| spray (const volVectorField &U, const volScalarField &rho, const volScalarField &p, const volScalarField &T, const basicMultiComponentMixture &composition, const PtrList< gasThermoPhysics > &gasProperties, const dictionary &thermophysicalProperties, const dimensionedVector &g, bool readFields=true) | |
| Construct from components.
| |
| ~spray () | |
| void | evolve () |
| Evolve the spray (move, inject and breakup)
| |
| void | move () |
| Move the spray parcels.
| |
| void | inject () |
| Inject more parcels.
| |
| void | atomizationLoop () |
| Primary breakup droplets.
| |
| void | breakupLoop () |
| Secondary breakup droplets.
| |
| const Time & | runTime () const |
| const fvMesh & | mesh () const |
| const volVectorField & | U () const |
| const volScalarField & | rho () const |
| const volScalarField & | p () const |
| const volScalarField & | T () const |
| PtrList< injector > & | injectors () |
| const PtrList< injector > & | injectors () const |
| const atomizationModel & | atomization () const |
| const breakupModel & | breakup () const |
| const collisionModel & | collisions () const |
| const dispersionModel & | dispersion () const |
| const dragModel & | drag () const |
| const evaporationModel & | evaporation () const |
| const heatTransferModel & | heatTransfer () const |
| const injectorModel & | injection () const |
| const wallModel & | wall () const |
| tmp< volVectorField > | momentumSource () const |
| tmp< volScalarField > | evaporationSource (const label i) const |
| tmp< volScalarField > | heatTransferSource () const |
| Random & | rndGen () |
| label | subCycles () const |
| const vector & | g () const |
| const liquidMixture & | fuels () const |
| const PtrList< gasThermoPhysics > & | gasProperties () const |
| const basicMultiComponentMixture & | composition () const |
| const List< label > & | liquidToGasIndex () const |
| const List< label > & | gasToLiquidIndex () const |
| const List< bool > & | isLiquidFuel () const |
| const bool & | twoD () const |
| const vector & | axisOfSymmetry () const |
| const vector & | axisOfWedge () const |
| const vector & | axisOfWedgeNormal () const |
| const scalar & | angleOfWedge () const |
| const interpolation< vector > & | UInterpolator () const |
| const interpolation< scalar > & | rhoInterpolator () const |
| const interpolation< scalar > & | pInterpolator () const |
| const interpolation< scalar > & | TInterpolator () const |
| vectorField & | sms () |
| const vectorField & | sms () const |
| scalarField & | shs () |
| const scalarField & | shs () const |
| PtrList< scalarField > & | srhos () |
| const PtrList< scalarField > & | srhos () const |
| const scalar & | ambientPressure () const |
| const scalar & | ambientTemperature () const |
| scalar | injectedMass (const scalar t) const |
| Returns the liquid mass that has been injected.
| |
| scalar | totalMassToInject () const |
| Returns the liquid mass that will be injected by the injectors.
| |
| scalar | injectedEnthalpy (const scalar t) const |
| Returns the injected enthalpy.
| |
| scalar | liquidMass () const |
| Returns current total liquid mass in the domain.
| |
| scalar | liquidEnthalpy () const |
| Returns the enthalpy of all the liquid in the domain.
| |
| scalar | liquidTotalEnthalpy () const |
| Returns the enthalpy (total) of all the liquid in the domain.
| |
| scalar | liquidKineticEnergy () const |
| Returns the kinetic energy of the liquid phase.
| |
| scalar | injectedLiquidKineticEnergy () const |
| Returns the injected kinetic energy of the liquid phase.
| |
| scalar | liquidPenetration (const label nozzlei, const scalar prc) const |
| Returns the droplet penetration for 'prc' percent of the.
| |
| scalar | liquidPenetration (const scalar prc) const |
| Returns the droplet penetration for 'prc' percent of the.
| |
| scalar | smd () const |
| Return Sauter Mean Diameter.
| |
| scalar | maxD () const |
| Return Maximum Diameter.
| |
| void | calculateAmbientPressure () |
| Return Ambient Pressure.
| |
| void | calculateAmbientTemperature () |
| Return Ambient Temperature.
| |
| spray | ( | const volVectorField & | U, |
| const volScalarField & | rho, | ||
| const volScalarField & | p, | ||
| const volScalarField & | T, | ||
| const basicMultiComponentMixture & | composition, | ||
| const PtrList< gasThermoPhysics > & | gasProperties, | ||
| const dictionary & | thermophysicalProperties, | ||
| const dimensionedVector & | g, | ||
| bool | readFields = true
|
||
| ) |
Construct from components.
Definition at line 53 of file spray.C.
References Foam::abort(), Foam::acos(), polyMesh::boundaryMesh(), Foam::endl(), Foam::FatalError, FatalErrorIn, forAll, Foam::Info, injectorType::injectionPressureProfile(), injectorType::integrateTable(), k(), Foam::mag(), mesh, patches, Foam::mathematicalConstant::pi(), Foam::readFields(), injectorType::teoi(), injectorType::tsoi(), v1, and v2.
| void evolve | ( | ) |
Evolve the spray (move, inject and breakup)
Definition at line 42 of file sprayOps.C.
References spray::atomizationLoop(), spray::breakupLoop(), spray::calculateAmbientPressure(), spray::calculateAmbientTemperature(), autoPtr< T >::clear(), collisionModel::collideParcels(), spray::collisions(), TimeState::deltaT(), dispersionModel::disperseParcels(), spray::dispersion(), forAll, spray::inject(), spray::move(), PtrList< T >::setSize(), List< T >::setSize(), List< T >::size(), and dimensioned< Type >::value().
| void move | ( | ) |
Move the spray parcels.
Definition at line 75 of file sprayOps.C.
References forAll, and Vector< Cmpt >::zero.
Referenced by spray::evolve().
| void inject | ( | ) |
Inject more parcels.
Definition at line 39 of file sprayInject.C.
References Cloud< parcel >::addParticle(), DimensionedField< Type, GeoMesh >::average(), spray::breakup(), injectorModel::d0(), TimeState::deltaT(), injectorModel::direction(), primitiveMesh::findCell(), forAll, spray::fuels(), spray::injection(), spray::injectors(), parcel::m(), Foam::mag(), Foam::magSqr(), Foam::max(), Foam::min(), parcel::move(), spray::p(), Particle< ParticleType >::stepFraction(), objectRegistry::time(), spray::U(), dimensioned< Type >::value(), injectorModel::velocity(), breakupModel::y0(), breakupModel::yDot0(), and Vector< Cmpt >::zero.
Referenced by spray::evolve().
| void atomizationLoop | ( | ) |
Primary breakup droplets.
Definition at line 123 of file sprayOps.C.
References spray::atomization(), atomizationModel::atomizeParcel(), TimeState::deltaT(), elmnt, forAllIter, interpolation< Type >::interpolate(), spray::UInterpolator(), and dimensioned< Type >::value().
Referenced by spray::evolve().
| void breakupLoop | ( | ) |
Secondary breakup droplets.
Definition at line 89 of file sprayOps.C.
References spray::breakup(), breakupModel::breakupParcel(), TimeState::deltaT(), elmnt, forAllIter, interpolation< Type >::interpolate(), spray::UInterpolator(), breakupModel::updateParcelProperties(), and dimensioned< Type >::value().
Referenced by spray::evolve().
| const Time & runTime | ( | ) | const [inline]
|
Definition at line 33 of file sprayI.H.
Referenced by definedHollowConeInjector::definedHollowConeInjector(), stochasticDispersionRAS::disperseParcels(), gradientDispersionRAS::disperseParcels(), and parcel::move().
| const fvMesh & mesh | ( | ) | const [inline]
|
Definition at line 39 of file sprayI.H.
Referenced by parcel::move().
| const volVectorField & U | ( | ) | const [inline]
|
Definition at line 45 of file sprayI.H.
Referenced by stochasticDispersionRAS::disperseParcels(), gradientDispersionRAS::disperseParcels(), spray::inject(), and spray::liquidKineticEnergy().
| const volScalarField & rho | ( | ) | const [inline]
|
Definition at line 51 of file sprayI.H.
Referenced by spray::liquidTotalEnthalpy(), and spray::smd().
| const volScalarField & p | ( | ) | const [inline]
|
Definition at line 57 of file sprayI.H.
Referenced by blobsSwirlInjector::blobsSwirlInjector(), ChomiakInjector::ChomiakInjector(), constInjector::constInjector(), definedHollowConeInjector::definedHollowConeInjector(), definedPressureSwirlInjector::definedPressureSwirlInjector(), spray::inject(), spray::liquidEnthalpy(), spray::liquidTotalEnthalpy(), parcel::move(), pressureSwirlInjector::pressureSwirlInjector(), and spray::smd().
| const volScalarField & T | ( | ) | const [inline]
|
Definition at line 63 of file sprayI.H.
Referenced by spray::liquidEnthalpy(), spray::liquidTotalEnthalpy(), and spray::smd().
Definition at line 69 of file sprayI.H.
Referenced by blobsSwirlInjector::blobsSwirlInjector(), ChomiakInjector::ChomiakInjector(), constInjector::constInjector(), definedHollowConeInjector::definedHollowConeInjector(), definedPressureSwirlInjector::definedPressureSwirlInjector(), hollowConeInjector::hollowConeInjector(), spray::inject(), and pressureSwirlInjector::pressureSwirlInjector().
| const atomizationModel & atomization | ( | ) | const [inline]
|
Definition at line 81 of file sprayI.H.
Referenced by spray::atomizationLoop().
| const breakupModel & breakup | ( | ) | const [inline]
|
Definition at line 87 of file sprayI.H.
Referenced by spray::breakupLoop(), and spray::inject().
| const collisionModel & collisions | ( | ) | const [inline]
|
Definition at line 93 of file sprayI.H.
Referenced by spray::evolve().
| const dispersionModel & dispersion | ( | ) | const [inline]
|
Definition at line 99 of file sprayI.H.
Referenced by spray::evolve().
| const evaporationModel & evaporation | ( | ) | const [inline]
|
| const heatTransferModel & heatTransfer | ( | ) | const [inline]
|
| const injectorModel & injection | ( | ) | const [inline]
|
Definition at line 123 of file sprayI.H.
Referenced by spray::inject().
| tmp< volVectorField > momentumSource | ( | ) | const [inline]
|
Definition at line 135 of file sprayI.H.
References TimeState::deltaT(), IOobject::NO_READ, IOobject::NO_WRITE, Time::timeName(), fvMesh::V(), dimensioned< Type >::value(), and Vector< Cmpt >::zero.
| tmp< volScalarField > evaporationSource | ( | const label | i ) | const [inline]
|
Definition at line 165 of file sprayI.H.
References TimeState::deltaT(), primitiveMesh::nCells(), IOobject::NO_READ, IOobject::NO_WRITE, Time::timeName(), fvMesh::V(), and dimensioned< Type >::value().
| tmp< volScalarField > heatTransferSource | ( | ) | const [inline]
|
Definition at line 199 of file sprayI.H.
References TimeState::deltaT(), IOobject::NO_READ, IOobject::NO_WRITE, Time::timeName(), fvMesh::V(), and dimensioned< Type >::value().
| Random & rndGen | ( | ) | [inline]
|
Definition at line 224 of file sprayI.H.
Referenced by stochasticDispersionRAS::disperseParcels(), and gradientDispersionRAS::disperseParcels().
| label subCycles | ( | ) | const [inline]
|
Definition at line 230 of file sprayI.H.
Referenced by parcel::move().
| const liquidMixture & fuels | ( | ) | const [inline]
|
Definition at line 242 of file sprayI.H.
Referenced by blobsSwirlInjector::blobsSwirlInjector(), ChomiakInjector::ChomiakInjector(), constInjector::constInjector(), definedHollowConeInjector::definedHollowConeInjector(), definedPressureSwirlInjector::definedPressureSwirlInjector(), hollowConeInjector::hollowConeInjector(), spray::inject(), spray::liquidEnthalpy(), spray::liquidTotalEnthalpy(), parcel::move(), and pressureSwirlInjector::pressureSwirlInjector().
| const PtrList< gasThermoPhysics > & gasProperties | ( | ) | const [inline]
|
Definition at line 248 of file sprayI.H.
Referenced by spray::liquidEnthalpy(), spray::liquidTotalEnthalpy(), and parcel::move().
| const basicMultiComponentMixture & composition | ( | ) | const [inline]
|
Definition at line 254 of file sprayI.H.
Referenced by parcel::move().
| const List< label > & liquidToGasIndex | ( | ) | const [inline]
|
Definition at line 260 of file sprayI.H.
Referenced by parcel::move().
| const List< label > & gasToLiquidIndex | ( | ) | const [inline]
|
Definition at line 266 of file sprayI.H.
Referenced by parcel::move().
| const List< bool > & isLiquidFuel | ( | ) | const [inline]
|
Definition at line 272 of file sprayI.H.
Referenced by parcel::move().
| const bool & twoD | ( | ) | const [inline]
|
Definition at line 278 of file sprayI.H.
Referenced by gradientDispersionRAS::disperseParcels(), spray::liquidEnthalpy(), spray::liquidKineticEnergy(), spray::liquidMass(), spray::liquidTotalEnthalpy(), and parcel::move().
| const vector & axisOfSymmetry | ( | ) | const [inline]
|
Definition at line 284 of file sprayI.H.
Referenced by parcel::move().
| const scalar & angleOfWedge | ( | ) | const [inline]
|
Definition at line 302 of file sprayI.H.
Referenced by spray::liquidEnthalpy(), spray::liquidKineticEnergy(), spray::liquidMass(), and spray::liquidTotalEnthalpy().
| const interpolation< vector > & UInterpolator | ( | ) | const [inline]
|
Definition at line 308 of file sprayI.H.
Referenced by spray::atomizationLoop(), spray::breakupLoop(), and parcel::move().
| const interpolation< scalar > & rhoInterpolator | ( | ) | const [inline]
|
Definition at line 314 of file sprayI.H.
Referenced by parcel::move().
| const interpolation< scalar > & pInterpolator | ( | ) | const [inline]
|
Definition at line 320 of file sprayI.H.
Referenced by parcel::move().
| const interpolation< scalar > & TInterpolator | ( | ) | const [inline]
|
Definition at line 326 of file sprayI.H.
Referenced by parcel::move().
| vectorField & sms | ( | ) | [inline]
|
Definition at line 332 of file sprayI.H.
Referenced by parcel::move().
| const vectorField & sms | ( | ) | const [inline]
|
| scalarField & shs | ( | ) | [inline]
|
Definition at line 344 of file sprayI.H.
Referenced by parcel::move().
| const scalarField & shs | ( | ) | const [inline]
|
| PtrList< scalarField > & srhos | ( | ) | [inline]
|
Definition at line 356 of file sprayI.H.
Referenced by parcel::move().
| const PtrList< scalarField > & srhos | ( | ) | const [inline]
|
| const scalar & ambientPressure | ( | ) | const [inline]
|
Definition at line 368 of file sprayI.H.
Referenced by hollowConeInjector::hollowConeInjector().
| scalar injectedMass | ( | const scalar | t ) | const |
Returns the liquid mass that has been injected.
Definition at line 36 of file sprayFunctions.C.
References forAll, and Foam::sum().
| scalar totalMassToInject | ( | ) | const |
Returns the liquid mass that will be injected by the injectors.
Definition at line 49 of file sprayFunctions.C.
References forAll, and Foam::sum().
| scalar injectedEnthalpy | ( | const scalar | t ) | const |
Returns the injected enthalpy.
Definition at line 63 of file sprayFunctions.C.
References forAll, gasProperties(), k(), Foam::mathematicalConstant::pi(), Foam::sum(), and Foam::T().
| scalar liquidMass | ( | ) | const |
Returns current total liquid mass in the domain.
Definition at line 92 of file sprayFunctions.C.
References spray::angleOfWedge(), Cloud< parcel >::begin(), elmnt, Cloud< parcel >::end(), Foam::mathematicalConstant::pi(), Foam::reduce(), Foam::sum(), and spray::twoD().
| scalar liquidEnthalpy | ( | ) | const |
Returns the enthalpy of all the liquid in the domain.
Hdrop = Hgas - Hlat
Definition at line 117 of file sprayFunctions.C.
References spray::angleOfWedge(), Cloud< parcel >::begin(), liquidMixture::components(), elmnt, Cloud< parcel >::end(), spray::fuels(), spray::gasProperties(), h, liquidMixture::hl(), k(), spray::p(), pc, Foam::mathematicalConstant::pi(), Foam::reduce(), List< T >::size(), Foam::sum(), spray::T(), spray::twoD(), and liquidMixture::W().
| scalar liquidTotalEnthalpy | ( | ) | const |
Returns the enthalpy (total) of all the liquid in the domain.
Hdrop = Hgas - Hlat + (P-Psat)/rhoDrop;
Definition at line 159 of file sprayFunctions.C.
References spray::angleOfWedge(), Cloud< parcel >::begin(), liquidMixture::components(), elmnt, Cloud< parcel >::end(), spray::fuels(), spray::gasProperties(), h, liquidMixture::hl(), k(), spray::p(), pc, Foam::mathematicalConstant::pi(), liquidMixture::pv(), Foam::reduce(), liquidMixture::rho(), spray::rho(), List< T >::size(), Foam::sum(), spray::T(), spray::twoD(), and liquidMixture::W().
| scalar liquidKineticEnergy | ( | ) | const |
Returns the kinetic energy of the liquid phase.
Definition at line 204 of file sprayFunctions.C.
References spray::angleOfWedge(), Cloud< parcel >::begin(), elmnt, Cloud< parcel >::end(), Foam::mag(), Foam::mathematicalConstant::pi(), Foam::pow(), Foam::reduce(), Foam::sum(), spray::twoD(), and spray::U().
| scalar injectedLiquidKineticEnergy | ( | ) | const |
Returns the injected kinetic energy of the liquid phase.
Definition at line 230 of file sprayFunctions.C.
| scalar liquidPenetration | ( | const label | nozzlei, |
| const scalar | prc | ||
| ) | const |
Returns the droplet penetration for 'prc' percent of the.
liquid from nozzle 'nozzlei'
Definition at line 243 of file sprayFunctions.C.
References d, dist, elmnt, Foam::mag(), mTot, Foam::reduce(), and Vector< Cmpt >::zero.
Referenced by spray::liquidPenetration().
| scalar liquidPenetration | ( | const scalar | prc ) | const |
Returns the droplet penetration for 'prc' percent of the.
liquid from nozzle 0
Definition at line 236 of file sprayFunctions.C.
References spray::liquidPenetration().
| scalar smd | ( | ) | const |
Return Sauter Mean Diameter.
Definition at line 372 of file sprayFunctions.C.
References Cloud< parcel >::begin(), d, elmnt, Cloud< parcel >::end(), spray::p(), Foam::pow(), Foam::reduce(), spray::rho(), and spray::T().
| scalar maxD | ( | ) | const |
Return Maximum Diameter.
Definition at line 400 of file sprayFunctions.C.
References Cloud< parcel >::begin(), d, elmnt, Cloud< parcel >::end(), Foam::max(), and Foam::reduce().
| void calculateAmbientPressure | ( | ) |
Return Ambient Pressure.
Definition at line 420 of file sprayFunctions.C.
References DimensionedField< Type, GeoMesh >::average(), and dimensioned< Type >::value().
Referenced by spray::evolve().
| void calculateAmbientTemperature | ( | ) |
Return Ambient Temperature.
Definition at line 426 of file sprayFunctions.C.
References DimensionedField< Type, GeoMesh >::average(), and dimensioned< Type >::value().
Referenced by spray::evolve().