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/)
-   -   turbulent energy dissipation rate (https://www.cfd-online.com/Forums/fluent-udf/248097-turbulent-energy-dissipation-rate.html)

whydi February 23, 2023 10:20

turbulent energy dissipation rate
 
Hello,


i have a hopefully simple question for using UDF.
I try to implement a new coalescence kernel for PBM.
This contains the turbulent energy dissipation rate epsilon.
I am using:


eps = C_D(cell, tm);


turbulence model is RNG k-epsilon.


I get a SIGSEGV
The fl process could not be started.


I know its about epsilon because error does not occur when using eps = const.
what do i have to consider? Do i have to save epsilon?

Thank you.

whydi February 24, 2023 05:05

Update:


As i told I am using RNG k-epsilon model, where epsilon should be saved.
What i did not considered is the "dispersed" option, which is only calculating epsilon for primary liquid phase.



So I changed my code in Aggregation kernel into:


epsi = C_D(cell, tp)
with:
*/ Thread *tp as primary liquid phase */



Additional information: Theory Guide uses epsilon(liquid phase) for prince&blanch aggregation kernel for bubbles as well.


No error occurs!

Does anyone know if this approach is valid?


thanks


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