SprayParcel< ParcelType > Class Template Reference

Reaching spray parcel, with added functionality for atomisation and breakup. More...

Inheritance diagram for SprayParcel< ParcelType >:
Collaboration diagram for SprayParcel< ParcelType >:

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< particleclone () 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 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 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...
 
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 atomisation characteristic time. More...
 
scalar & ms ()
 Return access to stripped parcel mass. More...
 
labelinjector ()
 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< SprayParcelNew (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

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

Detailed Description

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

Reaching spray parcel, with added functionality for atomisation and breakup.

Definition at line 65 of file SprayParcel.H.

Member Typedef Documentation

◆ trackingData

typedef ParcelType::trackingData trackingData

Use base tracking data.

Definition at line 139 of file SprayParcel.H.

Constructor & Destructor Documentation

◆ SprayParcel() [1/4]

SprayParcel ( const polyMesh mesh,
const barycentric coordinates,
const label  celli,
const label  tetFacei,
const label  tetPti,
const label  facei 
)
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().

Here is the caller graph for this function:

◆ SprayParcel() [2/4]

SprayParcel ( const polyMesh mesh,
const vector position,
const label  celli,
label nLocateBoundaryHits 
)
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() [3/4]

◆ SprayParcel() [4/4]

SprayParcel ( const SprayParcel< ParcelType > &  p)

Construct as a copy.

Member Function Documentation

◆ clone()

virtual autoPtr<particle> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 221 of file SprayParcel.H.

◆ New()

static autoPtr<SprayParcel> New ( Istream is)
inlinestatic

Construct from Istream and return.

Definition at line 227 of file SprayParcel.H.

References SprayParcel< ParcelType >::SprayParcel().

Here is the call graph for this function:

◆ d0() [1/2]

Foam::scalar d0
inline

Return const access to initial droplet diameter.

Definition at line 183 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ mass0() [1/2]

Foam::scalar mass0
inline

Return const access to initial mass [kg].

Definition at line 190 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ position0() [1/2]

const Foam::vector & position0
inline

Return const access to initial droplet position.

Definition at line 197 of file SprayParcelI.H.

◆ sigma() [1/2]

Foam::scalar sigma
inline

Return const access to the liquid surface tension.

Definition at line 204 of file SprayParcelI.H.

◆ mu() [1/2]

Foam::scalar mu
inline

Return const access to the liquid dynamic viscosity.

Definition at line 211 of file SprayParcelI.H.

◆ liquidCore() [1/2]

Foam::scalar liquidCore
inline

Return const access to liquid core.

Definition at line 218 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ KHindex() [1/2]

Foam::scalar KHindex
inline

Return const access to Kelvin-Helmholtz breakup index.

Definition at line 225 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ y() [1/2]

Foam::scalar y
inline

Return const access to spherical deviation.

Definition at line 232 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ yDot() [1/2]

Foam::scalar yDot
inline

Return const access to rate of change of spherical deviation.

Definition at line 239 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ tc() [1/2]

Foam::scalar tc
inline

Return const access to atomisation characteristic time.

Definition at line 246 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ ms() [1/2]

Foam::scalar ms
inline

Return const access to stripped parcel mass.

Definition at line 253 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ injector() [1/2]

Foam::label injector
inline

Return const access to injector id.

Definition at line 260 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ tMom() [1/2]

Foam::scalar tMom
inline

Return const access to momentum relaxation time.

Definition at line 267 of file SprayParcelI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup().

Here is the caller graph for this function:

◆ d0() [2/2]

Foam::scalar & d0
inline

Return access to initial droplet diameter.

Definition at line 274 of file SprayParcelI.H.

◆ mass0() [2/2]

Foam::scalar & mass0
inline

Return access to initial mass [kg].

Definition at line 281 of file SprayParcelI.H.

◆ position0() [2/2]

Foam::vector & position0
inline

Return access to initial droplet position.

Definition at line 288 of file SprayParcelI.H.

◆ sigma() [2/2]

Foam::scalar & sigma
inline

Return access to the liquid surface tension.

Definition at line 295 of file SprayParcelI.H.

◆ mu() [2/2]

Foam::scalar & mu
inline

Return access to the liquid dynamic viscosity.

Definition at line 302 of file SprayParcelI.H.

◆ liquidCore() [2/2]

Foam::scalar & liquidCore
inline

Return access to liquid core.

Definition at line 309 of file SprayParcelI.H.

◆ KHindex() [2/2]

Foam::scalar & KHindex
inline

Return access to Kelvin-Helmholtz breakup index.

Definition at line 316 of file SprayParcelI.H.

◆ y() [2/2]

Foam::scalar & y
inline

Return access to spherical deviation.

Definition at line 323 of file SprayParcelI.H.

◆ yDot() [2/2]

Foam::scalar & yDot
inline

Return access to rate of change of spherical deviation.

Definition at line 330 of file SprayParcelI.H.

◆ tc() [2/2]

Foam::scalar & tc
inline

Return access to atomisation characteristic time.

Definition at line 337 of file SprayParcelI.H.

◆ ms() [2/2]

Foam::scalar & ms
inline

Return access to stripped parcel mass.

Definition at line 344 of file SprayParcelI.H.

◆ injector() [2/2]

Foam::label & injector
inline

Return access to injector id.

Definition at line 351 of file SprayParcelI.H.

◆ tMom() [2/2]

Foam::scalar & tMom
inline

Return access to momentum relaxation time.

Definition at line 358 of file SprayParcelI.H.

◆ setCellValues()

void setCellValues ( TrackCloudType &  cloud,
trackingData td 
)

Set cell values.

Definition at line 35 of file SprayParcel.C.

◆ calcAtomisation()

void calcAtomisation ( TrackCloudType &  cloud,
trackingData td,
const scalar  dt 
)

◆ calcBreakup()

◆ cellValueSourceCorrection()

void cellValueSourceCorrection ( TrackCloudType &  cloud,
trackingData td,
const scalar  dt 
)

Correct cell values using latest transfer information.

Definition at line 47 of file SprayParcel.C.

◆ correctSurfaceValues()

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.

◆ calc()

void calc ( TrackCloudType &  cloud,
trackingData td,
const scalar  dt 
)

◆ chi() [1/2]

scalar chi ( TrackCloudType &  cloud,
trackingData td,
const scalarField X 
) const

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

atomisation model

◆ solveTABEq()

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().

Here is the call graph for this function:

◆ readFields() [1/2]

void readFields ( CloudType c,
const CompositionType &  compModel 
)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readFields() [2/2]

void readFields ( CloudType c)
static

Read - no composition.

Definition at line 97 of file SprayParcelIO.C.

References Foam::constant::universal::c, and Foam::readFields().

Here is the call graph for this function:

◆ writeFields() [1/2]

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

◆ writeFields() [2/2]

void writeFields ( const CloudType c)
static

Write - composition supplied.

Definition at line 214 of file SprayParcelIO.C.

References Foam::constant::universal::c.

◆ chi() [2/2]

Friends And Related Function Documentation

◆ operator

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

Member Data Documentation

◆ d0_

scalar d0_
protected

Initial droplet diameter [m].

Definition at line 149 of file SprayParcel.H.

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

◆ mass0_

scalar mass0_
protected

Initial mass [kg].

Definition at line 152 of file SprayParcel.H.

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

◆ position0_

vector position0_
protected

Injection position.

Definition at line 155 of file SprayParcel.H.

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

◆ sigma_

scalar sigma_
protected

Liquid surface tension [N/m].

Definition at line 158 of file SprayParcel.H.

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

◆ mu_

scalar mu_
protected

Liquid dynamic viscosity [Pa.s].

Definition at line 161 of file SprayParcel.H.

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

◆ liquidCore_

scalar liquidCore_
protected

Part of liquid core ( >0.5=liquid, <0.5=droplet )

Definition at line 164 of file SprayParcel.H.

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

◆ KHindex_

scalar KHindex_
protected

Index for KH Breakup.

Definition at line 167 of file SprayParcel.H.

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

◆ y_

scalar y_
protected

Spherical deviation.

Definition at line 170 of file SprayParcel.H.

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

◆ yDot_

scalar yDot_
protected

Rate of change of spherical deviation.

Definition at line 173 of file SprayParcel.H.

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

◆ tc_

scalar tc_
protected

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

Definition at line 176 of file SprayParcel.H.

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

◆ ms_

scalar ms_
protected

Stripped parcel mass due to breakup.

Definition at line 179 of file SprayParcel.H.

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

◆ injector_

label injector_
protected

Injector id.

Definition at line 182 of file SprayParcel.H.

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

◆ tMom_

scalar tMom_
protected

Momentum relaxation time (needed for calculating parcel acc.)

Definition at line 185 of file SprayParcel.H.

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


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