Photonics

Photonics

ELECTRIC FIELD INTERPOLATION

    • amerturan
      Subscriber

       

       

      How can I interpolate Electric Field in Lumerical FDTD? How can I make the Electric Field data high resolution in Matlab?

    • Guilin Sun
      Ansys Employee

      You have two options:


      1: use finer mesh in FDTD simulation.

      2: use interpolation to get finer sampling.

      In both case, before exporting data into Matlab, you will need to interpolate the FDTD result into a uniform sampling mesh. This is because by default FDTD uses non-uniform mesh whereas matlab uses uniform mesh. Otherwise the image or plot in Matlab is distorted.

       

      Please note that, interpolation with finer sampling does not improve the accuracy. in fact it has interpolation errors. The result accuracy is determined by FDTD simulation.

       

    • amerturan
      Subscriber

      Do you have an example of this? "You will need to insert the FDTD result into a uniform sampling network." Is there any documentation on how to do this?

    • Guilin Sun
      Ansys Employee

      Here is the script that you can use  https://optics.ansys.com/hc/en-us/articles/360034925893-interp-Script-command

       

Viewing 3 reply threads
  • You must be logged in to reply to this topic.