|
[Sponsors] |
November 26, 2011, 05:58 |
Particle tracking help
|
#1 |
New Member
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 15 |
Hello,
I am working on a project in which particle tracking is needed. I have a UDS that stores body forces, so the force is spacial. The problem is how to adjust body force on each particle in space in the code. I used below code: Code:
DEFINE_DPM_BODY_FORCE(body_force,p,i) // returns ACCELERATION { real bforce; real Fx, Fy; cell_t c; Thread *t; Domain *domain; domain = Get_Domain(1); thread_loop_c(t,domain) { begin_c_loop_all(c,t) { if (P_CELL(p) == c) {Fx = C_UDSI(c,t,0); Fy = C_UDSI(c,t,1); break;} } end_c_loop_all(c,t) } if (i==0) // x direction bforce = (1.0/P_MASS(p)) * ( Fx ); else if (i==1) // y direction bforce = (1.0/P_MASS(p)) * ( Fy ); return bforce; } Is there any way to obtain value of UDS at the particle position? |
|
November 29, 2011, 12:04 |
|
#2 |
New Member
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 15 |
Does anyone know about particle tracking macros?
Last edited by ali hemmati; November 29, 2011 at 17:33. |
|
Tags |
body force, dpm, particle tracking, uds |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blood Damage Modelling via Particle Tracking in a Centrifugal Heart Pump | scatman | CFX | 7 | January 8, 2018 01:59 |
massless particle tracking problem | Renold | FLUENT | 0 | January 26, 2011 15:23 |
Particle Tracking for ion | Jun | CFX | 2 | August 31, 2010 09:19 |
Number density tracking rather than particle tracking | Rebecca | Main CFD Forum | 2 | April 23, 2009 13:52 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |