Data Structures | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Attributes | Friends
DSMCParcel Class Reference

DSMC parcel class. More...

Collaboration diagram for DSMCParcel:
Collaboration graph
[legend]

Data Structures

class  constantProperties
 Class to hold DSMC particle constant properties. More...
 
class  iNew
 Factory class to read-construct particles used for. More...
 
class  trackingData
 Class used to pass kinematic tracking data to the trackToFace function. More...
 

Public Member Functions

 TypeName ("DSMCParcel")
 Runtime type information. More...
 
 DSMCParcel (const polyMesh &mesh, const vector &position, const vector &U, const scalar Ei, const label cellI, const label tetFaceI, const label tetPtI, const label typeId)
 Construct from components. More...
 
 DSMCParcel (const polyMesh &mesh, Istream &is, bool readFields=true)
 Construct from Istream. More...
 
virtual autoPtr< particleclone () const
 Construct and return a clone. More...
 
label typeId () const
 Return type id. More...
 
const vectorU () const
 Return const access to velocity. More...
 
scalar Ei () const
 Return const access to internal energy. More...
 
vectorU ()
 Return access to velocity. More...
 
scalar & Ei ()
 Return access to internal energy. More...
 
template<class TrackData >
bool move (TrackData &td, const scalar trackTime)
 Move the parcel. More...
 
template<class TrackData >
bool hitPatch (const polyPatch &, TrackData &td, const label patchI, const scalar trackFraction, const tetIndices &tetIs)
 Overridable function to handle the particle hitting a patch. More...
 
template<class TrackData >
void hitProcessorPatch (const processorPolyPatch &, TrackData &td)
 Overridable function to handle the particle hitting a. More...
 
template<class TrackData >
void hitWallPatch (const wallPolyPatch &, TrackData &td, const tetIndices &)
 Overridable function to handle the particle hitting a wallPatch. More...
 
template<class TrackData >
void hitPatch (const polyPatch &, TrackData &td)
 Overridable function to handle the particle hitting a polyPatch. More...
 
virtual void transformProperties (const tensor &T)
 Transform the physical properties of the particle. More...
 
virtual void transformProperties (const vector &separation)
 Transform the physical properties of the particle. More...
 

Static Public Member Functions

static void readFields (Cloud< DSMCParcel< ParcelType > > &c)
 
static void writeFields (const Cloud< DSMCParcel< ParcelType > > &c)
 

Protected Attributes

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

Static Private Attributes

static const std::size_t sizeofFields_
 Size in bytes of the fields. More...
 

Friends

class Cloud< ParcelType >
 
Ostreamoperator (Ostream &, const DSMCParcel< ParcelType > &)
 

Detailed Description

DSMC parcel class.

Source files

Definition at line 51 of file DSMCParcel.H.

Constructor & Destructor Documentation

◆ DSMCParcel() [1/2]

DSMCParcel ( const polyMesh mesh,
const vector position,
const vector U,
const scalar  Ei,
const label  cellI,
const label  tetFaceI,
const label  tetPtI,
const label  typeId 
)
inline

Construct from components.

Definition at line 56 of file DSMCParcelI.H.

◆ DSMCParcel() [2/2]

DSMCParcel ( const polyMesh mesh,
Istream is,
bool  readFields = true 
)

Construct from Istream.

Member Function Documentation

◆ TypeName()

TypeName ( "DSMCParcel"  )

Runtime type information.

◆ clone()

virtual autoPtr<particle> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 198 of file DSMCParcel.H.

◆ typeId()

Foam::label typeId ( ) const
inline

Return type id.

Definition at line 119 of file DSMCParcelI.H.

References DSMCParcel::typeId_.

◆ U() [1/2]

const Foam::vector & U ( ) const
inline

Return const access to velocity.

Definition at line 126 of file DSMCParcelI.H.

References DSMCParcel::U_.

◆ Ei() [1/2]

Foam::scalar Ei ( ) const
inline

Return const access to internal energy.

