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

Particle tracking help

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2011, 05:58
Question Particle tracking help
  #1
New Member
 
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 15
ali hemmati is on a distinguished road
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;
}
in which "p" has "Tracked_Particle *" type. The code does not recognize P_CELL(p). I think that P_CELL(p) is available if "p" is a "Particle *" not "Tracked_Particle *".

Is there any way to obtain value of UDS at the particle position?
ali hemmati is offline   Reply With Quote

Old   November 29, 2011, 12:04
Default
  #2
New Member
 
Ali
Join Date: Mar 2011
Posts: 27
Rep Power: 15
ali hemmati is on a distinguished road
Does anyone know about particle tracking macros?

Last edited by ali hemmati; November 29, 2011 at 17:33.
ali hemmati is offline   Reply With Quote

Reply

Tags
body force, dpm, particle tracking, uds


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
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


All times are GMT -4. The time now is 16:06.