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, |
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 |
Re: UDF-DPM
Hi,
Keil, Thank you very much! |
All times are GMT -4. The time now is 21:03. |