CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF-DPM (http://www.cfd-online.com/Forums/fluent/30149-udf-dpm.html)

Zhenan Li August 8, 2002 11:54

UDF-DPM
 
Hi,

I am using UDF to define the body force for the particles in DPM.

DEFINE_DPM_BODY_FORCE(particle_body_force, p, i)

How can I get the current location of a particle in this macro?

Can I use C_CENTROID(x, c, t)?

Thanks,

Keil August 8, 2002 20:38

Re: UDF-DPM
 
Hi,

C_CENTROID returns a cell center location around a particle.

About a particle location , you have to use this one "p->state.pos[0]".

This zero is position vector.

Regards,

Keil

Zhenan Li August 9, 2002 09:21

Re: UDF-DPM
 
Hi,

Keil,

Thank you very much!


All times are GMT -4. The time now is 07:18.