Kinematic parcel class with rotational motion (as spherical particles only) and one/two-way coupling with the continuous phase. More...


Classes | |
| class | constantProperties |
| Class to hold kinematic particle constant properties. More... | |
| class | iNew |
| Factory class to read-construct particles (for parallel transfer) More... | |
| class | trackingData |
Public Member Functions | |
| TypeName ("KinematicParcel") | |
| Runtime type information. More... | |
| AddToPropertyList (ParcelType, " active"+" typeId"+" nParticle"+" d"+" dTarget"+" (Ux Uy Uz)"+" rho"+" age"+" tTurb"+" (UTurbx UTurby UTurbz)"+" (UCorrectx UCorrecty UCorrectz)") | |
| String representation of properties. More... | |
| KinematicParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti) | |
| Construct from mesh, coordinates and topology. More... | |
| KinematicParcel (const polyMesh &mesh, const vector &position, const label celli) | |
| Construct from a position and a cell, searching for the rest of the. More... | |
| KinematicParcel (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 constantProperties &constProps) | |
| Construct from components. More... | |
| KinematicParcel (const polyMesh &mesh, Istream &is, bool readFields=true, bool newFormat=true) | |
| Construct from Istream. More... | |
| KinematicParcel (const KinematicParcel &p) | |
| Construct as a copy. More... | |
| KinematicParcel (const KinematicParcel &p, const polyMesh &mesh) | |
| Construct as a copy. More... | |
| virtual autoPtr< particle > | clone () const |
| Return a (basic particle) clone. More... | |
| virtual autoPtr< particle > | clone (const polyMesh &mesh) const |
| Return a (basic particle) clone. More... | |
| bool | active () const |
| Return const access to active flag. More... | |
| label | typeId () const |
| Return const access to type id. More... | |
| scalar | nParticle () const |
| Return const access to number of particles. More... | |
| scalar | d () const |
| Return const access to diameter. More... | |
| scalar | dTarget () const |
| Return const access to target diameter. More... | |
| const vector & | U () const |
| Return const access to velocity. More... | |
| scalar | rho () const |
| Return const access to density. More... | |
| scalar | age () const |
| Return const access to the age. More... | |
| scalar | tTurb () const |
| Return const access to time spent in turbulent eddy. More... | |
| const vector & | UTurb () const |
| Return const access to turbulent velocity fluctuation. More... | |
| const vector & | UCorrect () const |
| Return const access to correction velocity. More... | |
| void | active (const bool state) |
| Set active flag to the specified state. More... | |
| label & | typeId () |
| Return access to type id. More... | |
| scalar & | nParticle () |
| Return access to number of particles. More... | |
| scalar & | d () |
| Return access to diameter. More... | |
| scalar & | dTarget () |
| Return access to target diameter. More... | |
| vector & | U () |
| Return access to velocity. More... | |
| scalar & | rho () |
| Return access to density. More... | |
| scalar & | age () |
| Return access to the age. More... | |
| scalar & | tTurb () |
| Return access to time spent in turbulent eddy. More... | |
| vector & | UTurb () |
| Return access to turbulent velocity fluctuation. More... | |
| vector & | UCorrect () |
| Return access to correction velocity. More... | |
| scalar | massCell (const trackingData &td) const |
| Cell owner mass. More... | |
| scalar | mass () const |
| Particle mass. More... | |
| scalar | momentOfInertia () const |
| Particle moment of inertia around diameter axis. More... | |
| scalar | volume () const |
| Particle volume. More... | |
| scalar | areaP () const |
| Particle projected area. More... | |
| scalar | areaS () const |
| Particle surface area. More... | |
| scalar | Re (const trackingData &td) const |
| Reynolds number. More... | |
| scalar | We (const trackingData &td, const scalar sigma) const |
| Weber number. More... | |
| scalar | Eo (const trackingData &td, const scalar sigma) const |
| Eotvos number. More... | |
| template<class TrackCloudType > | |
| void | setCellValues (TrackCloudType &cloud, trackingData &td) |
| Set cell values. More... | |
| template<class TrackCloudType > | |
| void | calcDispersion (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Apply dispersion to the carrier phase velocity and update. More... | |
| template<class TrackCloudType > | |
| void | cellValueSourceCorrection (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Correct cell values using latest transfer information. More... | |
| template<class TrackCloudType > | |
| void | calc (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Update parcel properties over the time interval. More... | |
| template<class TrackCloudType > | |
| void | calcUCorrection (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Correct U following MP-PIC sub-models. More... | |
| template<class TrackCloudType > | |
| bool | move (TrackCloudType &cloud, trackingData &td, const scalar trackTime) |
| Move the parcel. More... | |
| template<class TrackCloudType > | |
| bool | hitPatch (TrackCloudType &cloud, trackingData &td) |
| Overridable function to handle the particle hitting a patch. More... | |
| template<class TrackCloudType > | |
| void | hitProcessorPatch (TrackCloudType &cloud, trackingData &td) |
| Overridable function to handle the particle hitting a. More... | |
| template<class TrackCloudType > | |
| void | hitWallPatch (TrackCloudType &cloud, trackingData &td) |
| Overridable function to handle the particle hitting a wallPatch. 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... | |
| void | writeProperties (Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly=false) const |
| Write individual parcel properties to stream. More... | |
| template<class TrackCloudType > | |
| const Foam::vector | calcVelocity (TrackCloudType &cloud, trackingData &td, const scalar dt, const scalar Re, const scalar mu, const scalar mass, const vector &Su, vector &dUTrans, scalar &Spu) const |
| template<class CloudType > | |
| void | readFields (CloudType &c) |
| template<class CloudType > | |
| void | writeFields (const CloudType &c) |
Static Public Member Functions | |
| static scalar | volume (const scalar d) |
| Particle volume for a given diameter. More... | |
| static scalar | areaP (const scalar d) |
| Projected area for given diameter. More... | |
| static scalar | areaS (const scalar d) |
| Surface area for given diameter. More... | |
| static scalar | Re (const scalar rhoc, const vector &U, const vector &Uc, const scalar d, const scalar muc) |
| Reynolds number for given conditions. More... | |
| static scalar | We (const scalar rhoc, const vector &U, const vector &Uc, const scalar d, const scalar sigma) |
| Weber number for given conditions. More... | |
| static scalar | Eo (const vector &g, const scalar rho, const scalar rhoc, const vector &U, const scalar d, const scalar sigma) |
| Eotvos number for given conditions. More... | |
| template<class TrackCloudType > | |
| static void | readFields (TrackCloudType &c) |
| Read. More... | |
| template<class TrackCloudType > | |
| static void | writeFields (const TrackCloudType &c) |
| Write. More... | |
| template<class CloudType > | |
| static void | readObjects (CloudType &c, const objectRegistry &obr) |
| Read particle fields as objects from the obr registry. More... | |
| template<class CloudType > | |
| static void | writeObjects (const CloudType &c, objectRegistry &obr) |
| Write particle fields as objects into the obr registry. More... | |
Static Public Attributes | |
| static const std::size_t | sizeofFields |
| Size in bytes of the fields. More... | |
Protected Member Functions | |
| template<class TrackCloudType > | |
| const vector | calcVelocity (TrackCloudType &cloud, trackingData &td, const scalar dt, const scalar Re, const scalar mu, const scalar mass, const vector &Su, vector &dUTrans, scalar &Spu) const |
| Calculate new particle velocity. More... | |
Protected Attributes | |
| label | active_ |
| Active flag - tracking inactive when active = false. More... | |
| label | typeId_ |
| Parcel type id. More... | |
| scalar | nParticle_ |
| Number of particles in Parcel. More... | |
| scalar | d_ |
| Diameter [m]. More... | |
| scalar | dTarget_ |
| Target diameter [m]. More... | |
| vector | U_ |
| Velocity of Parcel [m/s]. More... | |
| scalar | rho_ |
| Density [kg/m3]. More... | |
| scalar | age_ |
| Age [s]. More... | |
| scalar | tTurb_ |
| Time spent in turbulent eddy [s]. More... | |
| vector | UTurb_ |
| Turbulent velocity fluctuation [m/s]. More... | |
| vector | UCorrect_ |
| Velocity correction due to collisions MPPIC [m/s]. More... | |
Friends | |
| Ostream & | operator (Ostream &, const KinematicParcel< ParcelType > &) |
Kinematic parcel class with rotational motion (as spherical particles only) and one/two-way coupling with the continuous phase.
Definition at line 61 of file KinematicParcel.H.
|
inline |
Construct from mesh, coordinates and topology.
Other properties initialised as null
Definition at line 70 of file KinematicParcelI.H.
|
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 94 of file KinematicParcelI.H.
|
inline |
Construct from components.
Definition at line 116 of file KinematicParcelI.H.
| KinematicParcel | ( | const polyMesh & | mesh, |
| Istream & | is, | ||
| bool | readFields = true, |
||
| bool | newFormat = true |
||
| ) |
Construct from Istream.
Definition at line 46 of file KinematicParcelIO.C.
References IOstream::check(), IOstream::fatalCheckNativeSizes(), IOstreamOption::format(), FUNCTION_NAME, Istream::read(), and Foam::readFields().

| KinematicParcel | ( | const KinematicParcel< ParcelType > & | p | ) |
Construct as a copy.
| KinematicParcel | ( | const KinematicParcel< ParcelType > & | p, |
| const polyMesh & | mesh | ||
| ) |
Construct as a copy.
|
protected |
Calculate new particle velocity.
| TypeName | ( | "KinematicParcel< ParcelType >" | ) |
Runtime type information.
| AddToPropertyList | ( | ParcelType | , |
| " active"+" typeId"+" nParticle"+" d"+" dTarget"+" (Ux Uy Uz)"+" rho"+" age"+" tTurb"+" (UTurbx UTurby UTurbz)"+" (UCorrectx UCorrecty UCorrectz)" | |||
| ) |
String representation of properties.
Return a (basic particle) clone.
Definition at line 564 of file KinematicParcel.H.
References particle< Type >::Clone().

Return a (basic particle) clone.
Definition at line 572 of file KinematicParcel.H.
References particle< Type >::Clone(), and mesh.

|
inline |
Return const access to active flag.
Definition at line 189 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::active_.
|
inline |
Return const access to type id.
Definition at line 196 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::typeId_.
|
inline |
Return const access to number of particles.
Definition at line 203 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::nParticle_.
|
inline |
Return const access to diameter.
Definition at line 210 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d_.
Referenced by KinematicParcel< ParcelType >::areaP(), KinematicParcel< ParcelType >::areaS(), KinematicParcel< ParcelType >::Eo(), KinematicParcel< ParcelType >::Re(), KinematicParcel< ParcelType >::volume(), and KinematicParcel< ParcelType >::We().

|
inline |
Return const access to target diameter.
Definition at line 217 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::dTarget_.
|
inline |
Return const access to velocity.
Definition at line 224 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::U_.
Referenced by KinematicParcel< ParcelType >::Eo(), MPPICParcel< ParcelType >::move(), KinematicParcel< ParcelType >::Re(), and KinematicParcel< ParcelType >::We().

|
inline |
Return const access to density.
Definition at line 231 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::rho_.
Referenced by KinematicParcel< ParcelType >::Eo().

|
inline |
Return const access to the age.
Definition at line 238 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::age_.
|
inline |
Return const access to time spent in turbulent eddy.
Definition at line 245 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::tTurb_.
|
inline |
Return const access to turbulent velocity fluctuation.
Definition at line 252 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::UTurb_.
|
inline |
Return const access to correction velocity.
Definition at line 301 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::UCorrect_.
|
inline |
Set active flag to the specified state.
Definition at line 259 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::active_.
|
inline |
Return access to type id.
Definition at line 266 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::typeId_.
|
inline |
Return access to number of particles.
Definition at line 273 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::nParticle_.
|
inline |
Return access to diameter.
Definition at line 280 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d_.
|
inline |
Return access to target diameter.
Definition at line 287 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::dTarget_.
|
inline |
Return access to velocity.
Definition at line 294 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::U_.
|
inline |
Return access to density.
Definition at line 315 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::rho_.
|
inline |
Return access to the age.
Definition at line 322 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::age_.
|
inline |
Return access to time spent in turbulent eddy.
Definition at line 329 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::tTurb_.
|
inline |
Return access to turbulent velocity fluctuation.
Definition at line 336 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::UTurb_.
|
inline |
Return access to correction velocity.
Definition at line 308 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::UCorrect_.
|
inline |
Cell owner mass.
Definition at line 344 of file KinematicParcelI.H.

|
inline |
Particle mass.
Definition at line 353 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::rho_, and KinematicParcel< ParcelType >::volume().
Referenced by KinematicParcel< ParcelType >::momentOfInertia().


|
inline |
Particle moment of inertia around diameter axis.
Definition at line 360 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d_, KinematicParcel< ParcelType >::mass(), and Foam::sqr().

|
inline |
Particle volume.
Definition at line 367 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d_.
Referenced by KinematicParcel< ParcelType >::mass().

|
inlinestatic |
Particle volume for a given diameter.
Definition at line 374 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d(), Foam::constant::mathematical::pi(), and Foam::pow3().

|
inline |
Particle projected area.
Definition at line 381 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d_.
|
inlinestatic |
Projected area for given diameter.
Definition at line 388 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::areaS(), and KinematicParcel< ParcelType >::d().

|
inline |
Particle surface area.
Definition at line 395 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d_.
Referenced by KinematicParcel< ParcelType >::areaP().

|
inlinestatic |
Surface area for given diameter.
Definition at line 402 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d(), and Foam::constant::mathematical::pi().

|
inline |
Reynolds number.
Definition at line 410 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d_, td(), and KinematicParcel< ParcelType >::U_.

|
inlinestatic |
Reynolds number for given conditions.
Definition at line 420 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d(), Foam::mag(), Foam::max(), and KinematicParcel< ParcelType >::U().

|
inline |
Weber number.
Definition at line 434 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d_, sigma(), td(), and KinematicParcel< ParcelType >::U_.

|
inlinestatic |
Weber number for given conditions.
Definition at line 445 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d(), Foam::magSqr(), Foam::max(), sigma(), and KinematicParcel< ParcelType >::U().

|
inline |
Eotvos number.
Definition at line 459 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d_, KinematicParcel< ParcelType >::rho_, sigma(), td(), and KinematicParcel< ParcelType >::U_.

|
inlinestatic |
Eotvos number for given conditions.
Definition at line 470 of file KinematicParcelI.H.
References KinematicParcel< ParcelType >::d(), g, Foam::mag(), Foam::max(), KinematicParcel< ParcelType >::rho(), sigma(), Foam::sqr(), and KinematicParcel< ParcelType >::U().

| void setCellValues | ( | TrackCloudType & | cloud, |
| trackingData & | td | ||
| ) |
Set cell values.
Definition at line 39 of file KinematicParcel.C.
References coordinates(), Foam::ensightOutput::debug, Foam::endl(), Foam::nl, td(), and WarningInFunction.

| void calcDispersion | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt | ||
| ) |
Apply dispersion to the carrier phase velocity and update.
parcel turbulence parameters
Definition at line 69 of file KinematicParcel.C.
References td().

| void cellValueSourceCorrection | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt | ||
| ) |
Correct cell values using latest transfer information.
Definition at line 112 of file KinematicParcel.C.
References td().

| void calc | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt | ||
| ) |
Update parcel properties over the time interval.
Definition at line 125 of file KinematicParcel.C.
References Foam::Re(), Su, td(), and Foam::Zero.

| void calcUCorrection | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt | ||
| ) |
Correct U following MP-PIC sub-models.
Definition at line 90 of file KinematicParcel.C.
References p, and Foam::Zero.
| bool move | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | trackTime | ||
| ) |
Move the parcel.
Definition at line 301 of file KinematicParcel.C.
References f(), Foam::mag(), Foam::max(), maxCo, Foam::min(), p, s, and td().

