Wrapper around parcel types to add collision modelling. More...
Classes | |
class | constantProperties |
Class to hold thermo particle constant properties. More... | |
class | trackingData |
Class to hold temporary data during tracking. More... | |
Public Member Functions | |
AddToPropertyList (ParcelType, " (fx fy fz)"+" (angularMomentumx angularMomentumy angularMomentumz)"+" (torquex torquey torquez)"+" collisionRecordsPairAccessed"+" collisionRecordsPairOrigProcOfOther"+" collisionRecordsPairOrigIdOfOther"+" (collisionRecordsPairData)"+" collisionRecordsWallAccessed"+" collisionRecordsWallPRel"+" (collisionRecordsWallData)") | |
String representation of properties. More... | |
CollidingParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei) | |
Construct from mesh, coordinates and topology. More... | |
CollidingParcel (const polyMesh &mesh, const vector &position, const label celli, label &nLocateBoundaryHits) | |
Construct from a position and a cell, searching for the rest of the. More... | |
CollidingParcel (Istream &is, bool readFields=true) | |
Construct from Istream. More... | |
CollidingParcel (const CollidingParcel &p) | |
Construct as a copy. More... | |
virtual autoPtr< particle > | clone () const |
Construct and return a clone. More... | |
const vector & | f () const |
Return const access to force. More... | |
const vector & | angularMomentum () const |
Return const access to angular momentum. More... | |
const vector & | torque () const |
Return const access to torque. More... | |
const collisionRecordList & | collisionRecords () const |
Return const access to the collision records. More... | |
vector & | f () |
Return access to force. More... | |
vector & | angularMomentum () |
Return access to angular momentum. More... | |
vector & | torque () |
Return access to torque. More... | |
collisionRecordList & | collisionRecords () |
Return access to collision records. More... | |
vector | omega () const |
Particle angular velocity. More... | |
template<class TrackCloudType > | |
bool | move (TrackCloudType &cloud, trackingData &td) |
Move the parcel. More... | |
virtual void | transformProperties (const transformer &) |
Transform the physical properties of the particle. More... | |
Static Public Member Functions | |
static autoPtr< CollidingParcel > | New (Istream &is) |
Construct from Istream and return. More... | |
template<class CloudType > | |
static void | readFields (CloudType &c) |
Read. More... | |
template<class CloudType > | |
static void | writeFields (const CloudType &c) |
Write. More... | |
Protected Attributes | |
vector | f_ |
Force on particle due to collisions [N]. More... | |
vector | angularMomentum_ |
Angular momentum of Parcel in global reference frame [kg m2/s]. More... | |
vector | torque_ |
Torque on particle due to collisions in global. More... | |
collisionRecordList | collisionRecords_ |
Particle collision records. More... | |
Friends | |
Ostream & | operator (Ostream &, const CollidingParcel< ParcelType > &) |
Wrapper around parcel types to add collision modelling.
Definition at line 78 of file CollidingParcel.H.
|
inline |
Construct from mesh, coordinates and topology.
Other properties initialised as null
Definition at line 63 of file CollidingParcelI.H.
Referenced by CollidingParcel< ParcelType >::clone(), and CollidingParcel< ParcelType >::New().
|
inline |
Construct from a position and a cell, searching for the rest of the.
required topology. Other properties are initialised as null.
Definition at line 82 of file CollidingParcelI.H.
CollidingParcel | ( | Istream & | is, |
bool | readFields = true |
||
) |
Construct from Istream.
Definition at line 47 of file CollidingParcelIO.C.
References CollidingParcel< ParcelType >::angularMomentum_, IOstream::ASCII, IOstream::check(), CollidingParcel< ParcelType >::collisionRecords_, CollidingParcel< ParcelType >::f_, IOstream::format(), Istream::read(), CollidingParcel< ParcelType >::readFields(), and CollidingParcel< ParcelType >::torque_.
CollidingParcel | ( | const CollidingParcel< ParcelType > & | p | ) |
Construct as a copy.
AddToPropertyList | ( | ParcelType | , |
" (fx fy fz)"+" (angularMomentumx angularMomentumy angularMomentumz)"+" (torquex torquey torquez)"+" collisionRecordsPairAccessed"+" collisionRecordsPairOrigProcOfOther"+" collisionRecordsPairOrigIdOfOther"+" (collisionRecordsPairData)"+" collisionRecordsWallAccessed"+" collisionRecordsWallPRel"+" (collisionRecordsWallData)" | |||
) |
String representation of properties.
Construct and return a clone.
Definition at line 242 of file CollidingParcel.H.
References CollidingParcel< ParcelType >::CollidingParcel().
|
inlinestatic |
Construct from Istream and return.
Definition at line 248 of file CollidingParcel.H.
References CollidingParcel< ParcelType >::CollidingParcel().
|
inline |
Return const access to force.
Definition at line 119 of file CollidingParcelI.H.
|
inline |
Return const access to angular momentum.
Definition at line 127 of file CollidingParcelI.H.
|
inline |
Return const access to torque.
Definition at line 134 of file CollidingParcelI.H.
|
inline |
Return const access to the collision records.
Definition at line 142 of file CollidingParcelI.H.
|
inline |
Return access to force.
Definition at line 149 of file CollidingParcelI.H.
|
inline |
Return access to angular momentum.
Definition at line 156 of file CollidingParcelI.H.
|
inline |
Return access to torque.
Definition at line 163 of file CollidingParcelI.H.
|
inline |
Return access to collision records.
Definition at line 171 of file CollidingParcelI.H.
|
inline |
Particle angular velocity.
Definition at line 178 of file CollidingParcelI.H.
bool move | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Move the parcel.
Definition at line 48 of file CollidingParcel.C.
References Pair< Type >::first(), NotImplemented, p, CollidingParcel< ParcelType >::trackingData::part(), and Pair< Type >::second().
|
virtual |
Transform the physical properties of the particle.
according to the given transformation tensor
Definition at line 96 of file CollidingParcel.C.
References Foam::transform(), and dimensionSet::transform.
|
static |
Read.
Definition at line 82 of file CollidingParcelIO.C.
References Foam::constant::universal::c, f(), forAllIter, IOobject::MUST_READ, p, Foam::readFields(), and Foam::vtkWriteOps::write().
Referenced by CollidingParcel< ParcelType >::CollidingParcel().
|
static |
Write.
Definition at line 190 of file CollidingParcelIO.C.
References Foam::constant::universal::c, f(), forAllConstIter, IOobject::NO_READ, p, regIOobject::write(), and Foam::vtkWriteOps::write().
|
friend |
|
protected |
Force on particle due to collisions [N].
Definition at line 177 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::CollidingParcel().
|
protected |
Angular momentum of Parcel in global reference frame [kg m2/s].
Definition at line 180 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::CollidingParcel().
|
protected |
Torque on particle due to collisions in global.
reference frame [Nm]
Definition at line 184 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::CollidingParcel().
|
protected |
Particle collision records.
Definition at line 187 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::CollidingParcel().