|
[Sponsors] |
HELP! HELP! For udf of particle body force!!!! |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 5, 2007, 05:10 |
HELP! HELP! For udf of particle body force!!!!
|
#1 |
Guest
Posts: n/a
|
Dear all This is my UDF about particle body force.
#include "udf.h" #include "dpm.h" #include "surf.h" #define C1 0.00000000000000000000004 #define C2 0.00000000002 #define C3 0.000000000000005 DEFINE_DPM_BODY_FORCE(p_b_force,p,i) { real conc; real bforce; real acc; cell_t c=RP_CELL(&(p->cCell)); Thread *t=RP_THREAD(&(p->cCell)); if(i==1) acc=0.0; else if(i==0) {conc = C_STORAGE_R(c,t,SV_DPMS_CONCENTRATION); bforce=(C1*conc*P_POS(p)[0]*P_POS(p)[0]/P_MASS(p)+C2*P_POS(p)[0]+C3/(P_POS(p)[0]*P_POS(p)[0])); acc=bforce/P_MASS(p); } return (acc); } I want to know whether does it forced on every particle in the gas flow field or it just forced on injection particles in the injecting inlet? If so, How to add the loops in the UDF and give the force on every particle in the flow field but not the injecting inlet? Thank you so much!! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Force can not converge | colopolo | CFX | 13 | October 4, 2011 23:03 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |
Body force at the cell face | Souviktor | Fluent UDF and Scheme Programming | 0 | March 31, 2009 09:54 |
Help: UDF of "particle body force" !!! | zhaoh | FLUENT | 3 | January 16, 2007 21:17 |
particle body force and scalar update. | Kasper Skriver | FLUENT | 1 | March 21, 2006 10:55 |