| bool hitPatch | ( | TrackCloudType & | cloud, |
| trackingData & | td | ||
| ) |
Overridable function to handle the particle hitting a patch.
Executed before other patch-hitting functions
Definition at line 396 of file KinematicParcel.C.
References polyPatch::constraintType(), DimensionedField< Type, GeoMesh >::mesh(), p, pp(), and td().

| void hitProcessorPatch | ( | TrackCloudType & | cloud, |
| trackingData & | td | ||
| ) |
Overridable function to handle the particle hitting a.
processorPatch
Definition at line 440 of file KinematicParcel.C.
References td().

| void hitWallPatch | ( | TrackCloudType & | cloud, |
| trackingData & | td | ||
| ) |
Overridable function to handle the particle hitting a wallPatch.
Definition at line 452 of file KinematicParcel.C.
|
virtual |
Transform the physical properties of the particle.
according to the given transformation tensor
Definition at line 462 of file KinematicParcel.C.
References Foam::T(), and Foam::transform().

|
virtual |
Transform the physical properties of the particle.
according to the given separation vector
Definition at line 472 of file KinematicParcel.C.
|
static |
Read.
|
static |
Write.
| void writeProperties | ( | Ostream & | os, |
| const wordRes & | filters, | ||
| const word & | delim, | ||
| const bool | namesOnly = false |
||
| ) | const |
Write individual parcel properties to stream.
Definition at line 261 of file KinematicParcelIO.C.
References os(), and writeProp.

