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 viscosity for transitional SST model in ANSYS Fluent (https://www.cfd-online.com/Forums/fluent-udf/252316-turbulent-viscosity-transitional-sst-model-ansys-fluent.html)

Bovinille October 11, 2023 13:19

Turbulent viscosity for transitional SST model in ANSYS Fluent
 
1 Attachment(s)
Hello all,
How can one access the turbulent viscosity for transitional SST model in a UDF for further calculations? This is needed in my investigation to estimate the turbulent diffusivity for later solving a specie transport equation.
Although the turbulent viscosity is visible in the GUI, I have tried the macro C_MU_T(c,t) in a User Define Memory (UDM) but it doesn’t work as seen the attached picture. It seems this macro only works for the k-e and k-w models.
I tried storing in UDMs other variables such as turbulent kinetic energy (with C_K(c,t)), specific dissipation rate (with C_O(c,t)) and strain rate magnitude (with C_STRAIN_RATE_MAG(c,t)), to calculate it according to Menter’s work. However, only the latter macro works as the others (i.e., C_O(c,t) and C_STRAIN_RATE_MAG(c,t)) didn’t work.
Also, I can create a custom field function for turbulent viscosity in the GUI but how does one access this within a UDF? Is there way to pass custom field functions into UDM for UDF calculations?
Thanks, and I look forward to hearing from you.


All times are GMT -4. The time now is 15:57.