Guilin Sun
Ansys Employee

not sure how did you do the sweep.

If it is from script, and you already got the sweep result,you can check the result to know the dimensions.

if it is from sweep object, and the result should be in a matrix of (nf,nwidth, nlength) after extracting the result from getsweepresult, where nf is the number of frequency point, nwidth and nlength are the sweep points for width and length (you may check their lengths with matrix dimensions and make sure they match. do not use the same number of points in order to better distinguish them).

then you can plot

fn=1; for the first frequency point. you can change the number for different frequencies.

image(width,length,pinch(result(fn,:,:)),"width","length","conversion efficiency");

please read getsweepresult - Script command for more information.

Please note:

1: "length" is a script command, you cannot directly use it. I just use it as isslutration. Please use other name for this variable.

2: result is the matrix for your conversion data, since it should be a 3D matrix.

3: your script seems to get the conversion (effect) at one pair of width and length.

If you are using script to do the sweep, please do not plot at each point. otherwise there will be too many figures and sometimes it can freeze your computer, due to display issue (it needs graphic memory).

Please try.