Author Topic: DPM in FLUENT  (Read 4959 times)

Offline moloy_kb

  • Newbie
  • *
  • Posts: 19
  • Reputation: +0/-0
  • Searching for solution
    • View Profile
DPM in FLUENT
« on: March 14, 2012, 05:24:09 AM »
Advertisement
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.
Please help me in this regard.

Offline william

  • Full Member
  • ***
  • Posts: 159
  • Reputation: +15/-0
  • Know it, share it.
    • View Profile
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.

Offline moloy_kb

  • Newbie
  • *
  • Posts: 19
  • Reputation: +0/-0
  • Searching for solution
    • View Profile
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.