|
static |
Read particle fields as objects from the obr registry.
Definition at line 293 of file KinematicParcelIO.C.
References Foam::constant::universal::c, p, rho, and U.
|
static |
Write particle fields as objects into the obr registry.
Definition at line 338 of file KinematicParcelIO.C.
References Foam::constant::universal::c, p, rho, and U.
| const Foam::vector calcVelocity | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt, | ||
| const scalar | Re, | ||
| const scalar | mu, | ||
| const scalar | mass, | ||
| const vector & | Su, | ||
| vector & | dUTrans, | ||
| scalar & | Spu | ||
| ) | const |
Definition at line 178 of file KinematicParcel.C.
References Foam::meshTools::constrainDirection(), mesh, Foam::constant::physicoChemical::mu, p, Foam::Re(), forceSuSp::Sp(), Su, forceSuSp::Su(), and td().

| void readFields | ( | CloudType & | c | ) |
Definition at line 97 of file KinematicParcelIO.C.
References Foam::constant::universal::c, p, Foam::readFields(), rho, and U.

| void writeFields | ( | const CloudType & | c | ) |
Definition at line 203 of file KinematicParcelIO.C.
References Foam::constant::universal::c, p, rho, U, regIOobject::write(), and Foam::writeFields().

|
friend |
|
static |
Size in bytes of the fields.
Definition at line 97 of file KinematicParcel.H.
|
protected |
Active flag - tracking inactive when active = false.
Store as label for data alignment, but only has bool states
Definition at line 392 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::active().
|
protected |
Parcel type id.
Definition at line 397 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::typeId().
|
protected |
Number of particles in Parcel.
Definition at line 402 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::nParticle().
|
protected |
Diameter [m].
Definition at line 407 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::areaP(), KinematicParcel< ParcelType >::areaS(), KinematicParcel< ParcelType >::d(), KinematicParcel< ParcelType >::Eo(), KinematicParcel< ParcelType >::momentOfInertia(), KinematicParcel< ParcelType >::Re(), KinematicParcel< ParcelType >::volume(), and KinematicParcel< ParcelType >::We().
|
protected |
Target diameter [m].
Definition at line 412 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::dTarget().
|
protected |
Velocity of Parcel [m/s].
Definition at line 417 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::Eo(), KinematicParcel< ParcelType >::Re(), KinematicParcel< ParcelType >::U(), and KinematicParcel< ParcelType >::We().
|
protected |
Density [kg/m3].
Definition at line 422 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::Eo(), KinematicParcel< ParcelType >::mass(), and KinematicParcel< ParcelType >::rho().
|
protected |
Age [s].
Definition at line 427 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::age().
|
protected |
Time spent in turbulent eddy [s].
Definition at line 432 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::tTurb().
|
protected |
Turbulent velocity fluctuation [m/s].
Definition at line 437 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::UTurb().
|
protected |
Velocity correction due to collisions MPPIC [m/s].
Definition at line 442 of file KinematicParcel.H.
Referenced by KinematicParcel< ParcelType >::UCorrect().