Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation Fluids species gradient calculation UDF error — can’t find the function Reply To: species gradient calculation UDF error — can’t find the function

Rob
Forum Moderator

Check you're retaining all data, using the TUI command. Fluent doesn't keep all of the gradient values between iterations for RAM/efficiency reasons. 

/solve/set/advanced/retain-temporary-solver-mem   

Also, try running an iteration/timestep before running the UDF commands, not all data is available following initialisation, and you are messing with scalar gradients! 

[bingo_chatbox]