OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

KinematicParcel< ParcelType > Class Template Reference

Kinematic parcel class with one/two-way coupling with the continuous phase. More...

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

List of all members.


Classes

class  constantProperties
 Class to hold kinematic particle constant properties. More...
class  trackData
 Class used to pass kinematic tracking data to the trackToFace function. More...

Public Member Functions

 TypeName ("KinematicParcel")
 Runtime type information.
 KinematicParcel (KinematicCloud< ParcelType > &owner, const vector &position, const label cellI)
 Construct from owner, position, and cloud owner.
 KinematicParcel (KinematicCloud< ParcelType > &owner, const vector &position, const label cellI, const label typeId, const scalar nParticle0, const scalar d0, const vector &U0, const constantProperties &constProps)
 Construct from components.
 KinematicParcel (const Cloud< ParcelType > &c, Istream &is, bool readFields=true)
 Construct from Istream.
 KinematicParcel (const KinematicParcel &p)
 Construct as a copy.
autoPtr< KinematicParcel > clone () const
 Construct and return a clone.
label typeId () const
 Return const access to type id.
scalar nParticle () const
 Return const access to number of particles.
scalar d () const
 Return const access to diameter.
const vector & U () const
 Return const access to velocity.
scalar rho () const
 Return const access to density.
scalar tTurb () const
 Return const access to time spent in turbulent eddy.
const vector & UTurb () const
 Return const access to turbulent velocity fluctuation.
label typeId ()
 Return access to type id.
scalar & nParticle ()
 Return access to number of particles.
scalar & d ()
 Return access to diameter.
vector & U ()
 Return access to velocity.
scalar & rho ()
 Return access to density.
scalar & tTurb ()
 Return access to time spent in turbulent eddy.
vector & UTurb ()
 Return access to turbulent velocity fluctuation.
scalar wallImpactDistance (const vector &n) const
 The nearest distance to a wall that.
label faceInterpolation () const
 Return the index of the face to be used in the interpolation.
scalar massCell (const label cellI) const
 Cell owner mass.
scalar mass () const
 Particle mass.
scalar volume () const
 Particle volume.
scalar volume (const scalar d) const
 Particle volume for a given diameter.
scalar areaP () const
 Particle projected area.
scalar areaP (const scalar d) const
 Projected area for given diameter.
scalar areaS () const
 Particle surface area.
scalar areaS (const scalar d) const
 Surface area for given diameter.
template<class TrackData >
void setCellValues (TrackData &td, const scalar dt, const label cellI)
 Set cell values.
template<class TrackData >
void cellValueSourceCorrection (TrackData &td, const scalar dt, const label cellI)
 Correct cell values using latest transfer information.
template<class TrackData >
void calc (TrackData &td, const scalar dt, const label cellI)
 Update parcel properties over the time interval.
template<class TrackData >
bool move (TrackData &td)
 Move the parcel.
template<class TrackData >
bool hitPatch (const polyPatch &p, TrackData &td, const label patchI)
 Overridable function to handle the particle hitting a patch.
bool hitPatch (const polyPatch &p, int &td, const label patchI)
 Overridable function to handle the particle hitting a patch.
template<class TrackData >
void hitProcessorPatch (const processorPolyPatch &, TrackData &td)
 Overridable function to handle the particle hitting a.
void hitProcessorPatch (const processorPolyPatch &, int &)
 Overridable function to handle the particle hitting a.
template<class TrackData >
void hitWallPatch (const wallPolyPatch &, TrackData &td)
 Overridable function to handle the particle hitting a wallPatch.
void hitWallPatch (const wallPolyPatch &, int &)
 Overridable function to handle the particle hitting a wallPatch.
template<class TrackData >
void hitPatch (const polyPatch &, TrackData &td)
 Overridable function to handle the particle hitting a polyPatch.
void hitPatch (const polyPatch &, int &)
void transformProperties (const tensor &T)
 Transform the physical properties of the particle.
void transformProperties (const vector &separation)
 Transform the physical properties of the particle.

Static Public Member Functions

static void readFields (KinematicCloud< ParcelType > &c)
 Read.
static void writeFields (const KinematicCloud< ParcelType > &c)
 Write.

Static Public Attributes

static string propHeader
 String representation of properties.

Protected Member Functions

template<class TrackData >
const vector calcVelocity (TrackData &td, const scalar dt, const label cellI, const scalar d, const vector &U, const scalar rho, const scalar mass, const vector &Su, vector &dUTrans) const
 Calculate new particle velocity.

Protected Attributes

label typeId_
 Parcel type id.
scalar nParticle_
 Number of particles in Parcel.
scalar d_
 Diameter [m].
vector U_
 Velocity of Parcel [m/s].
scalar rho_
 Density [kg/m3].
scalar tTurb_
 Time spent in turbulent eddy [s].
