problem with writing UDF for dpm
Hi,
is there anyone who knows that how I can understand whether a cell is host of a particle in dpm model? thank you so much in advance . |
Hi,
if (c == P_CELL(p)) .... Bests, |
hi amir,
Thank you for your respond, the problem is I do not have the "p" (pointer). I have to compute gradient of a certain normal tension at the point that particle is. but for doing that I need to calculate this normal tension all over the domain, and this normal tension depends on particle volume fraction in each cell. then I can calculate its gradient. So, first I have to calculate the normal tension by using the define adjust macro which does not pass the particle pointers. do you think is there another way to find whether there is any particle in a cell? |
Dear Massoud,
This is not good idea to use this procedure; it's better to use a DPM macro in order to convert lagrangian data to eulerian one (something like DEFINE_DPM_SCALAR_UPDATE or ...) for this purpose you can use UDMs as an extra memory to store particle concentration; in next step, use DEFINE_ADJUST macro to evaluate new properties. Bests, |
Dear amir,
Thank you again, could you tell me how can I calculate particle concentration in each cell? if I can do that my problem would be solved. Cheers |
Quote:
Experimental measurements and numerical simulations of particle transport and distribution in ventilated rooms; Z. Zhang, Q. Chen; Atmospheric Environment 40 (2006) 3396–3408 Use Eq.7 .... Bests, |
dear amir,
I really appreciate you taking the time to answer my questions, CHeers |
All times are GMT -4. The time now is 09:48. |