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

DsmcParcel< ParcelType > Class Template Reference

DSMC parcel class. More...

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

List of all members.


Classes

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

Public Member Functions

 TypeName ("DsmcParcel")
 Runtime type information.
 DsmcParcel (DsmcCloud< ParcelType > &owner, const vector &position, const vector &U, const scalar Ei, const label celli, const label typeId)
 Construct from components.
 DsmcParcel (const Cloud< ParcelType > &c, Istream &is, bool readFields=true)
 Construct from Istream.
autoPtr< ParcelType > clone () const
 Construct and return a clone.
label typeId () const
 Return type id.
const vector & U () const
 Return const access to velocity.
scalar Ei () const
 Return const access to internal energy.
vector & U ()
 Return access to velocity.
scalar & Ei ()
 Return access to internal energy.
template<class TrackData >
bool move (TrackData &td)
 Move the parcel.
template<class TrackData >
bool hitPatch (const polyPatch &, TrackData &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 (DsmcCloud< ParcelType > &c)
static void writeFields (const DsmcCloud< ParcelType > &c)

Protected Attributes

vector U_
 Velocity of Parcel [m/s].
scalar Ei_
 Internal energy of the Parcel, covering all non-translational.
label typeId_
 Parcel type id.

Friends

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

Detailed Description

template<class ParcelType>
class Foam::DsmcParcel< ParcelType >

DSMC parcel class.

Source files

Definition at line 65 of file DsmcParcel.H.


Constructor & Destructor Documentation

DsmcParcel ( DsmcCloud< ParcelType > &  owner,
const vector &  position,
const vector &  U,
const scalar  Ei,
const label  celli,
const label  typeId 
) [inline]

Construct from components.

Definition at line 57 of file DsmcParcelI.H.

DsmcParcel ( const Cloud< ParcelType > &  c,
Istream &  is,
bool  readFields = true 
) [inline]


Member Function Documentation

TypeName ( "DsmcParcel< ParcelType >"   ) 

Runtime type information.

autoPtr<ParcelType> clone (  )  const [inline]

Construct and return a clone.

Reimplemented from Particle< ParcelType >.

Reimplemented in dsmcParcel.

Definition at line 201 of file DsmcParcel.H.

Foam::label typeId (  )  const [inline]

Return type id.

Definition at line 129 of file DsmcParcelI.H.

References Particle< ParcelType >::cloud_.

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

Return const access to velocity.

Definition at line 136 of file DsmcParcelI.H.

References DsmcParcel< ParcelType >::typeId_.

Foam::scalar Ei (  )  const [inline]

Return const access to internal energy.

Definition at line 143 of file DsmcParcelI.H.

References DsmcParcel< ParcelType >::U_.

Foam::vector & U (  )  [inline]

Return access to velocity.

Definition at line 150 of file DsmcParcelI.H.

References DsmcParcel< ParcelType >::Ei_.

Foam::scalar & Ei (  )  [inline]

Return access to internal energy.

Definition at line 157 of file DsmcParcelI.H.

References DsmcParcel< ParcelType >::U_.

bool move ( TrackData &  td  )  [inline]

Move the parcel.

Definition at line 26 of file DsmcParcel.C.

References polyMesh::boundaryMesh(), mesh, Foam::min(), p, and DsmcParcel< ParcelType >::U_.

Here is the call graph for this function:

bool hitPatch ( const polyPatch &  ,
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 69 of file DsmcParcel.C.

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

Overridable function to handle the particle hitting a.

processorPatch

Reimplemented from Particle< ParcelType >.

Definition at line 82 of file DsmcParcel.C.

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

Overridable function to handle the particle hitting a.

processorPatch without trackData

Definition at line 93 of file DsmcParcel.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 103 of file DsmcParcel.C.

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

Overridable function to handle the particle hitting a wallPatch.

without trackData

Definition at line 153 of file DsmcParcel.C.

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

Overridable function to handle the particle hitting a polyPatch.

Reimplemented from Particle< ParcelType >.

Definition at line 163 of file DsmcParcel.C.

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

Overridable function to handle the particle hitting a polyPatch without trackData

Definition at line 174 of file DsmcParcel.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 183 of file DsmcParcel.C.

Referenced by DsmcParcel< ParcelType >::transformProperties().

Here is the caller graph for this function:

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 194 of file DsmcParcel.C.

References Foam::T(), Foam::transform(), and DsmcParcel< ParcelType >::transformProperties().

Here is the call graph for this function:

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

Definition at line 69 of file DsmcParcelIO.C.

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

Definition at line 102 of file DsmcParcelIO.C.


Friends And Related Function Documentation

friend class Cloud< ParcelType > [friend]

Definition at line 176 of file DsmcParcel.H.

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


Member Data Documentation

vector U_ [protected]

Velocity of Parcel [m/s].

Definition at line 159 of file DsmcParcel.H.

Referenced by DsmcParcel< ParcelType >::DsmcParcel(), DsmcParcel< ParcelType >::Ei(), and DsmcParcel< ParcelType >::move().

scalar Ei_ [protected]

Internal energy of the Parcel, covering all non-translational.

degrees of freedom [J]

Definition at line 165 of file DsmcParcel.H.

Referenced by DsmcParcel< ParcelType >::DsmcParcel(), and DsmcParcel< ParcelType >::U().

label typeId_ [protected]

Parcel type id.

Definition at line 168 of file DsmcParcel.H.

Referenced by DsmcParcel< ParcelType >::DsmcParcel(), and DsmcParcel< ParcelType >::U().


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