|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 14 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 14 ![]() |
Does anyone know about particle tracking macros?
Last edited by ali hemmati; November 29, 2011 at 16:33. |
|
![]() |
![]() |
![]() |
Tags |
body force, dpm, particle tracking, uds |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blood Damage Modelling via Particle Tracking in a Centrifugal Heart Pump | scatman | CFX | 7 | January 8, 2018 00:59 |
massless particle tracking problem | Renold | FLUENT | 0 | January 26, 2011 14:23 |
Particle Tracking for ion | Jun | CFX | 2 | August 31, 2010 08:19 |
Number density tracking rather than particle tracking | Rebecca | Main CFD Forum | 2 | April 23, 2009 12:52 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 01:29 |