We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation Fluids Problem with the UDF and the default turbulent viscosity of Realizable k-e Reply To: Problem with the UDF and the default turbulent viscosity of Realizable k-e

Rob
Forum Moderator

I'm assuming PHI is in radians? Otherwise the code doesn't look to have any obvious problems. I'd favour more intenting and comments for future reference and I'd tend to avoid 2-3 character variables where possible in case anything overlaps with a Fluent value. 

I've not had a detailed look, and won't be doing any debugging. If you plot contours, lines  etc are the results off by an offset, factor or just random differences?