Reaching spray parcel, with added functionality for atomisation and breakup. More...
Classes | |
class | constantProperties |
Class to hold reacting particle constant properties. More... | |
Public Types | |
typedef ParcelType::trackingData | trackingData |
Use base tracking data. More... | |
Public Member Functions | |
SprayParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei) | |
Construct from mesh, coordinates and topology. More... | |
SprayParcel (const polyMesh &mesh, const vector &position, const label celli, label &nLocateBoundaryHits) | |
Construct from a position and a cell, searching for the rest of the. More... | |
SprayParcel (Istream &is, bool readFields=true) | |
Construct from Istream. More... | |
SprayParcel (const SprayParcel &p) | |
Construct as a copy. More... | |
virtual autoPtr< particle > | clone () const |
Construct and return a clone. More... | |
scalar | d0 () const |
Return const access to initial droplet diameter. More... | |
scalar | mass0 () const |
Return const access to initial mass [kg]. More... | |
const vector & | position0 () const |
Return const access to initial droplet position. More... | |
scalar | sigma () const |
Return const access to the liquid surface tension. More... | |
scalar | mu () const |
Return const access to the liquid dynamic viscosity. More... | |
scalar | liquidCore () const |
Return const access to liquid core. More... | |
scalar | KHindex () const |
Return const access to Kelvin-Helmholtz breakup index. More... | |
scalar | y () const |
Return const access to spherical deviation. More... | |
scalar | yDot () const |
Return const access to rate of change of spherical deviation. More... | |
scalar | tc () const |
Return const access to atomisation characteristic time. More... | |
scalar | ms () const |
Return const access to stripped parcel mass. More... | |
label | injector () const |
Return const access to injector id. More... | |
scalar | tMom () const |
Return const access to momentum relaxation time. More... | |
scalar & | d0 () |
Return access to initial droplet diameter. More... | |
scalar & | mass0 () |
Return access to initial mass [kg]. More... | |
vector & | position0 () |
Return access to initial droplet position. More... | |
scalar & | sigma () |
Return access to the liquid surface tension. More... | |
scalar & | mu () |
Return access to the liquid dynamic viscosity. More... | |
scalar & | liquidCore () |
Return access to liquid core. More... | |
scalar & | KHindex () |
Return access to Kelvin-Helmholtz breakup index. More... | |
scalar & | y () |
Return access to spherical deviation. More... | |
scalar & | yDot () |
Return access to rate of change of spherical deviation. More... | |
scalar & | tc () |
Return access to atomisation characteristic time. More... | |
scalar & | ms () |
Return access to stripped parcel mass. More... | |
label & | injector () |
Return access to injector id. More... | |
scalar & | tMom () |
Return access to momentum relaxation time. More... | |
template<class TrackCloudType > | |
void | setCellValues (TrackCloudType &cloud, trackingData &td) |
Set cell values. More... | |
template<class TrackCloudType > | |
void | calcAtomisation (TrackCloudType &cloud, trackingData &td, const scalar dt) |
Correct parcel properties according to atomisation model. More... | |
template<class TrackCloudType > | |
void | calcBreakup (TrackCloudType &cloud, trackingData &td, const scalar dt) |
Correct parcel properties according to breakup model. More... | |
template<class TrackCloudType > | |
void | cellValueSourceCorrection (TrackCloudType &cloud, trackingData &td, const scalar dt) |
Correct cell values using latest transfer information. More... | |
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. More... | |
template<class TrackCloudType > | |
void | calc (TrackCloudType &cloud, trackingData &td, const scalar dt) |
Update parcel properties over the time interval. More... | |
template<class TrackCloudType > | |
scalar | chi (TrackCloudType &cloud, trackingData &td, const scalarField &X) const |
Calculate the chi-factor for flash-boiling for the. More... | |
template<class TrackCloudType > | |
void | solveTABEq (TrackCloudType &cloud, trackingData &td, const scalar dt) |
Solve the TAB equation. More... | |
template<class TrackCloudType > | |
Foam::scalar | chi (TrackCloudType &cloud, trackingData &td, const scalarField &X) const |
Static Public Member Functions | |
static autoPtr< SprayParcel > | New (Istream &is) |
Construct from Istream and return. More... | |
template<class CloudType , class CompositionType > | |
static void | readFields (CloudType &c, const CompositionType &compModel) |
Read. More... | |
template<class CloudType > | |
static void | readFields (CloudType &c) |
Read - no composition. More... | |
template<class CloudType , class CompositionType > | |
static void | writeFields (const CloudType &c, const CompositionType &compModel) |
Write. More... | |
template<class CloudType > | |
static void | writeFields (const CloudType &c) |
Write - composition supplied. More... | |
Protected Attributes | |
scalar | d0_ |
Initial droplet diameter [m]. More... | |
scalar | mass0_ |
Initial mass [kg]. More... | |
vector | position0_ |
Injection position. More... | |
scalar | sigma_ |
Liquid surface tension [N/m]. More... | |
scalar | mu_ |
Liquid dynamic viscosity [Pa.s]. More... | |
scalar | liquidCore_ |
Part of liquid core ( >0.5=liquid, <0.5=droplet ) More... | |
scalar | KHindex_ |
Index for KH Breakup. More... | |
scalar | y_ |
Spherical deviation. More... | |
scalar | yDot_ |
Rate of change of spherical deviation. More... | |
scalar | tc_ |
Characteristic time (used in atomisation and/or breakup model) More... | |
scalar | ms_ |
Stripped parcel mass due to breakup. More... | |
label | injector_ |
Injector id. More... | |
scalar | tMom_ |
Momentum relaxation time (needed for calculating parcel acc.) More... | |
Friends | |
Ostream & | operator (Ostream &, const SprayParcel< ParcelType > &) |
Reaching spray parcel, with added functionality for atomisation and breakup.
Definition at line 65 of file SprayParcel.H.
typedef ParcelType::trackingData trackingData |
Use base tracking data.
Definition at line 139 of file SprayParcel.H.
|
inline |
Construct from mesh, coordinates and topology.
Other properties initialised as null
Definition at line 109 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::New().
|
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 137 of file SprayParcelI.H.
SprayParcel | ( | Istream & | is, |
bool | readFields = true |
||
) |
Construct from Istream.
Definition at line 41 of file SprayParcelIO.C.
References IOstream::ASCII, IOstream::check(), SprayParcel< ParcelType >::d0_, IOstream::format(), SprayParcel< ParcelType >::injector_, SprayParcel< ParcelType >::KHindex_, SprayParcel< ParcelType >::liquidCore_, SprayParcel< ParcelType >::mass0_, SprayParcel< ParcelType >::ms_, SprayParcel< ParcelType >::mu_, SprayParcel< ParcelType >::position0_, Istream::read(), SprayParcel< ParcelType >::readFields(), Foam::readLabel(), Foam::readScalar(), SprayParcel< ParcelType >::sigma_, SprayParcel< ParcelType >::tc_, SprayParcel< ParcelType >::tMom_, SprayParcel< ParcelType >::y_, and SprayParcel< ParcelType >::yDot_.
SprayParcel | ( | const SprayParcel< ParcelType > & | p | ) |
Construct as a copy.
Construct and return a clone.
Definition at line 221 of file SprayParcel.H.
|
inlinestatic |
Construct from Istream and return.
Definition at line 227 of file SprayParcel.H.
References SprayParcel< ParcelType >::SprayParcel().
|
inline |
Return const access to initial droplet diameter.
Definition at line 183 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return const access to initial mass [kg].
Definition at line 190 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return const access to initial droplet position.
Definition at line 197 of file SprayParcelI.H.
|
inline |
Return const access to the liquid surface tension.
Definition at line 204 of file SprayParcelI.H.
|
inline |
Return const access to the liquid dynamic viscosity.
Definition at line 211 of file SprayParcelI.H.
|
inline |
Return const access to liquid core.
Definition at line 218 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return const access to Kelvin-Helmholtz breakup index.
Definition at line 225 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return const access to spherical deviation.
Definition at line 232 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return const access to rate of change of spherical deviation.
Definition at line 239 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return const access to atomisation characteristic time.
Definition at line 246 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return const access to stripped parcel mass.
Definition at line 253 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return const access to injector id.
Definition at line 260 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return const access to momentum relaxation time.
Definition at line 267 of file SprayParcelI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup().
|
inline |
Return access to initial droplet diameter.
Definition at line 274 of file SprayParcelI.H.
|
inline |
Return access to initial mass [kg].
Definition at line 281 of file SprayParcelI.H.
|
inline |
Return access to initial droplet position.
Definition at line 288 of file SprayParcelI.H.
|
inline |
Return access to the liquid surface tension.
Definition at line 295 of file SprayParcelI.H.
|
inline |
Return access to the liquid dynamic viscosity.
Definition at line 302 of file SprayParcelI.H.
|
inline |
Return access to liquid core.
Definition at line 309 of file SprayParcelI.H.
|
inline |
Return access to Kelvin-Helmholtz breakup index.
Definition at line 316 of file SprayParcelI.H.
|
inline |
Return access to spherical deviation.
Definition at line 323 of file SprayParcelI.H.
|
inline |
Return access to rate of change of spherical deviation.
Definition at line 330 of file SprayParcelI.H.
|
inline |
Return access to atomisation characteristic time.
Definition at line 337 of file SprayParcelI.H.
|
inline |
Return access to stripped parcel mass.
Definition at line 344 of file SprayParcelI.H.
|
inline |
Return access to injector id.
Definition at line 351 of file SprayParcelI.H.
|
inline |
Return access to momentum relaxation time.
Definition at line 358 of file SprayParcelI.H.
void setCellValues | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Set cell values.
Definition at line 35 of file SprayParcel.C.
void calcAtomisation | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Correct parcel properties according to atomisation model.
Definition at line 149 of file SprayParcel.C.
References AtomisationModel< CloudType >::calcChi(), IOobject::db(), CompositionModel< CloudType >::liquids(), Foam::mag(), Foam::max(), Foam::min(), Foam::pos(), R, rho, rho0, Foam::constant::physicoChemical::RR, Foam::T(), AtomisationModel< CloudType >::Taverage(), objectRegistry::time(), U, AtomisationModel< CloudType >::update(), dimensioned< Type >::value(), and liquidMixtureProperties::X().
void calcBreakup | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Correct parcel properties according to breakup model.
Definition at line 220 of file SprayParcel.C.
References SprayParcel< ParcelType >::d0(), SprayParcel< ParcelType >::injector(), SprayParcel< ParcelType >::KHindex(), SprayParcel< ParcelType >::liquidCore(), Foam::mag(), SprayParcel< ParcelType >::mass0(), SprayParcel< ParcelType >::ms(), p, R, Foam::Re(), rho, Foam::constant::physicoChemical::RR, forceSuSp::Sp(), Foam::T(), SprayParcel< ParcelType >::tc(), SprayParcel< ParcelType >::tMom(), U, SprayParcel< ParcelType >::y(), y, and SprayParcel< ParcelType >::yDot().
void cellValueSourceCorrection | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Correct cell values using latest transfer information.
Definition at line 47 of file SprayParcel.C.
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 60 of file SprayParcel.C.
References Foam::cbrt(), Cp(), liquidMixtureProperties::Cp(), CompositionModel< CloudType >::liquids(), liquidMixtureProperties::mu(), Foam::pow3(), liquidMixtureProperties::pv(), liquidMixtureProperties::pvInvert(), rho, liquidMixtureProperties::rho(), rho0, liquidMixtureProperties::sigma(), Foam::T(), T0, liquidMixtureProperties::Tc(), liquidMixtureProperties::X(), and X0().
scalar chi | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalarField & | X | ||
) | const |
Calculate the chi-factor for flash-boiling for the.
atomisation model
void solveTABEq | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Solve the TAB equation.
Definition at line 368 of file SprayParcel.C.
References Foam::constant::universal::c, Foam::cos(), Foam::constant::electromagnetic::e, Foam::exp(), omega, rho, s(), Foam::sin(), Foam::sqrt(), y, and Foam::y0().
|
static |
Read.
Definition at line 105 of file SprayParcelIO.C.
References Foam::constant::universal::c, forAllIter, Foam::constant::physicoChemical::mu, IOobject::MUST_READ, p, Foam::readFields(), Foam::constant::physicoChemical::sigma, Foam::vtkWriteOps::write(), and y.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
static |
Read - no composition.
Definition at line 97 of file SprayParcelIO.C.
References Foam::constant::universal::c, and Foam::readFields().
|
static |
Write.
Definition at line 222 of file SprayParcelIO.C.
References Foam::constant::universal::c, forAllConstIter, Foam::constant::physicoChemical::mu, IOobject::NO_READ, p, Foam::constant::physicoChemical::sigma, regIOobject::write(), Foam::vtkWriteOps::write(), and y.
|
static |
Write - composition supplied.
Definition at line 214 of file SprayParcelIO.C.
References Foam::constant::universal::c.
Foam::scalar chi | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalarField & | X | ||
) | const |
Definition at line 323 of file SprayParcel.C.
References forAll, liquidProperties::ha(), liquidProperties::hl(), CompositionModel< CloudType >::liquids(), Foam::max(), Foam::min(), liquidMixtureProperties::properties(), liquidMixtureProperties::pv(), liquidProperties::pvInvert(), thermophysicalProperties::rho(), Foam::T(), and T0.
|
friend |
|
protected |
Initial droplet diameter [m].
Definition at line 149 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Initial mass [kg].
Definition at line 152 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Injection position.
Definition at line 155 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Liquid surface tension [N/m].
Definition at line 158 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Liquid dynamic viscosity [Pa.s].
Definition at line 161 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Part of liquid core ( >0.5=liquid, <0.5=droplet )
Definition at line 164 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Index for KH Breakup.
Definition at line 167 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Spherical deviation.
Definition at line 170 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Rate of change of spherical deviation.
Definition at line 173 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Characteristic time (used in atomisation and/or breakup model)
Definition at line 176 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Stripped parcel mass due to breakup.
Definition at line 179 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Injector id.
Definition at line 182 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().
|
protected |
Momentum relaxation time (needed for calculating parcel acc.)
Definition at line 185 of file SprayParcel.H.
Referenced by SprayParcel< ParcelType >::SprayParcel().