Photonics

Photonics

MODE to FDTD

    • gmartinezdearriba1
      Subscriber

      Hi,

      I have calcualte the fundamental mode of a waveguide with MODE (2D). I would like to export this into a source in FDTD. I tried to save the mode as .mat or .ldf (MODE). After that, when I try to load it into the import source I get the following error. How could I solve this?

       

      Regards,

    • Guilin Sun
      Ansys Employee

      FDTD uses FDE as the mode source solver, so there is no need to import data from FDE to FDTD. Thus its dataset format is not designed to do this. FDE dataset has no wavelength data  but FDTD needs it. If you really want to import, please follow this example https://optics.ansys.com/hc/en-us/articles/360034383054-Using-an-equation-to-define-the-spatial-field-profile-of-a-source-in-FDTD

      Basically you need the following script to create source data for import:

      EM = rectilineardataset("EM fields",x,y,z);

      EM.addparameter("lambda",c/f,"f",f);

      EM.addattribute("E",Ex,Ey,Ez);

      EM.addattribute("H",Hx,Hy,Hz);

      E and H are 4 dimensional matrix, even if one (source normal direction such as z) or two (z and frequency) has only one value.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.