mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Adding omega (angular velocity) helper function
This commit is contained in:
@ -241,6 +241,8 @@ bool Foam::InteractingKinematicParcel<ParcelType>::move(TrackData& td)
|
||||
|
||||
p.U() += 0.5*deltaT*p.f()/p.mass();
|
||||
|
||||
pi_ += 0.5*deltaT*tau_;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@ -34,6 +34,9 @@ Description
|
||||
- turbulent dispersion
|
||||
- wall interactions
|
||||
|
||||
Includes many-body collisions and rotational motion. Only
|
||||
spherical particles currently supported.
|
||||
|
||||
SourceFiles
|
||||
InteractingKinematicParcelI.H
|
||||
InteractingKinematicParcel.C
|
||||
@ -432,6 +435,9 @@ public:
|
||||
//- Particle moment of inertia around diameter axis
|
||||
inline scalar momentOfInertia() const;
|
||||
|
||||
//- Particle angular velocity
|
||||
inline vector omega() const;
|
||||
|
||||
//- Particle volume
|
||||
inline scalar volume() const;
|
||||
|
||||
|
||||
@ -437,6 +437,14 @@ Foam::InteractingKinematicParcel<ParcelType>::momentOfInertia() const
|
||||
}
|
||||
|
||||
|
||||
template <class ParcelType>
|
||||
inline Foam::vector
|
||||
Foam::InteractingKinematicParcel<ParcelType>::omega() const
|
||||
{
|
||||
return pi_/momentOfInertia();
|
||||
}
|
||||
|
||||
|
||||
template <class ParcelType>
|
||||
inline Foam::scalar Foam::InteractingKinematicParcel<ParcelType>::volume() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user