37 #ifndef CollidingParcel_H 38 #define CollidingParcel_H 54 template<
class ParcelType>
59 template<
class ParcelType>
70 template<
class ParcelType>
78 static const std::size_t sizeofFields_;
86 public ParcelType::constantProperties
125 public ParcelType::trackingData
150 template <
class TrackCloudType>
194 +
" (angularMomentumx angularMomentumy angularMomentumz)" 195 +
" (torquex torquey torquez)" 196 +
" collisionRecordsPairAccessed" 197 +
" collisionRecordsPairOrigProcOfOther" 198 +
" collisionRecordsPairOrigIdOfOther" 199 +
" (collisionRecordsPairData)" 200 +
" collisionRecordsWallAccessed" 201 +
" collisionRecordsWallPRel" 202 +
" (collisionRecordsWallData)" 215 const label tetFacei,
234 const label tetFacei,
237 const scalar nParticle0,
239 const scalar dTarget0,
242 const vector& angularMomentum0,
244 const typename ParcelType::constantProperties& constProps
301 inline const vector&
f()
const;
331 template<
class TrackCloudType>
334 TrackCloudType&
cloud,
336 const scalar trackTime
347 template<
class CloudType>
351 template<
class CloudType>
357 friend Ostream& operator<< <ParcelType>
vector f_
Force on particle due to collisions [N].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
CollisionRecordList< vector, vector > collisionRecordList
vectorFieldCompactIOField pairDataFieldCompactIOField
A list of keyword definitions, which are a keyword followed by any number of values (e...
Wrapper around kinematic parcel types to add collision modelling.
Class to hold thermo particle constant properties.
Class to hold temporary data during tracking.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const vector & f() const
Return const access to force.
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.
static void writeFields(const CloudType &c)
Write.
vectorFieldCompactIOField wallDataFieldCompactIOField
scalar poissonsRatio() const
Return const access to Poisson's ratio.
virtual void transformProperties(const transformer &)
Transform the physical properties of the particle.
scalar youngsModulus() const
Return const access to Young's Modulus.
collisionRecordList collisionRecords_
Particle collision records.
const dimensionedScalar & c
Speed of light in a vacuum.
AddToPropertyList(ParcelType, " (fx fy fz)"+" (angularMomentumx angularMomentumy angularMomentumz)"+" (torquex torquey torquez)"+" collisionRecordsPairAccessed"+" collisionRecordsPairOrigProcOfOther"+" collisionRecordsPairOrigIdOfOther"+" (collisionRecordsPairData)"+" collisionRecordsWallAccessed"+" collisionRecordsWallPRel"+" (collisionRecordsWallData)")
String representation of properties.
A cloud is a collection of lagrangian particles.
constantProperties()
Null constructor.
bool move(TrackCloudType &cloud, trackingData &td, const scalar trackTime)
Move the parcel.
const vector & torque() const
Return const access to torque.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const vector & angularMomentum() const
Return const access to angular momentum.
vector angularMomentum_
Angular momentum of Parcel in global reference frame [kg m2/s].
vector torque_
Torque on particle due to collisions in global.
vector omega() const
Particle angular velocity.
PtrList< coordinateSystem > coordinates(solidRegions.size())
A Field of objects of type <T> with automated input and output using a compact storage. Behaves like IOField except when binary output in case it writes a CompactListList.
CollidingParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
TypeName("CollidingParcel")
Runtime type information.
Factory class to read-construct particles used for.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
const collisionRecordList & collisionRecords() const
Return const access to the collision records.
Templated base class for dsmc cloud.
virtual autoPtr< particle > clone() const
Construct and return a (basic particle) clone.
static void readFields(CloudType &c)
Read.