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

KinematicLookupTableInjection< CloudType > Class Template Reference

Particle injection sources read from look-up table. Each row corresponds to an injection site. More...

Inheritance diagram for KinematicLookupTableInjection< CloudType >:
Collaboration diagram for KinematicLookupTableInjection< CloudType >:

List of all members.


Public Member Functions

 TypeName ("KinematicLookupTableInjection")
 Runtime type information.
 KinematicLookupTableInjection (const dictionary &dict, CloudType &owner)
 Construct from dictionary.
virtual ~KinematicLookupTableInjection ()
 Destructor.
bool active () const
 Flag to indicate whether model activates injection model.
scalar timeEnd () const
 Return the end-of-injection time.
virtual void setPositionAndCell (const label parcelI, const label nParcels, const scalar time, vector &position, label &cellOwner)
 Set the injection position and owner cell.
virtual void setProperties (const label parcelI, const label nParcels, const scalar time, typename CloudType::parcelType &parcel)
 Set the parcel properties.
virtual bool fullyDescribed () const
 Flag to identify whether model fully describes the parcel.
virtual bool validInjection (const label parcelI)
 Return flag to identify whether or not injection of parcelI is.

Protected Member Functions

label parcelsToInject (const scalar time0, const scalar time1) const
 Number of parcels to introduce over the time step relative to SOI.
scalar volumeToInject (const scalar time0, const scalar time1) const
 Volume of parcels to introduce over the time step relative to SOI.

Detailed Description

template<class CloudType>
class Foam::KinematicLookupTableInjection< CloudType >

Particle injection sources read from look-up table. Each row corresponds to an injection site.

( (x y z u v w d rho mDot) );

where: x, y, z = global cartesian co-ordinates [m] u, v, w = global cartesian velocity components [m/s] d = diameter [m] rho = density [kg/m3] mDot = mass flow rate [kg/m3]

Source files

Definition at line 58 of file KinematicLookupTableInjection.H.


Constructor & Destructor Documentation

KinematicLookupTableInjection ( const dictionary &  dict,
CloudType &  owner 
) [inline]

Construct from dictionary.

Definition at line 70 of file KinematicLookupTableInjection.C.

~KinematicLookupTableInjection (  )  [inline, virtual]

Destructor.

Definition at line 156 of file KinematicLookupTableInjection.C.


Member Function Documentation

Foam::label parcelsToInject ( const scalar  time0,
const scalar  time1 
) const [inline, protected, virtual]

Number of parcels to introduce over the time step relative to SOI.

Implements InjectionModel< CloudType >.

Definition at line 30 of file KinematicLookupTableInjection.C.

References List< T >::size().

Here is the call graph for this function:

Foam::scalar volumeToInject ( const scalar  time0,
const scalar  time1 
) const [inline, protected, virtual]

Volume of parcels to introduce over the time step relative to SOI.

Implements InjectionModel< CloudType >.

Definition at line 48 of file KinematicLookupTableInjection.C.

TypeName ( "KinematicLookupTableInjection< CloudType >"   ) 

Runtime type information.

bool active (  )  const [inline, virtual]

Flag to indicate whether model activates injection model.

Implements InjectionModel< CloudType >.

Definition at line 163 of file KinematicLookupTableInjection.C.

Foam::scalar timeEnd (  )  const [inline, virtual]

Return the end-of-injection time.

Implements InjectionModel< CloudType >.

Definition at line 170 of file KinematicLookupTableInjection.C.

void setPositionAndCell ( const label  parcelI,
const label  nParcels,
const scalar  time,
vector &  position,
label &  cellOwner 
) [inline, virtual]

Set the injection position and owner cell.

Implements InjectionModel< CloudType >.

Definition at line 178 of file KinematicLookupTableInjection.C.

References InjectionModel< CloudType >::SOI_.

void setProperties ( const label  parcelI,
const label  nParcels,
const scalar  time,
typename CloudType::parcelType &  parcel 
) [inline, virtual]

Set the parcel properties.

Implements InjectionModel< CloudType >.

Definition at line 195 of file KinematicLookupTableInjection.C.

bool fullyDescribed (  )  const [inline, virtual]

Flag to identify whether model fully describes the parcel.

Implements InjectionModel< CloudType >.

Definition at line 216 of file KinematicLookupTableInjection.C.

bool validInjection ( const label  parcelI  )  [inline, virtual]

Return flag to identify whether or not injection of parcelI is.

permitted

Implements InjectionModel< CloudType >.

Definition at line 224 of file KinematicLookupTableInjection.C.


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