mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Adding radius .r() function.
This commit is contained in:
@ -438,6 +438,9 @@ public:
|
||||
//- Particle angular velocity
|
||||
inline vector omega() const;
|
||||
|
||||
//- Particle radius
|
||||
inline scalar r() const;
|
||||
|
||||
//- Particle volume
|
||||
inline scalar volume() const;
|
||||
|
||||
|
||||
@ -445,6 +445,13 @@ Foam::InteractingKinematicParcel<ParcelType>::omega() const
|
||||
}
|
||||
|
||||
|
||||
template <class ParcelType>
|
||||
inline Foam::scalar Foam::InteractingKinematicParcel<ParcelType>::r() const
|
||||
{
|
||||
return 0.5*d_;
|
||||
}
|
||||
|
||||
|
||||
template <class ParcelType>
|
||||
inline Foam::scalar Foam::InteractingKinematicParcel<ParcelType>::volume() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user