call function inside loop
Hi,
I am trying to call a user-defined function inside a loop, varying a parameter, generate and save mesh inside the function, using the varying parameter value. 1) One problem is that the value of the parameter would not update inside the function. 2) The second issue is that a few errors like: "Error : OpenCASCADE volume with tag 6 already exists" are thrown. It seems the geometry labels are retained from the previous loop. I was wondering how should I reset the function variables?
Attached is the geo file. I would appreciate it if you let me know how I could do this.
Best, Nilou func_test.geo