|
[Sponsors] |
January 22, 2007, 07:46 |
UDF about particle concentration?????????
|
#1 |
Guest
Posts: n/a
|
Hi Sujith
Thank you for your response. I have spent a long time on finding the example and method of how to using the concentration micros-- C_STORAGE_R(c,t,SV_DPMS_CONCENTRATION). But I haven`t find no help document of UDF.I think I should know the usage of this micros and its means. Can you help me for giving an example or relative help document. Thank you so much! #include "udf.h" #include "dpm.h" #include "surf.h" #define C1 0.0029 #define C2 0.03232 DEFINE_DPM_BODY_FORCE(p_b_force,p,i) { real bforce; cell_t c = RP_CELL(&(p->cCell)); Thread *t = RP_THREAD(&(p->cCell)); if(i==1) bforce=0; else if(i==0) bforce=C1*P_POS(p)[0]*P_POS(p)[0]* C_STORAGE_R(c,t,SV_DPMS_CONCENTRATION)+C2*P_POS(p)[0]; ???? return (bforce/P_MASS(p)); } |
|
January 23, 2007, 14:23 |
Re: UDF about particle concentration?????????
|
#2 |
Guest
Posts: n/a
|
I am not sure where this is the exact usage...
you can define a variable and store dpm conc and then use it ------- ------ DEFINE_DPM_BODY_FORCE(p_b_force,p,i) { real conc; cell_t c = RP_CELL(&(p->cCell)); Thread *t = RP_THREAD(&(p->cCell)); conc = C_STORAGE_R(c,t,SV_DPMS_CONCENTRATION); bforce= f(conc,x,y); return bforce/pmass; } --- are you getting any error when using this way? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF to Access Wall Normal Concentration Gradient | Daniel Tanner | Fluent UDF and Scheme Programming | 4 | February 18, 2015 15:35 |
Problem with a simple UDF to calculate cell-averaged particle values | kmayank | FLUENT | 1 | January 18, 2011 02:40 |
UDF for Particle reaction and DPM_Property | saifulraju | ANSYS | 0 | September 22, 2010 08:24 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |
udf about particle concentration--who can help me? | zhaoh | FLUENT | 1 | January 17, 2007 12:46 |