Photonics

Photonics

Topics related to Lumerical and more.

Zemax to Lumerical

    • gukhyun.nam
      Subscriber

      Dear all

      After designing a lens in Zemax, I want to check the information of the beam past the lens in Lumerical FDTD. 

      Is there any other way to move beam information from Zemax to Lumerical besides a JSON file?

      I want simulation 3D in Lumerical FDTD 

      Can anyone help?

    • Amrita Pati
      Ansys Employee

      Hi Gukhyun,

      You can export the beam as a Zemax Beam File (.zbf) file and then import it into Lumerical for further calculation. The following article shows how the .zbf file can be loaded onto the global deck in FDE to perform overlap analysis: How to convert from Lumerical simulations to OpticStudio and back. 

      For Lumerical FDTD, you can import the zbf file as a source to do subsequent analysis. On Lumerical side, you may use a script like the following to create an import source:

      filename = "test_zemax_to_lum";

       

      # Read back the structured data from zbf file and visualize it

      zbfload(filename + ".zbf");

      addimportedsource;

      set("name","ZBF source");

       

      x = getdata("::zbf_data",'x');

      y = getdata("::zbf_data",'y');

      z = getdata("::zbf_data",'z');

       

      lambda = getdata("::zbf_data",'wavelength');

      f = getdata("::zbf_data",'f');

       

      Ex = getdata("::zbf_data",'Ex');

      Ey = getdata("::zbf_data",'Ey');

      Ez = getdata("::zbf_data",'Ez');

      Hx = getdata("::zbf_data",'Hx');

      Hy = getdata("::zbf_data",'Hy');

      Hz = getdata("::zbf_data",'Hz');

       

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

      EM.addparameter("lambda",lambda,"f",f); # Optional

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

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

       

      select("ZBF source");

      importdataset(EM);

      Let me know if you have any questions.

       

      Regards,
      Amrita

    • gukhyun.nam
      Subscriber
      Thanks for your reply. 
       
      I tried it, but the zemax beam information is strange in Lumerical FDTD.
      It is set to about 24um.
      Maybe I can't get the Ex,Ey,Ez of the 3D beam from zemax pop could you please check if it is correct?
       

      Best regards

    • Amrita Pati
      Ansys Employee

      Hi Gukhyun,

      Are the fields not looking reasonable to you? The span in the x-y directions is automatically taken from the data. I haven't worked with Zemax a lot, but I think Zemax is not fully vectorial. So, you might not be able to get all field components for Zemax. On the Zemax side, let me talk to someone and talk to you.

      Regards,
      Amrita

    • gukhyun.nam
      Subscriber

      Hi Amrita 


      thanks your reply

      I'll be waiting! 

      Best regards

Viewing 4 reply threads
  • The topic ‘Zemax to Lumerical’ is closed to new replies.