Wrapper around kinematic parcel types to add collision modelling. More...
Data Structures | |
class | constantProperties |
Class to hold thermo particle constant properties. More... | |
class | iNew |
Factory class to read-construct particles used for. 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 vector &position, const label cellI, const label tetFaceI, const label tetPtI) | |
Construct from owner, position, and cloud owner. More... | |
CollidingParcel (const polyMesh &mesh, const vector &position, 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 TrackData > | |
bool | move (TrackData &td, const scalar trackTime) |
Move the parcel. 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 | |
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... | |
Static Private Attributes | |
static const std::size_t | sizeofFields_ |
Size in bytes of the fields. 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 owner, position, and cloud owner.
Other properties initialised as null
Referenced by CollidingParcel::clone().
|
inline |
Construct from components.
CollidingParcel | ( | const polyMesh & | mesh, |
Istream & | is, | ||
bool | readFields = true |
||
) |
Construct from Istream.
CollidingParcel | ( | const CollidingParcel & | p | ) |
Construct as a copy.
CollidingParcel | ( | const CollidingParcel & | p, |
const polyMesh & | mesh | ||
) |
Construct as a copy.
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.
Construct and return a (basic particle) clone.
Definition at line 210 of file CollidingParcel.H.
References CollidingParcel::CollidingParcel().
Construct and return a (basic particle) clone.
Definition at line 216 of file CollidingParcel.H.
References CollidingParcel::CollidingParcel(), and mesh.
|
inline |
Return const access to force.
Definition at line 141 of file CollidingParcelI.H.
References CollidingParcel::f_.
|
inline |
Return const access to angular momentum.
Definition at line 149 of file CollidingParcelI.H.
References CollidingParcel::angularMomentum_.
|
inline |
Return const access to torque.
Definition at line 156 of file CollidingParcelI.H.
References CollidingParcel::torque_.
|
inline |
Return const access to the collision records.
Definition at line 164 of file CollidingParcelI.H.
References CollidingParcel::collisionRecords_.
|
inline |
Return access to force.
Definition at line 171 of file CollidingParcelI.H.
References CollidingParcel::f_.
|
inline |
Return access to angular momentum.
Definition at line 178 of file CollidingParcelI.H.
References CollidingParcel::angularMomentum_.
|
inline |
Return access to torque.
Definition at line 185 of file CollidingParcelI.H.
References CollidingParcel::torque_.
|
inline |
Return access to collision records.
Definition at line 193 of file CollidingParcelI.H.
References CollidingParcel::collisionRecords_.
|
inline |
Particle angular velocity.
Definition at line 200 of file CollidingParcelI.H.
References CollidingParcel::angularMomentum_.
bool move | ( | TrackData & | td, |
const scalar | trackTime | ||
) |
Move the parcel.
Definition at line 64 of file CollidingParcel.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, NotImplemented, and p.
|
virtual |
Transform the physical properties of the particle.
according to the given transformation tensor
Definition at line 117 of file CollidingParcel.C.
References T, and Foam::transform().
|
virtual |
Transform the physical properties of the particle.
according to the given separation vector
Definition at line 131 of file CollidingParcel.C.
|
static |
Read.
Definition at line 87 of file CollidingParcelIO.C.
References Foam::constant::universal::c, f(), forAllIter, IOobject::MUST_READ, p, and readFields().
|
static |
Write.
Definition at line 186 of file CollidingParcelIO.C.
References Foam::constant::universal::c, f(), forAllConstIter(), IOobject::NO_READ, p, and regIOobject::write().
|
friend |
|
staticprivate |
Size in bytes of the fields.
Definition at line 77 of file CollidingParcel.H.
|
protected |
Force on particle due to collisions [N].
Definition at line 126 of file CollidingParcel.H.
Referenced by CollidingParcel::f().
|
protected |
Angular momentum of Parcel in global reference frame [kg m2/s].
Definition at line 129 of file CollidingParcel.H.
Referenced by CollidingParcel::angularMomentum(), and CollidingParcel::omega().
|
protected |
Torque on particle due to collisions in global.
reference frame [Nm]
Definition at line 133 of file CollidingParcel.H.
Referenced by CollidingParcel::torque().
|
protected |
Particle collision records.
Definition at line 136 of file CollidingParcel.H.
Referenced by CollidingParcel::collisionRecords().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.