DSMC parcel class. More...


Classes | |
| class | constantProperties |
| Class to hold DSMC particle constant properties. More... | |
| class | iNew |
| Factory class to read-construct particles used for. More... | |
Public Types | |
| typedef ParcelType::trackingData | trackingData |
| Use base tracking data. More... | |
Public Member Functions | |
| TypeName ("DSMCParcel") | |
| Runtime type information. More... | |
| DSMCParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const vector &U, const scalar Ei, const label typeId) | |
| Construct from components. More... | |
| DSMCParcel (const polyMesh &mesh, const vector &position, const label celli, const vector &U, const scalar Ei, const label typeId) | |
| Construct from a position and a cell, searching for the rest of the. More... | |
| DSMCParcel (const polyMesh &mesh, Istream &is, bool readFields=true) | |
| Construct from Istream. More... | |
| virtual autoPtr< particle > | clone () const |
| Construct and return a clone. More... | |
| label | typeId () const |
| Return type id. More... | |
| const vector & | U () const |
| Return const access to velocity. More... | |
| scalar | Ei () const |
| Return const access to internal energy. More... | |
| vector & | U () |
| Return access to velocity. More... | |
| scalar & | Ei () |
| Return access to internal energy. More... | |
| template<class TrackCloudType > | |
| bool | move (TrackCloudType &cloud, trackingData &td, const scalar trackTime) |
| Move the parcel. More... | |
| template<class TrackCloudType > | |
| bool | hitPatch (TrackCloudType &, trackingData &) |
| Overridable function to handle the particle hitting a patch. More... | |
| template<class TrackCloudType > | |
| void | hitProcessorPatch (TrackCloudType &, trackingData &) |
| Overridable function to handle the particle hitting a. More... | |
| template<class TrackCloudType > | |
| void | hitWallPatch (TrackCloudType &, trackingData &) |
| Overridable function to handle the particle hitting a wallPatch. 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... | |
Friends | |
| class | Cloud< ParcelType > |
| Ostream & | operator (Ostream &, const DSMCParcel< ParcelType > &) |
DSMC parcel class.
Definition at line 51 of file DSMCParcel.H.
| typedef ParcelType::trackingData trackingData |
Use base tracking data.
Definition at line 130 of file DSMCParcel.H.
|
inline |
Construct from components.
Definition at line 56 of file DSMCParcelI.H.
Referenced by DSMCParcel< ParcelType >::constantProperties::constantProperties().

|
inline |
Construct from a position and a cell, searching for the rest of the.
required topology
Definition at line 76 of file DSMCParcelI.H.
| DSMCParcel | ( | const polyMesh & | mesh, |
| Istream & | is, | ||
| bool | readFields = true |
||
| ) |
Construct from Istream.
Definition at line 44 of file DSMCParcelIO.C.
References IOstream::check(), IOstream::format(), Istream::read(), Foam::readLabel(), and readScalar.

| TypeName | ( | "DSMCParcel< ParcelType >" | ) |
Runtime type information.
Construct and return a clone.
Definition at line 194 of file DSMCParcel.H.
|
inline |
Return type id.
Definition at line 137 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::typeId_.
Referenced by DSMCParcel< ParcelType >::iNew::operator()(), and DSMCParcel< ParcelType >::writeFields().

|
inline |
Return const access to velocity.
Definition at line 144 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::U_.
Referenced by DSMCParcel< ParcelType >::iNew::operator()(), and DSMCParcel< ParcelType >::writeFields().

|
inline |
Return const access to internal energy.
Definition at line 151 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::Ei_.
Referenced by DSMCParcel< ParcelType >::iNew::operator()(), and DSMCParcel< ParcelType >::writeFields().

|
inline |
Return access to velocity.
Definition at line 158 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::U_.
|
inline |
Return access to internal energy.
Definition at line 165 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::Ei_.
| bool move | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | trackTime | ||
| ) |
Move the parcel.
Definition at line 34 of file DSMCParcel.C.
References Foam::meshTools::constrainDirection(), f(), mesh, p, and polyMesh::solutionD().
Referenced by DSMCParcel< ParcelType >::iNew::operator()().


| bool hitPatch | ( | TrackCloudType & | , |
| trackingData & | |||
| ) |
Overridable function to handle the particle hitting a patch.
Executed before other patch-hitting functions
Definition at line 75 of file DSMCParcel.C.
References DSMCParcel< ParcelType >::hitProcessorPatch().
Referenced by DSMCParcel< ParcelType >::iNew::operator()().


| void hitProcessorPatch | ( | TrackCloudType & | , |
| trackingData & | td | ||
| ) |
Overridable function to handle the particle hitting a.
processorPatch
Definition at line 84 of file DSMCParcel.C.
References DSMCParcel< ParcelType >::hitWallPatch().
Referenced by DSMCParcel< ParcelType >::hitPatch(), and DSMCParcel< ParcelType >::iNew::operator()().


| void hitWallPatch | ( | TrackCloudType & | cloud, |
| trackingData & | |||
| ) |
Overridable function to handle the particle hitting a wallPatch.
Definition at line 96 of file DSMCParcel.C.
References polyPatch::faceAreas(), Foam::mag(), DSMCParcel< ParcelType >::constantProperties::mass(), Foam::max(), mesh, nw, and polyPatch::whichFace().
Referenced by DSMCParcel< ParcelType >::hitProcessorPatch(), and DSMCParcel< ParcelType >::iNew::operator()().


|
virtual |
Transform the physical properties of the particle.
according to the given transformation tensor
Definition at line 187 of file DSMCParcel.C.
References Foam::transform().
Referenced by DSMCParcel< ParcelType >::iNew::operator()().


|
virtual |
Transform the physical properties of the particle.
according to the given separation vector
Definition at line 196 of file DSMCParcel.C.
|
static |
Definition at line 79 of file DSMCParcelIO.C.
References Foam::constant::universal::c, DSMCParcel< ParcelType >::Ei_, forAllIter, p, Foam::readFields(), DSMCParcel< ParcelType >::typeId_, U, DSMCParcel< ParcelType >::U_, and DSMCParcel< ParcelType >::writeFields().
Referenced by DSMCParcel< ParcelType >::iNew::operator()().


|
static |
Definition at line 113 of file DSMCParcelIO.C.
References Foam::constant::universal::c, DSMCParcel< ParcelType >::Ei(), forAllConstIter(), p, DSMCParcel< ParcelType >::typeId(), U, and DSMCParcel< ParcelType >::U().
Referenced by DSMCParcel< ParcelType >::iNew::operator()(), and DSMCParcel< ParcelType >::readFields().


|
friend |
Definition at line 155 of file DSMCParcel.H.
|
friend |
|
protected |
Velocity of Parcel [m/s].
Definition at line 140 of file DSMCParcel.H.
Referenced by DSMCParcel< ParcelType >::readFields(), and DSMCParcel< ParcelType >::U().
|
protected |
Internal energy of the Parcel, covering all non-translational.
degrees of freedom [J]
Definition at line 144 of file DSMCParcel.H.
Referenced by DSMCParcel< ParcelType >::Ei(), and DSMCParcel< ParcelType >::readFields().
|
protected |
Parcel type id.
Definition at line 147 of file DSMCParcel.H.
Referenced by DSMCParcel< ParcelType >::readFields(), and DSMCParcel< ParcelType >::typeId().