Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Waveguide simulation in fdtd solution › Reply To: Waveguide simulation in fdtd solution
February 22, 2023 at 5:10 pm
Guilin Sun
Ansys Employee
"You should use larger incerement, at the integer number of mesh size." this is my suggestion. Please get the mesh size. for example, you can use specified override mesh, which you know the mesh size since you set it. or you can use the scrript below:
e1=getresult("mode1","E");
x=e1.x;
nx=length(x);
delta_x=x(1:nx-1)-x(2:nx);
Â
e1 is dataset: Introduction to Lumerical datasetsÂ
similarly for y and z if the FDE is in the other cross section. The sweep should use n*delta_x where "n" is an integer number.
Â
Please try.
Â