jackzhf
Subscriber

 

It seems to be doable, but you may need to hardcode it since the dataset method is not preferrable.

https://optics.ansys.com/hc/en-us/articles/360034928773

 

Or, if the desired refractive index profile is relatively simple, you can overlap different structures and use their meshing orders to implement your design.

https://optics.ansys.com/hc/en-us/articles/360034915233-Understanding-mesh-order-for-overlapping-objects