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, bool newFormat=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) |
Static Public Attributes | |
| static const std::size_t | sizeofFields |
| Size in bytes of the fields. More... | |
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 50 of file DSMCParcel.H.
| typedef ParcelType::trackingData trackingData |
Use base tracking data.
Definition at line 156 of file DSMCParcel.H.
|
inline |
Construct from components.
Definition at line 48 of file DSMCParcelI.H.
|
inline |
Construct from a position and a cell, searching for the rest of the.
required topology
Definition at line 68 of file DSMCParcelI.H.
| DSMCParcel | ( | const polyMesh & | mesh, |
| Istream & | is, | ||
| bool | readFields = true, |
||
| bool | newFormat = true |
||
| ) |
Construct from Istream.
Definition at line 40 of file DSMCParcelIO.C.
References Istream::beginRawRead(), IOstream::check(), IOstream::checkLabelSize(), IOstream::checkScalarSize(), Istream::endRawRead(), IOstreamOption::format(), FUNCTION_NAME, Istream::read(), Foam::readFields(), and Foam::readRawLabel().

| TypeName | ( | "DSMCParcel< ParcelType >" | ) |
Runtime type information.
Construct and return a clone.
Definition at line 239 of file DSMCParcel.H.
|
inline |
Return type id.
Definition at line 129 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::typeId_.
|
inline |
Return const access to velocity.
Definition at line 136 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::U_.
|
inline |
Return const access to internal energy.
Definition at line 143 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::Ei_.
|
inline |
Return access to velocity.
Definition at line 150 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::U_.
|
inline |
Return access to internal energy.
Definition at line 157 of file DSMCParcelI.H.
References DSMCParcel< ParcelType >::Ei_.
| bool move | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | trackTime | ||
| ) |
Move the parcel.
Definition at line 29 of file DSMCParcel.C.
References Foam::meshTools::constrainDirection(), f(), mesh, and p.

| bool hitPatch | ( | TrackCloudType & | , |
| trackingData & | |||
| ) |
Overridable function to handle the particle hitting a patch.
Executed before other patch-hitting functions
Definition at line 70 of file DSMCParcel.C.
| void hitProcessorPatch | ( | TrackCloudType & | , |
| trackingData & | td | ||
| ) |
Overridable function to handle the particle hitting a.
processorPatch
Definition at line 79 of file DSMCParcel.C.
| void hitWallPatch | ( | TrackCloudType & | cloud, |
| trackingData & | |||
| ) |
Overridable function to handle the particle hitting a wallPatch.
Definition at line 91 of file DSMCParcel.C.
References TimeState::deltaTValue(), polyPatch::faceAreas(), Foam::mag(), DSMCParcel< ParcelType >::constantProperties::mass(), Foam::max(), mesh, Foam::normalised(), Foam::foamVersion::patch, objectRegistry::time(), and polyPatch::whichFace().

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

|
virtual |
Transform the physical properties of the particle.
according to the given separation vector
Definition at line 190 of file DSMCParcel.C.
|
static |
Definition at line 81 of file DSMCParcelIO.C.
References Foam::constant::universal::c, p, Foam::readFields(), and U.

|
static |
Definition at line 113 of file DSMCParcelIO.C.
References Foam::constant::universal::c, p, U, and Foam::writeFields().

|
friend |
Definition at line 190 of file DSMCParcel.H.
|
friend |
|
static |
Size in bytes of the fields.
Definition at line 75 of file DSMCParcel.H.
|
protected |
Velocity of Parcel [m/s].
Definition at line 168 of file DSMCParcel.H.
Referenced by DSMCParcel< ParcelType >::U().
|
protected |
Internal energy of the Parcel, covering all non-translational.
degrees of freedom [J]
Definition at line 175 of file DSMCParcel.H.
Referenced by DSMCParcel< ParcelType >::Ei().
|
protected |
Parcel type id.
Definition at line 180 of file DSMCParcel.H.
Referenced by DSMCParcel< ParcelType >::typeId().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.