CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   remove particle at interface fluent udf (https://www.cfd-online.com/Forums/fluent/233747-remove-particle-interface-fluent-udf.html)

Joonwoo February 10, 2021 01:42

remove particle at interface fluent udf
 
Hello,

I want to simulate the bubble column problem (VOF+DPM). In the simulation, I want to eliminate the bubble at the interface. Thus, I should make a udf in fluent. From the other question, I already made a udf as follows.

#include "udf.h"
#include "dpm.h"

DEFINE_DPM_SCALAR_UPDATE(stream_index, c, t, initialize, p)
{
#if PARALLEL

Thread *phase_t = THREAD_SUB_THREAD(t, 1);

if (C_VOF(c, phase_t) >= 0.5)
p->stream_index = -1;

#endif
}

This function is compiled well, but the problem is not working in my simulation. I want to eliminate each bubble at the interface. However, each bubble is deleted at outlet. How can I define the remove particle at interface using udf?

Best regards,
Joonwoo


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