Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
SprayParcel< ParcelType > Class Template Reference

Reacing spray parcel, with added functionality for atomization and breakup. More...

Inheritance diagram for SprayParcel< ParcelType >:
Inheritance graph
[legend]
Collaboration diagram for SprayParcel< ParcelType >:
Collaboration graph
[legend]

Classes

class  constantProperties
 Class to hold reacting particle constant properties. More...
 
class  iNew
 Factory class to read-construct particles used for. More...
 

Public Member Functions

 TypeName ("SprayParcel")
 Runtime type information. More...
 
 SprayParcel (const polyMesh &mesh, const vector &position, const label cellI, const label tetFaceI, const label tetPtI)
 Construct from owner, position, and cloud owner. More...
 
 SprayParcel (const polyMesh &mesh, const vector &position, 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. More...
 
 SprayParcel (const polyMesh &mesh, Istream &is, bool readFields=true)
 Construct from Istream. More...
 
 SprayParcel (const SprayParcel &p, const polyMesh &mesh)
 Construct as a copy. More...
 
 SprayParcel (const SprayParcel &p)
 Construct as a copy. More...
 
virtual autoPtr< particleclone () const
 Construct and return a (basic particle) clone. More...
 
virtual autoPtr< particleclone (const polyMesh &mesh) const
 Construct and return a (basic particle) clone. More...
 
scalar d0 () const
 Return const access to initial droplet diameter. More...
 
const vectorposition0 () 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 atomization characteristic time. More...
 
scalar ms () const
 Return const access to stripped parcel mass. More...
 
scalar injector () const
 Return const access to injector id. More...
 
scalar tMom () const
 Return const access to momentum relaxation time. More...
 
scalar user () const
 Return const access to passive user scalar. More...
 
scalar & d0 ()
 Return access to initial droplet diameter. More...
 
vectorposition0 ()
 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 atomization characteristic time. More...
 
scalar & ms ()
 Return access to stripped parcel mass. More...
 
scalar & injector ()
 Return access to injector id. More...
 
scalar & tMom ()
 Return access to momentum relaxation time. More...
 
scalar & user ()
 Return access to passive user scalar. More...
 
template<class TrackData >
void setCellValues (TrackData &td, const scalar dt, const label cellI)
 Set cell values. More...
 
template<class TrackData >
void calcAtomization (TrackData &td, const scalar dt, const label cellI)
 Correct parcel properties according to atomization model. More...
 
template<class TrackData >
void calcBreakup (TrackData &td, const scalar dt, const label cellI)
 Correct parcel properties according to breakup model. More...
 
template<class TrackData >
void cellValueSourceCorrection (TrackData &td, const scalar dt, const label cellI)
 Correct cell values using latest transfer information. More...
 
template<class TrackData >
void correctSurfaceValues (TrackData &td, const label cellI, const scalar T, const scalarField &Cs, scalar &rhos, scalar &mus, scalar &Pr, scalar &kappa)
 Correct surface values due to emitted species. More...
 
template<class TrackData >
void calc (TrackData &td, const scalar dt, const label cellI)
 Update parcel properties over the time interval. More...
 
template<class TrackData >
scalar chi (TrackData &td, const scalarField &X) const
 Calculate the chi-factor for flash-boiling for the. More...
 
template<class TrackData >
void solveTABEq (TrackData &td, const scalar dt)
 Solve the TAB equation. More...
 
template<class TrackData >
Foam::scalar chi (TrackData &td, const scalarField &X) const
 

Static Public Member Functions

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. 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 atomization and/or breakup model) More...
 
scalar ms_
 Stripped parcel mass due to breakup. More...
 
