mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: KinematicParcel. Transforming f, angularMomentum and torque in
transformProperties.
This commit is contained in:
@ -449,7 +449,14 @@ template<class ParcelType>
|
||||
void Foam::KinematicParcel<ParcelType>::transformProperties(const tensor& T)
|
||||
{
|
||||
Particle<ParcelType>::transformProperties(T);
|
||||
|
||||
U_ = transform(T, U_);
|
||||
|
||||
f_ = transform(T, f_);
|
||||
|
||||
angularMomentum_ = transform(T, angularMomentum_);
|
||||
|
||||
torque_ = transform(T, torque_);
|
||||
}
|
||||
|
||||
|
||||
@ -468,4 +475,3 @@ void Foam::KinematicParcel<ParcelType>::transformProperties
|
||||
#include "KinematicParcelIO.C"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
|
||||
Reference in New Issue
Block a user