|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Joaquín Neira
Join Date: Oct 2017
Posts: 38
Rep Power: 9 ![]() |
Hello,
I am trying to create a new Magnus force for particles. for this purpose I need to access the angular velocity in CollidingParcelI.H: Code:
template<class ParcelType> inline Foam::vector Foam::CollidingParcel<ParcelType>::omega() const { return angularMomentum_/this->momentOfInertia(); } Code:
template<class CloudType> Foam::forceSuSp Foam::MagnusForce<CloudType>::calcCoupled ( const typename CloudType::parcelType& p, const scalar dt, const scalar mass, const scalar Re, const scalar muc const vector omega ) const { forceSuSp value(Zero, 0.0); vector curlUc = curlUcInterp().interpolate(p.coordinates(), p.currentTetIndices()); scalar Cl = this->Cl(p, curlUc, Re, muc); value.Su() = Cl*0.75*mass*(omega^(p.U()-p.Uc())); Info << "Calculate Lift force" << endl; return value; } When I delete all the "omega's" the code works correctly (but obviously it doesnt work as needed), so I guess the omega call is not okay Last edited by cojua8; December 11, 2017 at 12:09. Reason: more clear title |
|
![]() |
![]() |
![]() |
Tags |
angular velocity, magnus |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate swirl velocity or angular velocity in a in-cylinder flow analysis us | tgsankar | Main CFD Forum | 2 | April 26, 2017 17:55 |
Accessing parcel angular velocity from particel force class | slint | OpenFOAM Programming & Development | 1 | September 27, 2016 13:46 |
Relation between Swirl flow and angular velocity | padmanathan | FLUENT | 0 | May 4, 2011 08:18 |
Angular velocity | Haritz | COMSOL | 0 | March 19, 2006 14:59 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |