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 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!Â