Reacting spray parcel, with added functionality for atomization and breakup. More...
#include <SprayParcel.H>


Classes | |
| class | constantProperties |
| Class to hold reacting particle constant properties. More... | |
| class | iNew |
| Factory class to read-construct particles (for parallel transfer). More... | |
Public Types | |
| typedef ParcelType::trackingData | trackingData |
| Use base tracking data. | |
Public Member Functions | |
| TypeName ("SprayParcel") | |
| Runtime type information. | |
| AddToPropertyList (ParcelType, " d0"+" position0"+" sigma"+" mu"+" liquidCore"+" KHindex"+" y"+" yDot"+" tc"+" ms"+" injector"+" tMom"+" user") | |
| String representation of properties. | |
| SprayParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti) | |
| Construct from mesh, coordinates and topology. | |
| SprayParcel (const polyMesh &mesh, const vector &position, const label celli) | |
| Construct from a position and a cell, searching for the rest of the. | |
| SprayParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label typeId, const scalar nParticle0, const scalar d0, const scalar dTarget0, const vector &U0, const vector &f0, const vector &angularMomentum0, const vector &torque0, const scalarField &Y0, const scalar liquidCore, const scalar KHindex, const scalar y, const scalar yDot, const scalar tc, const scalar ms, const scalar injector, const scalar tMom, const scalar user, const typename ParcelType::constantProperties &constProps) | |
| Construct from components. | |
| SprayParcel (const polyMesh &mesh, Istream &is, bool readFields=true, bool newFormat=true) | |
| Construct from Istream. | |
| SprayParcel (const SprayParcel &p, const polyMesh &mesh) | |
| Construct as a copy. | |
| SprayParcel (const SprayParcel &p) | |
| Construct as a copy. | |
| virtual autoPtr< particle > | clone () const |
| Return a (basic particle) clone. | |
| virtual autoPtr< particle > | clone (const polyMesh &mesh) const |
| Return a (basic particle) clone. | |
| scalar | d0 () const |
| Return const access to initial droplet diameter. | |
| const vector & | position0 () const |
| Return const access to initial droplet position. | |
| scalar | sigma () const |
| Return const access to the liquid surface tension. | |
| scalar | mu () const |
| Return const access to the liquid dynamic viscosity. | |
| scalar | liquidCore () const |
| Return const access to liquid core. | |
| scalar | KHindex () const |
| Return const access to Kelvin-Helmholtz breakup index. | |
| scalar | y () const |
| Return const access to spherical deviation. | |
| scalar | yDot () const |
| Return const access to rate of change of spherical deviation. | |
| scalar | tc () const |
| Return const access to atomization characteristic time. | |
| scalar | ms () const |
| Return const access to stripped parcel mass. | |
| scalar | injector () const |
| Return const access to injector id. | |
| scalar | tMom () const |
| Return const access to momentum relaxation time. | |
| scalar | user () const |
| Return const access to passive user scalar. | |
| scalar & | d0 () |
| Return access to initial droplet diameter. | |
| vector & | position0 () |
| Return access to initial droplet position. | |
| scalar & | sigma () |
| Return access to the liquid surface tension. | |
| scalar & | mu () |
| Return access to the liquid dynamic viscosity. | |
| scalar & | liquidCore () |
| Return access to liquid core. | |
| scalar & | KHindex () |
| Return access to Kelvin-Helmholtz breakup index. | |
| scalar & | y () |
| Return access to spherical deviation. | |
| scalar & | yDot () |
| Return access to rate of change of spherical deviation. | |
| scalar & | tc () |
| Return access to atomization characteristic time. | |
| scalar & | ms () |
| Return access to stripped parcel mass. | |
| scalar & | injector () |
| Return access to injector id. | |
| scalar & | tMom () |
| Return access to momentum relaxation time. | |
| scalar & | user () |
| Return access to passive user scalar. | |
| template<class TrackCloudType> | |
| void | setCellValues (TrackCloudType &cloud, trackingData &td) |
| Set cell values. | |
| template<class TrackCloudType> | |
| void | calcAtomization (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Correct parcel properties according to atomization model. | |
| template<class TrackCloudType> | |
| void | calcBreakup (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Correct parcel properties according to breakup model. | |
| template<class TrackCloudType> | |
| void | cellValueSourceCorrection (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Correct cell values using latest transfer information. | |
| template<class TrackCloudType> | |
| void | correctSurfaceValues (TrackCloudType &cloud, trackingData &td, const scalar T, const scalarField &Cs, scalar &rhos, scalar &mus, scalar &Pr, scalar &kappa) |
| Correct surface values due to emitted species. | |
| template<class TrackCloudType> | |
| void | calc (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Update parcel properties over the time interval. | |
| template<class TrackCloudType> | |
| scalar | chi (TrackCloudType &cloud, trackingData &td, const scalarField &X) const |
| Calculate the chi-factor for flash-boiling for the. | |
| template<class TrackCloudType> | |
| void | solveTABEq (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Solve the TAB equation. | |
| void | writeProperties (Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const |
| Write individual parcel properties to stream. | |
| template<class TrackCloudType> | |
| Foam::scalar | chi (TrackCloudType &cloud, trackingData &td, const scalarField &X) const |
Static Public Member Functions | |
| template<class CloudType, class CompositionType> | |
| static void | readFields (CloudType &c, const CompositionType &compModel) |
| Read. | |
| template<class CloudType> | |
| static void | readFields (CloudType &c) |
| Read - no composition. | |
| template<class CloudType, class CompositionType> | |
| static void | writeFields (const CloudType &c, const CompositionType &compModel) |
| Write. | |
| template<class CloudType> | |
| static void | writeFields (const CloudType &c) |
| Write - composition supplied. | |
| template<class CloudType> | |
| static void | readObjects (CloudType &c, const objectRegistry &obr) |
| Read particle fields as objects from the obr registry. | |
| template<class CloudType, class CompositionType> | |
| static void | readObjects (CloudType &c, const CompositionType &compModel, const objectRegistry &obr) |
| Read particle fields as objects from the obr registry. | |
| template<class CloudType> | |
| static void | writeObjects (const CloudType &c, objectRegistry &obr) |
| Write particle fields as objects into the obr registry. | |
| template<class CloudType, class CompositionType> | |
| static void | writeObjects (const CloudType &c, const CompositionType &compModel, objectRegistry &obr) |
| Write particle fields as objects into the obr registry. | |
Static Public Attributes | |
| static const std::size_t | sizeofFields |
| Size in bytes of the fields. | |
Protected Attributes | |
| scalar | d0_ |
| Initial droplet diameter. | |
| vector | position0_ |
| Injection position. | |
| scalar | sigma_ |
| Liquid surface tension [N/m]. | |
| scalar | mu_ |
| Liquid dynamic viscosity [Pa.s]. | |
| scalar | liquidCore_ |
| Part of liquid core ( >0.5=liquid, <0.5=droplet ). | |
| scalar | KHindex_ |
| Index for KH Breakup. | |
| scalar | y_ |
| Spherical deviation. | |
| scalar | yDot_ |
| Rate of change of spherical deviation. | |
| scalar | tc_ |
| Characteristic time (used in atomization and/or breakup model). | |
| scalar | ms_ |
| Stripped parcel mass due to breakup. | |
| scalar | injector_ |
| Injected from injector (needed e.g. for calculating distance. | |
| scalar | tMom_ |
| Momentum relaxation time (needed for calculating parcel acc.). | |
| scalar | user_ |
| Passive scalar (extra variable to be defined by user). | |
Friends | |
| Ostream & | operator<< (Ostream &, const SprayParcel< ParcelType > &) |
Reacting spray parcel, with added functionality for atomization and breakup.
Definition at line 54 of file SprayParcel.H.
| typedef ParcelType::trackingData trackingData |
Use base tracking data.
Definition at line 141 of file SprayParcel.H.
|
inline |
Construct from mesh, coordinates and topology.
Other properties initialised as null
Definition at line 103 of file SprayParcelI.H.
References coordinates(), d0_, injector_, KHindex_, liquidCore_, mesh, ms_, mu_, position0_, sigma_, tc_, tMom_, user_, y_, and yDot_.
Referenced by calcBreakup(), SprayParcel< ParcelType >::iNew::operator()(), readFields(), readObjects(), writeFields(), and writeObjects().


|
inline |
Construct from a position and a cell, searching for the rest of the.
required topology. Other properties are initialised as null.
Definition at line 130 of file SprayParcelI.H.
References mesh.
|
inline |
Construct from components.
Definition at line 155 of file SprayParcelI.H.
References coordinates(), d0(), d0_, injector(), injector_, KHindex(), KHindex_, liquidCore(), liquidCore_, mesh, ms(), ms_, mu_, position0_, sigma_, tc(), tc_, tMom(), tMom_, user(), user_, y(), Y0(), y_, yDot(), and yDot_.

| SprayParcel | ( | const polyMesh & | mesh, |
| Istream & | is, | ||
| bool | readFields = true, | ||
| bool | newFormat = true ) |
Construct from Istream.
Definition at line 42 of file SprayParcelIO.C.
References IOstreamOption::ASCII, IOstream::check(), d0_, IOstream::fatalCheckNativeSizes(), IOstreamOption::format(), FUNCTION_NAME, injector_, KHindex_, liquidCore_, mesh, ms_, mu_, position0_, Istream::read(), readFields(), sigma_, sizeofFields, tc_, tMom_, user_, y_, yDot_, and Foam::Zero.

| SprayParcel | ( | const SprayParcel< ParcelType > & | p, |
| const polyMesh & | mesh ) |
Construct as a copy.
| SprayParcel | ( | const SprayParcel< ParcelType > & | p | ) |
Construct as a copy.
| TypeName | ( | "SprayParcel< ParcelType >" | ) |
Runtime type information.
| AddToPropertyList | ( | ParcelType | , |
| " d0"+" position0"+" sigma"+" mu"+" liquidCore"+" KHindex"+" y"+" yDot"+" tc"+" ms"+" injector"+" tMom"+" user" | ) |
String representation of properties.
Return a (basic particle) clone.
Definition at line 341 of file SprayParcel.H.
|
inlinevirtual |
Return a (basic particle) clone.
Definition at line 349 of file SprayParcel.H.
|
inline |
Return const access to initial droplet diameter.
Definition at line 238 of file SprayParcelI.H.
References d0_.
Referenced by calcBreakup(), readFields(), readObjects(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return const access to initial droplet position.
Definition at line 245 of file SprayParcelI.H.
References position0_.
Referenced by calcAtomization(), readFields(), readObjects(), writeFields(), and writeObjects().

|
inline |
Return const access to the liquid surface tension.
Definition at line 252 of file SprayParcelI.H.
References sigma_.
Referenced by readFields(), readObjects(), writeFields(), and writeObjects().

|
inline |
Return const access to the liquid dynamic viscosity.
Definition at line 259 of file SprayParcelI.H.
References mu_.
Referenced by readFields(), readObjects(), writeFields(), and writeObjects().

|
inline |
Return const access to liquid core.
Definition at line 266 of file SprayParcelI.H.
References liquidCore_.
Referenced by calc(), calcAtomization(), calcBreakup(), readFields(), readObjects(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return const access to Kelvin-Helmholtz breakup index.
Definition at line 273 of file SprayParcelI.H.
References KHindex_.
Referenced by calcBreakup(), readFields(), readObjects(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return const access to spherical deviation.
Definition at line 280 of file SprayParcelI.H.
References y_.
Referenced by calcBreakup(), readFields(), readObjects(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return const access to rate of change of spherical deviation.
Definition at line 287 of file SprayParcelI.H.
References yDot_.
Referenced by calcBreakup(), readFields(), readObjects(), solveTABEq(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return const access to atomization characteristic time.
Definition at line 294 of file SprayParcelI.H.
References tc_.
Referenced by calcAtomization(), calcBreakup(), readFields(), readObjects(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return const access to stripped parcel mass.
Definition at line 301 of file SprayParcelI.H.
References ms_.
Referenced by calc(), calcBreakup(), readFields(), readObjects(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return const access to injector id.
Definition at line 308 of file SprayParcelI.H.
References injector_.
Referenced by calcBreakup(), readFields(), readObjects(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return const access to momentum relaxation time.
Definition at line 315 of file SprayParcelI.H.
References tMom_.
Referenced by calcBreakup(), readFields(), readObjects(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return const access to passive user scalar.
Definition at line 322 of file SprayParcelI.H.
References user_.
Referenced by calcBreakup(), readFields(), readObjects(), SprayParcel(), writeFields(), and writeObjects().

|
inline |
Return access to initial droplet diameter.
Definition at line 329 of file SprayParcelI.H.
References d0_.
|
inline |
Return access to initial droplet position.
Definition at line 336 of file SprayParcelI.H.
References position0_.
|
inline |
Return access to the liquid surface tension.
Definition at line 343 of file SprayParcelI.H.
References sigma_.
|
inline |
Return access to the liquid dynamic viscosity.
Definition at line 350 of file SprayParcelI.H.
References mu_.
|
inline |
Return access to liquid core.
Definition at line 357 of file SprayParcelI.H.
References liquidCore_.
|
inline |
Return access to Kelvin-Helmholtz breakup index.
Definition at line 364 of file SprayParcelI.H.
References KHindex_.
|
inline |
|
inline |
Return access to rate of change of spherical deviation.
Definition at line 378 of file SprayParcelI.H.
References yDot_.
|
inline |
Return access to atomization characteristic time.
Definition at line 385 of file SprayParcelI.H.
References tc_.
|
inline |
Return access to stripped parcel mass.
Definition at line 392 of file SprayParcelI.H.
References ms_.
|
inline |
|
inline |
Return access to momentum relaxation time.
Definition at line 406 of file SprayParcelI.H.
References tMom_.
|
inline |
Return access to passive user scalar.
Definition at line 413 of file SprayParcelI.H.
References user_.
| void setCellValues | ( | TrackCloudType & | cloud, |
| trackingData & | td ) |
Set cell values.
Definition at line 30 of file SprayParcel.C.
References td().

| void calcAtomization | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt ) |
Correct parcel properties according to atomization model.
Definition at line 143 of file SprayParcel.C.
References chi(), composition, IOobject::db(), liquidCore(), Foam::mag(), Foam::max(), Foam::min(), mu_, Foam::pos(), position0(), R, rho, Foam::constant::thermodynamic::RR, sigma_, T, tc(), td(), objectRegistry::time(), U, Urel, and dimensioned< Type >::value().
Referenced by calc().


| void calcBreakup | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt ) |
Correct parcel properties according to breakup model.
Definition at line 212 of file SprayParcel.C.
References d0(), g, injector(), KHindex(), liquidCore(), Foam::mag(), ms(), mu_, UPstream::myProcNo(), p, R, Foam::Re(), Foam::constant::thermodynamic::RR, sigma_, solveTABEq(), forceSuSp::Sp(), SprayParcel(), T, tc(), td(), tMom(), U, Urel, user(), y(), and yDot().
Referenced by calc().


| void cellValueSourceCorrection | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt ) |
Correct cell values using latest transfer information.
Definition at line 42 of file SprayParcel.C.
References td().

| void correctSurfaceValues | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | T, | ||
| const scalarField & | Cs, | ||
| scalar & | rhos, | ||
| scalar & | mus, | ||
| scalar & | Pr, | ||
| scalar & | kappa ) |
Correct surface values due to emitted species.
| void calc | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt ) |
Update parcel properties over the time interval.
Definition at line 55 of file SprayParcel.C.
References calcAtomization(), calcBreakup(), Foam::cbrt(), composition, Cp, liquidCore(), ms(), mu_, Foam::pow3(), rho, rho0, rho1, sigma_, T, T0, td(), and X0().

| scalar chi | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalarField & | X ) const |
Calculate the chi-factor for flash-boiling for the.
atomization model
Referenced by calcAtomization().

| void solveTABEq | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt ) |
Solve the TAB equation.
Definition at line 363 of file SprayParcel.C.
References Foam::cos(), e, Foam::exp(), mu_, rho, s(), sigma_, Foam::sin(), Foam::sqrt(), td(), y, Foam::y0(), and yDot().
Referenced by calcBreakup().


|
static |
Read.
Definition at line 106 of file SprayParcelIO.C.
References d0(), injector(), KHindex(), liquidCore(), ms(), mu(), mu, IOobjectOption::MUST_READ, p, position0(), sigma(), sigma(), SprayParcel(), tc(), tMom(), user(), y(), y, and yDot().
Referenced by SprayParcel().


Read - no composition.
Definition at line 98 of file SprayParcelIO.C.
|
static |
Write.
Definition at line 231 of file SprayParcelIO.C.
References d0(), injector(), KHindex(), liquidCore(), ms(), mu(), mu, IOobjectOption::NO_READ, p, position0(), sigma(), sigma(), SprayParcel(), tc(), tMom(), user(), y(), y, and yDot().

Write - composition supplied.
Definition at line 223 of file SprayParcelIO.C.
|
static |
Read particle fields as objects from the obr registry.
Definition at line 338 of file SprayParcelIO.C.
|
static |
Read particle fields as objects from the obr registry.
Definition at line 362 of file SprayParcelIO.C.
References d0(), injector(), KHindex(), liquidCore(), cloud::lookupIOField(), ms(), mu(), p, position0(), sigma(), SprayParcel(), tc(), tMom(), user(), y(), and yDot().

|
static |
Write particle fields as objects into the obr registry.
Definition at line 350 of file SprayParcelIO.C.
|
static |
Write particle fields as objects into the obr registry.
Definition at line 411 of file SprayParcelIO.C.
References cloud::createIOField(), d0(), injector(), KHindex(), liquidCore(), ms(), mu(), p, position0(), sigma(), SprayParcel(), tc(), tMom(), user(), y(), and yDot().

| Foam::scalar chi | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalarField & | X ) const |
Definition at line 321 of file SprayParcel.C.
|
friend |
|
protected |
Initial droplet diameter.
Definition at line 153 of file SprayParcel.H.
Referenced by d0(), d0(), SprayParcel(), SprayParcel(), SprayParcel(), and writeProperties().
|
protected |
Injection position.
Definition at line 158 of file SprayParcel.H.
Referenced by position0(), position0(), SprayParcel(), SprayParcel(), SprayParcel(), and writeProperties().
|
protected |
Liquid surface tension [N/m].
Definition at line 163 of file SprayParcel.H.
Referenced by calc(), calcAtomization(), calcBreakup(), sigma(), sigma(), solveTABEq(), SprayParcel(), SprayParcel(), SprayParcel(), and writeProperties().
|
protected |
Liquid dynamic viscosity [Pa.s].
Definition at line 168 of file SprayParcel.H.
Referenced by calc(), calcAtomization(), calcBreakup(), mu(), mu(), solveTABEq(), SprayParcel(), SprayParcel(), SprayParcel(), and writeProperties().
|
protected |
Part of liquid core ( >0.5=liquid, <0.5=droplet ).
Definition at line 173 of file SprayParcel.H.
Referenced by liquidCore(), liquidCore(), SprayParcel(), SprayParcel(), SprayParcel(), and writeProperties().
|
protected |
Index for KH Breakup.
Definition at line 178 of file SprayParcel.H.
Referenced by KHindex(), KHindex(), SprayParcel(), SprayParcel(), SprayParcel(), and writeProperties().
|
protected |
Spherical deviation.
Definition at line 183 of file SprayParcel.H.
Referenced by SprayParcel(), SprayParcel(), SprayParcel(), writeProperties(), y(), and y().
|
protected |
Rate of change of spherical deviation.
Definition at line 188 of file SprayParcel.H.
Referenced by SprayParcel(), SprayParcel(), SprayParcel(), writeProperties(), yDot(), and yDot().
|
protected |
Characteristic time (used in atomization and/or breakup model).
Definition at line 193 of file SprayParcel.H.
Referenced by SprayParcel(), SprayParcel(), SprayParcel(), tc(), tc(), and writeProperties().
|
protected |
Stripped parcel mass due to breakup.
Definition at line 198 of file SprayParcel.H.
Referenced by ms(), ms(), SprayParcel(), SprayParcel(), SprayParcel(), and writeProperties().
|
protected |
Injected from injector (needed e.g. for calculating distance.
from injector)
Definition at line 205 of file SprayParcel.H.
Referenced by injector(), injector(), SprayParcel(), SprayParcel(), SprayParcel(), and writeProperties().
|
protected |
Momentum relaxation time (needed for calculating parcel acc.).
Definition at line 210 of file SprayParcel.H.
Referenced by SprayParcel(), SprayParcel(), SprayParcel(), tMom(), tMom(), and writeProperties().
|
protected |
Passive scalar (extra variable to be defined by user).
Definition at line 215 of file SprayParcel.H.
Referenced by SprayParcel(), SprayParcel(), SprayParcel(), user(), user(), and writeProperties().
|
static |
Size in bytes of the fields.
Definition at line 225 of file SprayParcel.H.
Referenced by SprayParcel().