### Author Topic: DPM in FLUENT  (Read 1787 times)

#### moloy_kb

• Newbie
• Posts: 19
• Reputation: +0/-0
• Searching for solution
##### DPM in FLUENT
« on: March 14, 2012, 05:24:09 AM »
Hi,
I want to calculate the particle interaction force using DPM. For this force calculation I have to know the position of each and every particle at any particular step. Suppose I want to calculate the force on 'P' th particle, then that force is dependent on position of each particle, like
Force_on-Pth_part=Function(Position-part1+Position-part-2+.....+Position-part-N), where we assume that there are 'N' no of particles are injected.
The entire calculation has to be repeated for each particle that are being tracked.

#### william

• Full Member
• Posts: 151
• Reputation: +14/-0
• Know it, share it.
##### Re: DPM in FLUENT
« Reply #1 on: March 14, 2012, 09:16:20 AM »
To get particle position using UDF use:

Tracked_Particle *p;

int x,y,z;

x=p->state.pos[0];    // x component of the particle position
y=p->state.pos[1];   //y component of the particle position
z=p->state.pos[2];   //z component of the particle position

You may need to run transient particle tracking because in steady tracking each particle is tracked separately.

#### moloy_kb

• Newbie
• Posts: 19
• Reputation: +0/-0
• Searching for solution
##### Re: DPM in FLUENT
« Reply #2 on: March 14, 2012, 11:04:12 AM »
Thanks for the reply. But, that will give the position of one particle and I need to know the position of all the particles at a time and also to store all those, so that further calculation can be done.