vector UTurb_
 Turbulent velocity fluctuation [m/s].
scalar rhoc_
 Density [kg/m3].
vector Uc_
 Velocity [m/s].
scalar muc_
 Viscosity [Pa.s].

Friends

class Cloud< ParcelType >
Ostream & operator (Ostream &, const KinematicParcel< ParcelType > &)

Detailed Description

template<class ParcelType>
class Foam::KinematicParcel< ParcelType >

Kinematic parcel class with one/two-way coupling with the continuous phase.

Sub-models include:

  • drag
  • turbulent dispersion
  • wall interactions

Source files

Definition at line 72 of file KinematicParcel.H.


Constructor & Destructor Documentation

KinematicParcel ( KinematicCloud< ParcelType > &  owner,
const vector &  position,
const label  cellI 
) [inline]

Construct from owner, position, and cloud owner.

Other properties initialised as null

Definition at line 59 of file KinematicParcelI.H.

KinematicParcel ( KinematicCloud< ParcelType > &  owner,
const vector &  position,
const label  cellI,
const label  typeId,
const scalar  nParticle0,
const scalar  d0,
const vector &  U0,
const constantProperties &  constProps 
) [inline]

Construct from components.

Definition at line 81 of file KinematicParcelI.H.

KinematicParcel ( const KinematicParcel< ParcelType > &  p  ) 

Construct as a copy.


Member Function Documentation

const Foam::vector calcVelocity ( TrackData &  td,
const scalar  dt,
const label  cellI,
const scalar  d,
const vector &  U,
const scalar  rho,
const scalar  mass,
const vector &  Su,
vector &  dUTrans 
) const [inline, protected]

Calculate new particle velocity.

Definition at line 129 of file KinematicParcel.C.

TypeName ( "KinematicParcel< ParcelType >"   ) 

Runtime type information.

Foam::label typeId (  )  const [inline]

Return const access to type id.

Definition at line 193 of file KinematicParcelI.H.

Foam::scalar nParticle (  )  const [inline]

Return const access to number of particles.

Definition at line 200 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::typeId_.

Foam::scalar d (  )  const [inline]

Return const access to diameter.

Definition at line 207 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::nParticle_.

const Foam::vector & U (  )  const [inline]

Return const access to velocity.

Definition at line 214 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::d_.

Foam::scalar rho (  )  const [inline]

Return const access to density.

Definition at line 221 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::U_.

Foam::scalar tTurb (  )  const [inline]

Return const access to time spent in turbulent eddy.

Definition at line 228 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::rho_.

const Foam::vector & UTurb (  )  const [inline]

Return const access to turbulent velocity fluctuation.

Definition at line 235 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::tTurb_.

Foam::label typeId (  )  [inline]

Return access to type id.

Definition at line 242 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::UTurb_.

Foam::scalar & nParticle (  )  [inline]

Return access to number of particles.

Definition at line 249 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::typeId_.

Foam::scalar & d (  )  [inline]

Return access to diameter.

Definition at line 256 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::nParticle_.

Foam::vector & U (  )  [inline]

Return access to velocity.

Definition at line 263 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::d_.

Foam::scalar & rho (  )  [inline]

Return access to density.

Definition at line 270 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::U_.

Foam::scalar & tTurb (  )  [inline]

Return access to time spent in turbulent eddy.

Definition at line 277 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::rho_.

Foam::vector & UTurb (  )  [inline]

Return access to turbulent velocity fluctuation.

Definition at line 284 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::tTurb_.

Foam::scalar wallImpactDistance ( const vector &  n  )  const [inline]

The nearest distance to a wall that.

the particle can be in the n direction

Reimplemented from Particle< ParcelType >.

Definition at line 292 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::UTurb_.

Foam::label faceInterpolation (  )  const [inline]

Return the index of the face to be used in the interpolation.

routine

Reimplemented from Particle< ParcelType >.

Definition at line 301 of file KinematicParcelI.H.

Foam::scalar massCell ( const label  cellI  )  const [inline]

Cell owner mass.

Definition at line 317 of file KinematicParcelI.H.

Foam::scalar mass (  )  const [inline]

Particle mass.

Definition at line 326 of file KinematicParcelI.H.

Foam::scalar volume (  )  const [inline]

Particle volume.

Definition at line 333 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::rho_.

Referenced by KinematicParcel< ParcelType >::volume().

Here is the caller graph for this function:

Foam::scalar volume ( const scalar  d  )  const [inline]

Particle volume for a given diameter.

Definition at line 341 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::d_, and KinematicParcel< ParcelType >::volume().

Here is the call graph for this function:

Foam::scalar areaP (  )  const [inline]

Particle projected area.

Definition at line 348 of file KinematicParcelI.H.

References Foam::mathematicalConstant::pi, and Foam::pow3().

