CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

HELP! HELP! For udf of particle body force!!!!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2007, 04:10
Default HELP! HELP! For udf of particle body force!!!!
  #1
zhaoh
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!!

  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Force can not converge colopolo CFX 13 October 4, 2011 22:03
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29
Body force at the cell face Souviktor Fluent UDF and Scheme Programming 0 March 31, 2009 08:54
Help: UDF of "particle body force" !!! zhaoh FLUENT 3 January 16, 2007 20:17
particle body force and scalar update. Kasper Skriver FLUENT 1 March 21, 2006 09:55


All times are GMT -4. The time now is 23:27.