CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF in DPM+Eulerian multiphase (https://www.cfd-online.com/Forums/fluent-udf/152921-udf-dpm-eulerian-multiphase.html)

CeesH May 12, 2015 10:35

UDF in DPM+Eulerian multiphase
 
dear all,

I'm writing a DPM_SCALAR_UPDATE to use in an Euler-Euler-Lagrange simulation. Several terms in my UDF reference liquid properties, and because of the multiphase domain I assume I have to call the proper phase thread in order for the UDF to work. However, I'm a bit lost on how to do that.

For example, when I use DPM in combination with a single liquid phase, I can use
Code:

C_R(c,tr)
to call the liquid density. How do I get the proper tr in multiphase?

Thanks in advance!

Best regards,
Cees

CeesH May 13, 2015 04:28

THREAD_SUB_THREAD(t,0) - got it ;)

pakk May 15, 2015 03:02

And to be more complete for other people who might find this using google, since you mention DPM: use P_CELL_THREAD(p) to find the cell thread of the cell that the particle is currently in, so it will be:

THREAD_SUB_THREAD(P_CELL_THREAD(p),0);

HyperNova June 27, 2015 04:38

Hi friends,
is it possible to use DPM with Eulerian multiphase together? i am modelling bubble plume, for bubbles i am using DPM, for the reservoir i used to use VOF(water and air above it) but eulerian can solve energy equation for both phases.


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