Definition at line 133 of file DSMCParcelI.H.

References DSMCParcel::Ei_.

◆ U() [2/2]

Foam::vector & U ( )
inline

Return access to velocity.

Definition at line 140 of file DSMCParcelI.H.

References DSMCParcel::U_.

◆ Ei() [2/2]

Foam::scalar & Ei ( )
inline

Return access to internal energy.

Definition at line 147 of file DSMCParcelI.H.

References DSMCParcel::Ei_.

◆ move()

bool move ( TrackData &  td,
const scalar  trackTime 
)

Move the parcel.

Definition at line 33 of file DSMCParcel.C.

References Foam::meshTools::constrainDirection(), Foam::meshTools::constrainToMeshCentre(), mesh, Foam::min(), and p.

Here is the call graph for this function:

◆ hitPatch() [1/2]

bool hitPatch ( const polyPatch ,
TrackData &  td,
const label  patchI,
const scalar  trackFraction,
const tetIndices tetIs 
)

Overridable function to handle the particle hitting a patch.

Executed before other patch-hitting functions

Definition at line 89 of file DSMCParcel.C.

◆ hitProcessorPatch()

void hitProcessorPatch ( const processorPolyPatch ,
TrackData &  td 
)

Overridable function to handle the particle hitting a.

processorPatch

Definition at line 104 of file DSMCParcel.C.

◆ hitWallPatch()

void hitWallPatch ( const wallPolyPatch wpp,
TrackData &  td,
const tetIndices tetIs 
)

Overridable function to handle the particle hitting a wallPatch.

Definition at line 116 of file DSMCParcel.C.

References polyPatch::faceAreas(), patchIdentifier::index(), DSMCParcel::constantProperties::internalDegreesOfFreedom(), Foam::mag(), DSMCParcel::constantProperties::mass(), Foam::max(), nw, and polyPatch::whichFace().

Here is the call graph for this function:

◆ hitPatch() [2/2]

void hitPatch ( const polyPatch ,
TrackData &  td 
)

Overridable function to handle the particle hitting a polyPatch.

Definition at line 208 of file DSMCParcel.C.

◆ transformProperties() [1/2]

void transformProperties ( const tensor T)
virtual

Transform the physical properties of the particle.

according to the given transformation tensor

Definition at line 215 of file DSMCParcel.C.

References T, and Foam::transform().

Here is the call graph for this function:

◆ transformProperties() [2/2]

void transformProperties ( const vector separation)
virtual

Transform the physical properties of the particle.

according to the given separation vector

Definition at line 224 of file DSMCParcel.C.

◆ readFields()

void readFields ( Cloud< DSMCParcel< ParcelType > > &  c)
static

Definition at line 79 of file DSMCParcelIO.C.

References Foam::constant::universal::c, forAllIter, IOobject::MUST_READ, p, readFields(), and U.

Here is the call graph for this function:

◆ writeFields()

void writeFields ( const Cloud< DSMCParcel< ParcelType > > &  c)
static

Definition at line 112 of file DSMCParcelIO.C.

References Foam::constant::universal::c, forAllConstIter(), IOobject::NO_READ, p, U, and regIOobject::write().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ Cloud< ParcelType >

friend class Cloud< ParcelType >
friend

Definition at line 171 of file DSMCParcel.H.

◆ operator

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

Field Documentation

◆ sizeofFields_

const std::size_t sizeofFields_
staticprivate

Size in bytes of the fields.

Definition at line 74 of file DSMCParcel.H.

◆ U_

vector U_
protected

Velocity of Parcel [m/s].

Definition at line 156 of file DSMCParcel.H.

Referenced by DSMCParcel::U().

◆ Ei_

scalar Ei_
protected

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

degrees of freedom [J]

Definition at line 160 of file DSMCParcel.H.

Referenced by DSMCParcel::Ei().

◆ typeId_

label typeId_
protected

Parcel type id.

Definition at line 163 of file DSMCParcel.H.

Referenced by DSMCParcel::typeId().


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