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

[bingo_chatbox]