Referenced by KinematicParcel< ParcelType >::areaP().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar areaP ( const scalar  d  )  const [inline]

Projected area for given diameter.

Definition at line 356 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::areaP(), and KinematicParcel< ParcelType >::d_.

Here is the call graph for this function:

Foam::scalar areaS (  )  const [inline]

Particle surface area.

Definition at line 363 of file KinematicParcelI.H.

Referenced by KinematicParcel< ParcelType >::areaS().

Here is the caller graph for this function:

Foam::scalar areaS ( const scalar  d  )  const [inline]

Surface area for given diameter.

Definition at line 371 of file KinematicParcelI.H.

References KinematicParcel< ParcelType >::areaS(), and KinematicParcel< ParcelType >::d_.

Here is the call graph for this function:

bool move ( TrackData &  td  )  [inline]

Move the parcel.

Definition at line 203 of file KinematicParcel.C.

bool hitPatch ( const polyPatch &  p,
TrackData &  td,
const label  patchI 
) [inline]

Overridable function to handle the particle hitting a patch.

Executed before other patch-hitting functions

Reimplemented from Particle< ParcelType >.

Definition at line 264 of file KinematicParcel.C.

bool hitPatch ( const polyPatch &  p,
int &  td,
const label  patchI 
) [inline]

Overridable function to handle the particle hitting a patch.

Executed before other patch-hitting functions without trackData

Definition at line 279 of file KinematicParcel.C.

void hitProcessorPatch ( const processorPolyPatch &  ,
TrackData &  td 
) [inline]

Overridable function to handle the particle hitting a.

processorPatch

Reimplemented from Particle< ParcelType >.

Definition at line 292 of file KinematicParcel.C.

void hitProcessorPatch ( const processorPolyPatch &  ,
int &   
) [inline]

Overridable function to handle the particle hitting a.

processorPatch without trackData

Definition at line 303 of file KinematicParcel.C.

void hitWallPatch ( const wallPolyPatch &  wpp,
TrackData &  td 
) [inline]

Overridable function to handle the particle hitting a wallPatch.

Reimplemented from Particle< ParcelType >.

Definition at line 313 of file KinematicParcel.C.

void hitWallPatch ( const wallPolyPatch &  ,
int &   
) [inline]

Overridable function to handle the particle hitting a wallPatch.

without trackData

Definition at line 324 of file KinematicParcel.C.

void hitPatch ( const polyPatch &  ,
TrackData &  td 
) [inline]

Overridable function to handle the particle hitting a polyPatch.

Reimplemented from Particle< ParcelType >.

Definition at line 334 of file KinematicParcel.C.

void hitPatch ( const polyPatch &  ,
int &   
) [inline]

Overridable function to handle the particle hitting a polyPatch without trackData

Definition at line 344 of file KinematicParcel.C.

void transformProperties ( const tensor &  T  )  [inline, virtual]

Transform the physical properties of the particle.

according to the given transformation tensor

Reimplemented from Particle< ParcelType >.

Definition at line 349 of file KinematicParcel.C.

void transformProperties ( const vector &  separation  )  [inline, virtual]

Transform the physical properties of the particle.

according to the given separation vector

Reimplemented from Particle< ParcelType >.

Definition at line 358 of file KinematicParcel.C.

References Foam::transform().

Here is the call graph for this function:

void readFields ( KinematicCloud< ParcelType > &  c  )  [inline, static]

Read.

Definition at line 98 of file KinematicParcelIO.C.

void writeFields ( const KinematicCloud< ParcelType > &  c  )  [inline, static]

Write.

Definition at line 148 of file KinematicParcelIO.C.


Friends And Related Function Documentation

Ostream& operator ( Ostream &  ,
const KinematicParcel< ParcelType > &   
) [friend]


Member Data Documentation

label typeId_ [protected]

scalar nParticle_ [protected]

Number of particles in Parcel.

Definition at line 203 of file KinematicParcel.H.

Referenced by KinematicParcel< ParcelType >::d(), and KinematicParcel< ParcelType >::KinematicParcel().

vector U_ [protected]

Velocity of Parcel [m/s].

Definition at line 209 of file KinematicParcel.H.

Referenced by KinematicParcel< ParcelType >::KinematicParcel(), and KinematicParcel< ParcelType >::rho().

scalar tTurb_ [protected]

Time spent in turbulent eddy [s].

Definition at line 215 of file KinematicParcel.H.

Referenced by KinematicParcel< ParcelType >::KinematicParcel(), and KinematicParcel< ParcelType >::UTurb().

scalar rhoc_ [protected]

Density [kg/m3].

Definition at line 224 of file KinematicParcel.H.

vector Uc_ [protected]

Velocity [m/s].

Definition at line 227 of file KinematicParcel.H.

scalar muc_ [protected]

Viscosity [Pa.s].

Definition at line 230 of file KinematicParcel.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd