May 13, 2022 at 8:33 am
Ansys Employee
I think the question is about constructing a non axially symmetric phase target. If you refer to the phase equation being solved for here, you can see that is actually axially symmetric because you can write it as a function of r^2. For that reason it is sufficient to solve it along y=0,.


for (n =1:length(x_mask(n)){
for(m = 1:length(y_mask(m)){
...
phase_target(m,n) = f ( x_mask(n),y_mask(m)) ;
...
}}
Next when you create the radius mask, this would need to be a 2D array, but you could use the 2D version of interp - Script command.
Finally, adding the pillars would no longer be cylindrically symmetric, so again you could make this a two level loop of x and y instead of just r.
I hope this answers your question. Let us know if you have any trouble with the details.
Best Regards