FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

PatchInjection< CloudType > Class Template Reference

Patch injection. More...

#include <lagrangianIntermediate/PatchInjection.H>


Detailed Description

template<class CloudType>
class Foam::PatchInjection< CloudType >

Patch injection.

- User specifies

  • Total mass to inject
  • Name of patch
  • Injection duration
  • Initial parcel velocity
  • Injection volume flow rate

Parcel diameters obtained by PDF model

  • Parcels injected at cell centres adjacent to patch
Source files

Definition at line 64 of file PatchInjection.H.

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

List of all members.

Public Member Functions

 TypeName ("PatchInjection")
 Runtime type information.
 PatchInjection (const dictionary &dict, CloudType &owner)
 Construct from dictionary.
virtual  ~PatchInjection ()
 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.

Constructor & Destructor Documentation

PatchInjection ( const dictionary &   dict,
CloudType &   owner  
)

Construct from dictionary.

Definition at line 72 of file PatchInjection.C.

References Foam::exit(), polyPatch::faceCells(), Foam::FatalError, FatalErrorIn, Foam::nl, reduce(), and UList< T >::size().

~PatchInjection (  ) [virtual]

Destructor.

Definition at line 138 of file PatchInjection.C.


Member Function Documentation

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

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

Implements InjectionModel< CloudType >.

Definition at line 34 of file PatchInjection.C.

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

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

Implements InjectionModel< CloudType >.

Definition at line 52 of file PatchInjection.C.

TypeName ( "PatchInjection< CloudType >"    )

Runtime type information.

bool active (  ) const [virtual]

Flag to indicate whether model activates injection model.

Implements InjectionModel< CloudType >.

Definition at line 145 of file PatchInjection.C.

Foam::scalar timeEnd (  ) const [virtual]

Return the end-of-injection time.

Implements InjectionModel< CloudType >.

Definition at line 152 of file PatchInjection.C.

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

Set the injection position and owner cell.

Implements InjectionModel< CloudType >.

Definition at line 160 of file PatchInjection.C.

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

Set the parcel properties.

Implements InjectionModel< CloudType >.

Definition at line 186 of file PatchInjection.C.

bool fullyDescribed (  ) const [virtual]

Flag to identify whether model fully describes the parcel.

Implements InjectionModel< CloudType >.

Definition at line 202 of file PatchInjection.C.

bool validInjection ( const label   parcelI  ) [virtual]

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

permitted

Implements InjectionModel< CloudType >.

Definition at line 209 of file PatchInjection.C.


The documentation for this class was generated from the following files:
  • src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.H
  • src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.C