Wrapper around parcel types to add collision modelling. More...
Classes | |
class | constantProperties |
Class to hold thermo particle constant properties. More... | |
class | iNew |
Factory class to read-construct particles used for. 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) | |
Construct from mesh, coordinates and topology. More... | |
CollidingParcel (const polyMesh &mesh, const vector &position, const label celli) | |
Construct from a position and a cell, searching for the rest of the. More... | |
CollidingParcel (const polyMesh &mesh, Istream &is, bool readFields=true) | |
Construct from Istream. More... | |
CollidingParcel (const CollidingParcel &p) | |
Construct as a copy. More... | |
CollidingParcel (const CollidingParcel &p, const polyMesh &mesh) | |
Construct as a copy. More... | |
virtual autoPtr< particle > | clone () const |
Construct and return a (basic particle) clone. More... | |
virtual autoPtr< particle > | clone (const polyMesh &mesh) const |
Construct and return a (basic particle) 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, const scalar trackTime) |
Move the parcel. More... | |
virtual void | transformProperties (const transformer &) |
Transform the physical properties of the particle. More... | |
Static Public Member Functions | |
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 55 of file CollidingParcel.H.
|
inline |
Construct from mesh, coordinates and topology.
Other properties initialised as null
Definition at line 64 of file CollidingParcelI.H.
Referenced by CollidingParcel< ParcelType >::clone(), and CollidingParcel< ParcelType >::constantProperties::constantProperties().
|
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 | ( | const polyMesh & | mesh, |
Istream & | is, | ||
bool | readFields = true |
||
) |
Construct from Istream.
Definition at line 48 of file CollidingParcelIO.C.
References IOstream::check(), IOstream::format(), and Istream::read().
CollidingParcel | ( | const CollidingParcel< ParcelType > & | p | ) |
Construct as a copy.
CollidingParcel | ( | const CollidingParcel< ParcelType > & | p, |
const polyMesh & | mesh | ||
) |
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 (basic particle) clone.
Definition at line 248 of file CollidingParcel.H.
References CollidingParcel< ParcelType >::CollidingParcel().
Construct and return a (basic particle) clone.
Definition at line 254 of file CollidingParcel.H.
References CollidingParcel< ParcelType >::CollidingParcel().
|
inline |
Return const access to force.
Definition at line 117 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::f_.
Referenced by CollidingParcel< ParcelType >::iNew::operator()(), and CollidingParcel< ParcelType >::writeFields().
|
inline |
Return const access to angular momentum.
Definition at line 125 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::angularMomentum_.
Referenced by CollidingParcel< ParcelType >::iNew::operator()(), and CollidingParcel< ParcelType >::writeFields().
|
inline |
Return const access to torque.
Definition at line 132 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::torque_.
Referenced by CollidingParcel< ParcelType >::iNew::operator()(), and CollidingParcel< ParcelType >::writeFields().
|
inline |
Return const access to the collision records.
Definition at line 140 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::collisionRecords_.
Referenced by CollidingParcel< ParcelType >::iNew::operator()(), and CollidingParcel< ParcelType >::writeFields().
|
inline |
Return access to force.
Definition at line 147 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::f_.
|
inline |
Return access to angular momentum.
Definition at line 154 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::angularMomentum_.
|
inline |
Return access to torque.
Definition at line 161 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::torque_.
|
inline |
Return access to collision records.
Definition at line 169 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::collisionRecords_.
|
inline |
Particle angular velocity.
Definition at line 176 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::angularMomentum_.
Referenced by CollidingParcel< ParcelType >::iNew::operator()().
bool move | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | trackTime | ||
) |
Move the parcel.
Definition at line 64 of file CollidingParcel.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, NotImplemented, p, CollidingParcel< ParcelType >::trackingData::part(), and CollidingParcel< ParcelType >::transformProperties().
Referenced by CollidingParcel< ParcelType >::iNew::operator()().
|
virtual |
Transform the physical properties of the particle.
according to the given transformation tensor
Definition at line 118 of file CollidingParcel.C.
References transformer::transform().
Referenced by CollidingParcel< ParcelType >::move(), and CollidingParcel< ParcelType >::iNew::operator()().
|
static |
Read.
Definition at line 87 of file CollidingParcelIO.C.
References CollidingParcel< ParcelType >::angularMomentum_, Cloud< ParticleType >::checkFieldFieldIOobject(), Cloud< ParticleType >::checkFieldIOobject(), CollidingParcel< ParcelType >::collisionRecords_, f(), CollidingParcel< ParcelType >::f_, Cloud< ParticleType >::fieldIOobject(), forAllIter, p, Foam::readFields(), Cloud< ParticleType >::size(), CollidingParcel< ParcelType >::torque_, and Foam::vtkWriteOps::write().
Referenced by CollidingParcel< ParcelType >::iNew::operator()().
|
static |
Write.
Definition at line 195 of file CollidingParcelIO.C.
References CollidingParcel< ParcelType >::angularMomentum(), CollidingParcel< ParcelType >::collisionRecords(), f(), CollidingParcel< ParcelType >::f(), Cloud< ParticleType >::fieldIOobject(), forAllConstIter(), p, Cloud< ParticleType >::size(), CollidingParcel< ParcelType >::torque(), and Foam::vtkWriteOps::write().
Referenced by CollidingParcel< ParcelType >::iNew::operator()().
|
friend |
|
protected |
Force on particle due to collisions [N].
Definition at line 177 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::f(), and CollidingParcel< ParcelType >::readFields().
|
protected |
Angular momentum of Parcel in global reference frame [kg m2/s].
Definition at line 180 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::angularMomentum(), CollidingParcel< ParcelType >::omega(), and CollidingParcel< ParcelType >::readFields().
|
protected |
Torque on particle due to collisions in global.
reference frame [Nm]
Definition at line 184 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::readFields(), and CollidingParcel< ParcelType >::torque().
|
protected |
Particle collision records.
Definition at line 187 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::collisionRecords(), and CollidingParcel< ParcelType >::readFields().