DSMC parcel class. More...


Classes | |
| class | constantProperties |
| Class to hold DSMC particle constant properties. 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 vector &position, const label celli, label &nLocateBoundaryHits, const vector &U, const scalar Ei, const label typeId) | |
| Construct from a position and a cell, searching for the rest of the. More... | |
| DSMCParcel (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) |
| Move the parcel. More... | |
| template<class TrackCloudType > | |
| void | hitWallPatch (TrackCloudType &, trackingData &) |
| Overridable function to handle the particle hitting a wallPatch. More... | |
| virtual void | transformProperties (const transformer &) |
| Transform the physical properties of the particle. More... | |
Static Public Member Functions | |
| static autoPtr< DSMCParcel > | New (Istream &is) |
| Construct from Istream and return. More... | |
| static void | readFields (lagrangian::Cloud< DSMCParcel< ParcelType >> &c) |
| static void | writeFields (const lagrangian::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 | lagrangian::Cloud< ParcelType > |
| Ostream & | operator (Ostream &, const DSMCParcel< ParcelType > &) |
DSMC parcel class.
Definition at line 67 of file DSMCParcel.H.
| typedef ParcelType::trackingData trackingData |
Use base tracking data.
Definition at line 130 of file DSMCParcel.H.
|
inline |
Construct from a position and a cell, searching for the rest of the.
required topology
Definition at line 56 of file DSMCParcelI.H.
Referenced by DSMCParcel< ParcelType >::New().

| DSMCParcel | ( | Istream & | is, |
| bool | readFields = true |
||
| ) |
Construct from Istream.
Definition at line 43 of file DSMCParcelIO.C.
References IOstream::ASCII, IOstream::check(), DSMCParcel< ParcelType >::Ei_, IOstream::format(), Istream::read(), DSMCParcel< ParcelType >::readFields(), Foam::readLabel(), Foam::readScalar(), DSMCParcel< ParcelType >::typeId_, and DSMCParcel< ParcelType >::U_.

| TypeName | ( | "DSMCParcel< ParcelType >" | ) |
Runtime type information.
Construct and return a clone.
Definition at line 177 of file DSMCParcel.H.
|
inlinestatic |
Construct from Istream and return.
Definition at line 183 of file DSMCParcel.H.
References DSMCParcel< ParcelType >::DSMCParcel().

|
inline |
Return type id.
Definition at line 119 of file DSMCParcelI.H.
|
inline |
Return const access to velocity.
Definition at line 126 of file DSMCParcelI.H.
|
inline |
Return const access to internal energy.
Definition at line 133 of file DSMCParcelI.H.
|
inline |
Return access to velocity.
Definition at line 140 of file DSMCParcelI.H.
|
inline |
Return access to internal energy.
Definition at line 147 of file DSMCParcelI.H.
| bool move | ( | TrackCloudType & | cloud, |
| trackingData & | td | ||
| ) |
Move the parcel.
Definition at line 33 of file DSMCParcel.C.
References Foam::meshTools::constrainDirection(), TimeState::deltaTValue(), f(), mesh, p, polyMesh::solutionD(), and fvMesh::time().

| void hitWallPatch | ( | TrackCloudType & | cloud, |
| trackingData & | |||
| ) |
Overridable function to handle the particle hitting a wallPatch.
Definition at line 76 of file DSMCParcel.C.
References TimeState::deltaTValue(), polyPatch::faceAreas(), DSMCParcel< ParcelType >::constantProperties::internalDegreesOfFreedom(), Foam::mag(), polyPatch::magFaceAreas(), DSMCParcel< ParcelType >::constantProperties::mass(), Foam::max(), IOobject::time(), and polyPatch::whichFace().

|
virtual |
Transform the physical properties of the particle.
according to the given transformation tensor
Definition at line 168 of file DSMCParcel.C.
References Foam::transform(), and dimensionSet::transform.

|
static |
Definition at line 74 of file DSMCParcelIO.C.
References Foam::constant::universal::c, forAllIter, IOobject::MUST_READ, p, Foam::readFields(), U, and Foam::blendedInterfacialModel::valid().
Referenced by DSMCParcel< ParcelType >::DSMCParcel().


|
static |
Definition at line 110 of file DSMCParcelIO.C.
References Foam::constant::universal::c, forAllConstIter, IOobject::NO_READ, p, U, and regIOobject::write().

|
friend |
Definition at line 153 of file DSMCParcel.H.
|
friend |
|
protected |
Velocity of Parcel [m/s].
Definition at line 140 of file DSMCParcel.H.
Referenced by DSMCParcel< ParcelType >::DSMCParcel().
|
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 >::DSMCParcel().
|
protected |
Parcel type id.
Definition at line 147 of file DSMCParcel.H.
Referenced by DSMCParcel< ParcelType >::DSMCParcel().