DSMC parcel class. More...
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< 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 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 > |
Ostream & | operator (Ostream &, const DSMCParcel< ParcelType > &) |
|
inline |
Construct from components.
Definition at line 56 of file DSMCParcelI.H.
DSMCParcel | ( | const polyMesh & | mesh, |
Istream & | is, | ||
bool | readFields = true |
||
) |
Construct from Istream.
TypeName | ( | "DSMCParcel" | ) |
Runtime type information.
Construct and return a clone.
Definition at line 198 of file DSMCParcel.H.
|
inline |
|
inline |
Return const access to velocity.
Definition at line 126 of file DSMCParcelI.H.
References DSMCParcel::U_.
|
inline |
Return const access to internal energy.
Definition at line 133 of file DSMCParcelI.H.
References DSMCParcel::Ei_.
|
inline |
|
inline |
Return access to internal energy.
Definition at line 147 of file DSMCParcelI.H.
References DSMCParcel::Ei_.
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.
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.
void hitProcessorPatch | ( | const processorPolyPatch & | , |
TrackData & | td | ||
) |
Overridable function to handle the particle hitting a.
processorPatch
Definition at line 104 of file DSMCParcel.C.
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().
void hitPatch | ( | const polyPatch & | , |
TrackData & | td | ||
) |
Overridable function to handle the particle hitting a polyPatch.
Definition at line 208 of file DSMCParcel.C.
|
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().
|
virtual |
Transform the physical properties of the particle.
according to the given separation vector
Definition at line 224 of file DSMCParcel.C.
|
static |
Definition at line 79 of file DSMCParcelIO.C.
References Foam::constant::universal::c, forAllIter, IOobject::MUST_READ, p, readFields(), and U.
|
static |
Definition at line 112 of file DSMCParcelIO.C.
References Foam::constant::universal::c, forAllConstIter(), IOobject::NO_READ, p, U, and regIOobject::write().
|
friend |
Definition at line 171 of file DSMCParcel.H.
|
friend |
|
staticprivate |
Size in bytes of the fields.
Definition at line 74 of file DSMCParcel.H.
|
protected |
Velocity of Parcel [m/s].
Definition at line 156 of file DSMCParcel.H.
Referenced by DSMCParcel::U().
|
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().
|
protected |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.