CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   udf about particle concentration--who can help me? (http://www.cfd-online.com/Forums/fluent/43366-udf-about-particle-concentration-who-can-help-me.html)

zhaoh January 16, 2007 21:12

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!

suijth January 17, 2007 12:46

Re: udf about particle concentration--who can help
 
C_STORAGE_R(c,t,SV_DPMS_CONCENTRATION)

Hi again,

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;

best wishes

Sujith



All times are GMT -4. The time now is 21:10.