udf about particle concentration--who can help me?
hi: I am researching on particle.I want to write a UDF about particle body force. But the force is relative to particle concentration.I cann`t find the micros of concentration. Who can help to compile the particle concentration. How to write particle concentration of every cell in computational domainab. Could you share an example about the program of the particle concentration with me.
Thanks you so much! Best wishes!
Re: udf about particle concentration--who can help
the procedure is as follows;
1. use DEFINE_DPM_BODY_FORCE, this will loop over all particles.
2. In side the DEFINE_DPM_BODY_FORCE , find the cell and cell thread in which particle is located, macros(RP_CELL(&(p->cCell)) )are there in your previous thread http://www.cfd-online.com/Forum/fluent.cgi?read=45016
3. provide the cell and cell thread to macro C_STORAGE_R(c,t,SV_DPMS_CONCENTRATION) and get concentration;
4. calculate the body force and return;
|All times are GMT -4. The time now is 18:17.|