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 to get actual iteration in Scheme langage like N_ITER in UDF Reply To: to get actual iteration in Scheme langage like N_ITER in UDF

Federico
Ansys Employee

Actually, you're right! (client-inquire-iteration) does get the iteration number. 

You can do something like:

(make-new-rpvar 'n_iter (client-inquire-iteration) 'integer) ; this creates the rpvar n_iter. You will need to call this once

(rpsetvar 'n_iter (client-inquire-iteration)) ; this sets the value of n_iter to the iteration number. You will need to call this each time before using n_iter