|
[Sponsors] |
May 12, 2015, 09:59 |
UDF for modified drag force
|
#1 |
New Member
Burak EKMEKÇİ
Join Date: Mar 2013
Posts: 9
Rep Power: 13 |
Hi all;
I am trying to obtain a udf that consist of real Turbulence variable (TKE or Turbulence intensity or etc). Main aim is to change Drag Force. A sample is below ; #include "udf.h" DEFINE_DPM_DRAG(particle_drag_force,Re,p) { real w, drag_force; if (Re < 0.01) { drag_force=18.0; return (drag_force); } else if (Re < 20.0) { w = log10(Re); drag_force = 18.0 + 2.367*pow(Re,0.82-0.05*w) ; return (drag_force); } else /* Note: suggested valid range 20 < Re < 260 */ { drag_force = 18.0 + 3.483*pow(Re,0.6305) ; return (drag_force); } } Is it possible to add real TKE value into to UDF ? or how can ı do ? For example when ı change codes like ; else if (Re < 20.0) { w = log10(TKE); drag_force = 18.0 + 2.367*pow(Re,0.82-0.05*w) ; return (drag_force); It does not work. Thanks for your helps. Best regards! |
|
May 17, 2015, 10:16 |
|
#2 |
New Member
Burak EKMEKÇİ
Join Date: Mar 2013
Posts: 9
Rep Power: 13 |
Any commend ?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[URGENT] Drag Force UDF in Power-Law Fluid | ali hemmati | Fluent UDF and Scheme Programming | 2 | June 13, 2017 04:37 |
Force vectors for drag during sweeping motion | aamer | FLUENT | 0 | April 18, 2011 09:17 |
drag coefficient & drag force | abhishek.mnit | FLUENT | 0 | April 30, 2009 00:48 |
DEFINE_CG_MOTION and pressure force | Teo Fumagalli | FLUENT | 0 | April 11, 2008 11:25 |
Airfoil Drag Force | wowakai | Main CFD Forum | 3 | October 13, 1998 20:27 |