Wrapper around kinematic parcel types to add collision modelling. More...
#include <CollidingParcel.H>


Classes | |
| class | constantProperties |
| Class to hold thermo particle constant properties. More... | |
| class | iNew |
| Factory class to read-construct particles (for parallel transfer). More... | |
Public Types | |
| typedef ParcelType::trackingData | trackingData |
| Use base tracking data. | |
Public Member Functions | |
| TypeName ("CollidingParcel") | |
| 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. | |
| CollidingParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti) | |
| Construct from mesh, coordinates and topology. | |
| CollidingParcel (const polyMesh &mesh, const vector &position, const label celli) | |
| Construct from a position and a cell, searching for the rest of the. | |
| 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. | |
| CollidingParcel (const polyMesh &mesh, Istream &is, bool readFields=true, bool newFormat=true) | |
| Construct from Istream. | |
| CollidingParcel (const CollidingParcel &p) | |
| Construct as a copy. | |
| CollidingParcel (const CollidingParcel &p, const polyMesh &mesh) | |
| Construct as a copy. | |
| virtual autoPtr< particle > | clone () const |
| Return a (basic particle) clone. | |
| virtual autoPtr< particle > | clone (const polyMesh &mesh) const |
| Return a (basic particle) clone. | |
| const vector & | f () const |
| Return const access to force. | |
| const vector & | angularMomentum () const |
| Return const access to angular momentum. | |
| const vector & | torque () const |
| Return const access to torque. | |
| const collisionRecordList & | collisionRecords () const |
| Return const access to the collision records. | |
| vector & | f () |
| Return access to force. | |
| vector & | angularMomentum () |
| Return access to angular momentum. | |
| vector & | torque () |
| Return access to torque. | |
| collisionRecordList & | collisionRecords () |
| Return access to collision records. | |
| vector | omega () const |
| Particle angular velocity. | |
| template<class TrackCloudType> | |
| bool | move (TrackCloudType &cloud, trackingData &td, const scalar trackTime) |
| Move the parcel. | |
| virtual void | transformProperties (const tensor &T) |
| Transform the physical properties of the particle. | |
| virtual void | transformProperties (const vector &separation) |
| Transform the physical properties of the particle. | |
| void | writeProperties (Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const |
| Write individual parcel properties to stream. | |
Static Public Member Functions | |
| template<class CloudType> | |
| static void | readFields (CloudType &c) |
| Read. | |
| template<class CloudType> | |
| static void | writeFields (const CloudType &c) |
| Write. | |
| template<class CloudType> | |
| static void | readObjects (CloudType &c, const objectRegistry &obr) |
| Read particle fields as objects from the obr registry. | |
| template<class CloudType> | |
| static void | writeObjects (const CloudType &c, objectRegistry &obr) |
| Write particle fields as objects into the obr registry. | |
Static Public Attributes | |
| static const std::size_t | sizeofFields |
| Size in bytes of the fields. | |
Protected Attributes | |
| vector | f_ |
| Force on particle due to collisions [N]. | |
| vector | angularMomentum_ |
| Angular momentum of Parcel in global reference frame [kg m2/s]. | |
| vector | torque_ |
| Torque on particle due to collisions in global. | |
| collisionRecordList | collisionRecords_ |
| Particle collision records. | |
Friends | |
| Ostream & | operator<< (Ostream &, const CollidingParcel< ParcelType > &) |
Wrapper around kinematic parcel types to add collision modelling.
Definition at line 73 of file CollidingParcel.H.
| typedef ParcelType::trackingData trackingData |
Use base tracking data.
Definition at line 143 of file CollidingParcel.H.
|
inline |
Construct from mesh, coordinates and topology.
Other properties initialised as null
Definition at line 58 of file CollidingParcelI.H.
References angularMomentum_, collisionRecords_, coordinates(), f_, torque_, and Foam::Zero.
Referenced by CollidingParcel< ParcelType >::iNew::operator()(), readFields(), readObjects(), writeFields(), and writeObjects().


|
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 76 of file CollidingParcelI.H.
References angularMomentum_, collisionRecords_, f_, torque_, and Foam::Zero.
|
inline |
Construct from components.
Definition at line 92 of file CollidingParcelI.H.
References coordinates().

| CollidingParcel | ( | const polyMesh & | mesh, |
| Istream & | is, | ||
| bool | readFields = true, | ||
| bool | newFormat = true ) |
Construct from Istream.
Definition at line 43 of file CollidingParcelIO.C.
References angularMomentum_, IOstreamOption::ASCII, IOstream::check(), collisionRecords_, f_, IOstream::fatalCheckNativeSizes(), IOstreamOption::format(), FUNCTION_NAME, mesh, Istream::read(), readFields(), sizeofFields, torque_, and Foam::Zero.

| 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.
Return a (basic particle) clone.
Definition at line 274 of file CollidingParcel.H.
|
inlinevirtual |
Return a (basic particle) clone.
Definition at line 282 of file CollidingParcel.H.
|
inline |
Return const access to force.
Definition at line 152 of file CollidingParcelI.H.
References f_.
Referenced by readFields(), readObjects(), writeFields(), and writeObjects().

|
inline |
Return const access to angular momentum.
Definition at line 160 of file CollidingParcelI.H.
References angularMomentum_.
Referenced by readFields().

|
inline |
Return const access to torque.
Definition at line 167 of file CollidingParcelI.H.
References torque_.
Referenced by readFields(), readObjects(), writeFields(), and writeObjects().

|
inline |
Return const access to the collision records.
Definition at line 175 of file CollidingParcelI.H.
References collisionRecords_.
|
inline |
|
inline |
Return access to angular momentum.
Definition at line 189 of file CollidingParcelI.H.
References angularMomentum_.
|
inline |
|
inline |
Return access to collision records.
Definition at line 204 of file CollidingParcelI.H.
References collisionRecords_.
|
inline |
Particle angular velocity.
Definition at line 211 of file CollidingParcelI.H.
References angularMomentum_.
| bool move | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | trackTime ) |
Move the parcel.
Definition at line 58 of file CollidingParcel.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, NotImplemented, p, and td().

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

|
virtual |
Transform the physical properties of the particle.
according to the given separation vector
Definition at line 128 of file CollidingParcel.C.
Read.
Definition at line 82 of file CollidingParcelIO.C.
References angularMomentum(), CollidingParcel(), f(), f(), IOobjectOption::MUST_READ, p, and torque().
Referenced by CollidingParcel().


Write.
Definition at line 188 of file CollidingParcelIO.C.
References CollidingParcel(), f(), f(), IOobjectOption::NO_READ, p, torque(), and regIOobject::write().

| void writeProperties | ( | Ostream & | os, |
| const wordRes & | filters, | ||
| const word & | delim, | ||
| const bool | namesOnly ) const |
Write individual parcel properties to stream.
Definition at line 279 of file CollidingParcelIO.C.
References angularMomentum_, f_, os(), torque_, and writeProp.

|
static |
Read particle fields as objects from the obr registry.
Definition at line 304 of file CollidingParcelIO.C.
References CollidingParcel(), f(), cloud::lookupIOField(), p, and torque().

|
static |
Write particle fields as objects into the obr registry.
Definition at line 332 of file CollidingParcelIO.C.
References CollidingParcel(), cloud::createIOField(), f(), p, and torque().

|
friend |
|
static |
Size in bytes of the fields.
Definition at line 82 of file CollidingParcel.H.
Referenced by CollidingParcel().
|
protected |
Force on particle due to collisions [N].
Definition at line 153 of file CollidingParcel.H.
Referenced by CollidingParcel(), CollidingParcel(), CollidingParcel(), f(), f(), transformProperties(), and writeProperties().
|
protected |
Angular momentum of Parcel in global reference frame [kg m2/s].
Definition at line 158 of file CollidingParcel.H.
Referenced by angularMomentum(), angularMomentum(), CollidingParcel(), CollidingParcel(), CollidingParcel(), omega(), transformProperties(), and writeProperties().
|
protected |
Torque on particle due to collisions in global.
reference frame [Nm]
Definition at line 165 of file CollidingParcel.H.
Referenced by CollidingParcel(), CollidingParcel(), CollidingParcel(), torque(), torque(), transformProperties(), and writeProperties().
|
protected |
Particle collision records.
Definition at line 170 of file CollidingParcel.H.
Referenced by CollidingParcel(), CollidingParcel(), CollidingParcel(), collisionRecords(), and collisionRecords().