Guilin Sun
Ansys Employee

 

”instead of writing ‘radius_bottom=1’ I wrote it ‘radius_bottom=r’ “

Unfortunately, the script does not work that way. The assignment must be either a numerical value or a character (need to be quoted). If you want to let the radius_bottom be a variable, you will need to define it in the variable panel:

Please note that the scipt uses SI unit. So when you specify zspan=0.7, it means zspan is 0.7 meter. if it is micron, you will need to use zspan=0.7e-6.

Please modify your script.