scalar injector_
 Injected from injector (needed e.g. for calculating distance. More...
 
scalar tMom_
 Momentum relaxation time (needed for calculating parcel acc.) More...
 
scalar user_
 Passive scalar (extra variable to be defined by user) More...
 

Friends

Ostreamoperator (Ostream &, const SprayParcel< ParcelType > &)
 

Detailed Description

template<class ParcelType>
class Foam::SprayParcel< ParcelType >

Reacing spray parcel, with added functionality for atomization and breakup.

Definition at line 43 of file SprayParcel.H.

Constructor & Destructor Documentation

SprayParcel ( const polyMesh mesh,
const vector position,
const label  cellI,
const label  tetFaceI,
const label  tetPtI 
)
inline

Construct from owner, position, and cloud owner.

Other properties initialised as null

Definition at line 108 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::constantProperties::constantProperties(), and SprayParcel< ParcelType >::solveTABEq().

Here is the caller graph for this function:

SprayParcel ( const polyMesh mesh,
const vector position,
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 
)
inline

Construct from components.

Definition at line 135 of file SprayParcelI.H.

SprayParcel ( const polyMesh mesh,
Istream is,
bool  readFields = true 
)

Construct from Istream.

Definition at line 42 of file SprayParcelIO.C.

References IOstream::check(), IOstream::format(), Istream::read(), and readScalar.

Here is the call graph for this function:

SprayParcel ( const SprayParcel< ParcelType > &  p,
const polyMesh mesh 
)

Construct as a copy.

SprayParcel ( const SprayParcel< ParcelType > &  p)

Construct as a copy.

Member Function Documentation

TypeName ( "SprayParcel< ParcelType >"  )

Runtime type information.

virtual autoPtr<particle> clone ( ) const
inlinevirtual

Construct and return a (basic particle) clone.

Definition at line 245 of file SprayParcel.H.

virtual autoPtr<particle> clone ( const polyMesh mesh) const
inlinevirtual

Construct and return a (basic particle) clone.

Definition at line 251 of file SprayParcel.H.

References mesh.

Foam::scalar d0 ( ) const
inline

Return const access to initial droplet diameter.

Definition at line 217 of file SprayParcelI.H.

References SprayParcel< ParcelType >::d0_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

const Foam::vector & position0 ( ) const
inline

Return const access to initial droplet position.

Definition at line 224 of file SprayParcelI.H.

References SprayParcel< ParcelType >::position0_.

Referenced by SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar sigma ( ) const
inline

Return const access to the liquid surface tension.

Definition at line 231 of file SprayParcelI.H.

References SprayParcel< ParcelType >::sigma_.

Referenced by SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar mu ( ) const
inline

Return const access to the liquid dynamic viscosity.

Definition at line 238 of file SprayParcelI.H.

References SprayParcel< ParcelType >::mu_.

Referenced by SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar liquidCore ( ) const
inline

Return const access to liquid core.

Definition at line 245 of file SprayParcelI.H.

References SprayParcel< ParcelType >::liquidCore_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar KHindex ( ) const
inline

Return const access to Kelvin-Helmholtz breakup index.

Definition at line 252 of file SprayParcelI.H.

References SprayParcel< ParcelType >::KHindex_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar y ( ) const
inline

Return const access to spherical deviation.

Definition at line 259 of file SprayParcelI.H.

References SprayParcel< ParcelType >::y_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar yDot ( ) const
inline

Return const access to rate of change of spherical deviation.

Definition at line 266 of file SprayParcelI.H.

References SprayParcel< ParcelType >::yDot_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar tc ( ) const
inline

Return const access to atomization characteristic time.

Definition at line 273 of file SprayParcelI.H.

References SprayParcel< ParcelType >::tc_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar ms ( ) const
inline

Return const access to stripped parcel mass.

Definition at line 280 of file SprayParcelI.H.

References SprayParcel< ParcelType >::ms_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar injector ( ) const
inline

Return const access to injector id.

Definition at line 287 of file SprayParcelI.H.

References SprayParcel< ParcelType >::injector_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar tMom ( ) const
inline

Return const access to momentum relaxation time.

Definition at line 294 of file SprayParcelI.H.

References SprayParcel< ParcelType >::tMom_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar user ( ) const
inline

Return const access to passive user scalar.

Definition at line 301 of file SprayParcelI.H.

References SprayParcel< ParcelType >::user_.

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

Foam::scalar & d0 ( )
inline

Return access to initial droplet diameter.

Definition at line 308 of file SprayParcelI.H.

References SprayParcel< ParcelType >::d0_.

Foam::vector & position0 ( )
inline

Return access to initial droplet position.

Definition at line 315 of file SprayParcelI.H.

References SprayParcel< ParcelType >::position0_.

Foam::scalar & sigma ( )
inline

Return access to the liquid surface tension.

Definition at line 322 of file SprayParcelI.H.

References SprayParcel< ParcelType >::sigma_.

Foam::scalar & mu ( )
inline

Return access to the liquid dynamic viscosity.

Definition at line 329 of file SprayParcelI.H.

References SprayParcel< ParcelType >::mu_.

Foam::scalar & liquidCore ( )
inline

Return access to liquid core.

Definition at line 336 of file SprayParcelI.H.

References SprayParcel< ParcelType >::liquidCore_.

Foam::scalar & KHindex ( )
inline

Return access to Kelvin-Helmholtz breakup index.

Definition at line 343 of file SprayParcelI.H.

References SprayParcel< ParcelType >::KHindex_.

Foam::scalar & y ( )
inline

Return access to spherical deviation.

Definition at line 350 of file SprayParcelI.H.

References SprayParcel< ParcelType >::y_.

Foam::scalar & yDot ( )
inline

Return access to rate of change of spherical deviation.

Definition at line 357 of file SprayParcelI.H.

References SprayParcel< ParcelType >::yDot_.

Foam::scalar & tc ( )
inline

Return access to atomization characteristic time.

Definition at line 364 of file SprayParcelI.H.

References SprayParcel< ParcelType >::tc_.

Foam::scalar & ms ( )
inline

Return access to stripped parcel mass.

Definition at line 371 of file SprayParcelI.H.

References SprayParcel< ParcelType >::ms_.

Foam::scalar & injector ( )
inline

Return access to injector id.

Definition at line 378 of file SprayParcelI.H.

References SprayParcel< ParcelType >::injector_.

Foam::scalar & tMom ( )
inline

Return access to momentum relaxation time.

Definition at line 385 of file SprayParcelI.H.

References SprayParcel< ParcelType >::tMom_.

Foam::scalar & user ( )
inline

Return access to passive user scalar.

Definition at line 392 of file SprayParcelI.H.

References SprayParcel< ParcelType >::user_.

void setCellValues ( TrackData &  td,
const scalar  dt,
const label  cellI 
)

Set cell values.

Definition at line 35 of file SprayParcel.C.

References SprayParcel< ParcelType >::cellValueSourceCorrection().

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the call graph for this function:

Here is the caller graph for this function:

void calcAtomization ( TrackData &  td,
const scalar  dt,
const label  cellI 
)
void calcBreakup ( TrackData &  td,
const scalar  dt,
const label  cellI 
)
void cellValueSourceCorrection ( TrackData &  td,
const scalar  dt,
const label  cellI 
)

Correct cell values using latest transfer information.

Definition at line 48 of file SprayParcel.C.

References SprayParcel< ParcelType >::calc().

Referenced by SprayParcel< ParcelType >::iNew::operator()(), and SprayParcel< ParcelType >::setCellValues().

Here is the call graph for this function:

Here is the caller graph for this function:

void correctSurfaceValues ( TrackData &  td,
const label  cellI,
const scalar  T,
const scalarField Cs,
scalar &  rhos,
scalar &  mus,
scalar &  Pr,
scalar &  kappa 
)

Correct surface values due to emitted species.

Referenced by SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

void calc ( TrackData &  td,
const scalar  dt,
const label  cellI 
)

Update parcel properties over the time interval.

Definition at line 61 of file SprayParcel.C.

References Foam::calc(), SprayParcel< ParcelType >::calcAtomization(), Foam::cbrt(), composition, CompositionModel< CloudType >::liquids(), Foam::pow3(), rho, rho0, rho1, T, X0(), and Y.

Referenced by SprayParcel< ParcelType >::cellValueSourceCorrection(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the call graph for this function:

Here is the caller graph for this function:

scalar chi ( TrackData &  td,
const scalarField X 
) const

Calculate the chi-factor for flash-boiling for the.

atomization model

Referenced by SprayParcel< ParcelType >::calcBreakup(), and SprayParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

void solveTABEq ( TrackData &  td,
const scalar  dt 
)
void readFields ( CloudType c,
const CompositionType &  compModel 
)
static
void readFields ( CloudType c)
static

Read - no composition.

Definition at line 102 of file SprayParcelIO.C.

References Foam::readFields(), SprayParcel< ParcelType >::readFields(), and Cloud< ParticleType >::size().

Here is the call graph for this function:

void writeFields ( const CloudType c,
const CompositionType &  compModel 
)
static
void writeFields ( const CloudType c)
static

Write - composition supplied.

Definition at line 197 of file SprayParcelIO.C.

References SprayParcel< ParcelType >::writeFields().

Here is the call graph for this function:

Foam::scalar chi ( TrackData &  td,
const scalarField X 
) const

Friends And Related Function Documentation

Ostream& operator ( Ostream ,
const SprayParcel< ParcelType > &   
)
friend

Member Data Documentation

scalar d0_
protected
vector position0_
protected
scalar sigma_
protected
scalar mu_
protected
scalar liquidCore_
protected
scalar KHindex_
protected
scalar y_
protected
scalar yDot_
protected
scalar tc_
protected

Characteristic time (used in atomization and/or breakup model)

Definition at line 160 of file SprayParcel.H.

Referenced by SprayParcel< ParcelType >::readFields(), SprayParcel< ParcelType >::solveTABEq(), SprayParcel< ParcelType >::tc(), and SprayParcel< ParcelType >::writeFields().

scalar ms_
protected
scalar injector_
protected

Injected from injector (needed e.g. for calculating distance.

from injector)

Definition at line 167 of file SprayParcel.H.

Referenced by SprayParcel< ParcelType >::injector(), SprayParcel< ParcelType >::readFields(), SprayParcel< ParcelType >::solveTABEq(), and SprayParcel< ParcelType >::writeFields().

scalar tMom_
protected

Momentum relaxation time (needed for calculating parcel acc.)

Definition at line 170 of file SprayParcel.H.

Referenced by SprayParcel< ParcelType >::readFields(), SprayParcel< ParcelType >::solveTABEq(), SprayParcel< ParcelType >::tMom(), and SprayParcel< ParcelType >::writeFields().

scalar user_
protected

The documentation for this class was generated from the following files: