Wrapper around kinematic 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 | |
TypeName ("CollidingParcel") | |
Runtime type information. More... | |
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, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label typeId, const scalar nParticle0, const scalar d0, const scalar dTarget0, const vector &U0, const vector &f0, const vector &angularMomentum0, const vector &torque0, const typename ParcelType::constantProperties &constProps) | |
Construct from components. 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 kinematic parcel types to add collision modelling.
Definition at line 54 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(), CollidingParcel< ParcelType >::CollidingParcel(), 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.
References CollidingParcel< ParcelType >::CollidingParcel().
|
inline |
Construct from components.
Definition at line 98 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.
TypeName | ( | "CollidingParcel< ParcelType >" | ) |
Runtime type information.
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 261 of file CollidingParcel.H.
References CollidingParcel< ParcelType >::CollidingParcel().
Construct and return a (basic particle) clone.
Definition at line 267 of file CollidingParcel.H.
References CollidingParcel< ParcelType >::CollidingParcel().
|
inline |
Return const access to force.
Definition at line 157 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 165 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 172 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 180 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 187 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::f_.
|
inline |
Return access to angular momentum.
Definition at line 194 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::angularMomentum_.
|
inline |
Return access to torque.
Definition at line 201 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::torque_.
|
inline |
Return access to collision records.
Definition at line 209 of file CollidingParcelI.H.
References CollidingParcel< ParcelType >::collisionRecords_.
|
inline |
Particle angular velocity.
Definition at line 216 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 168 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 171 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 175 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::readFields(), and CollidingParcel< ParcelType >::torque().
|
protected |
Particle collision records.
Definition at line 178 of file CollidingParcel.H.
Referenced by CollidingParcel< ParcelType >::collisionRecords(), and CollidingParcel< ParcelType >::readFields().