Photonics

Photonics

Topics related to Lumerical and more

h5write is not a valid function or variable name

    • Mery
      Subscriber

      I am trying to run the example https://optics.ansys.com/hc/en-us/articles/18254409091987 and generate an h5 file for Zemax in Lumerical version 2022 R2.3. I am receiving the following error h5write is not a valid function or variable name. What should I do?

      Kind regards,

      Maryna

    • Amrita Pati
      Ansys Employee

      Hi Maryna,

      What happens if you run this ?h5write; in the Script Prompt?

      Regards,
      Amrita

    • Mery
      Subscriber

      It doesnt recognize the command. When I start typing ?h5 it suggest me read and info, but no write.

    • Amrita Pati
      Ansys Employee

      Hi Maryna,

      I checked with the team internally. This script command was implemented in the 2023 R2.1 release. So, you would have to install 2023 R2.1 or 2023 R2.2 to be able to use this script command.

      Regards,
      Amrita

    • Mery
      Subscriber

      Hi Amrita,

      I have follow-up questions:

      1. Locate the 3 .dll files lumhdf5.dlllumhdf5_hl.dll, and zlib1.dll in the install folder of Lumerical and copy them in the installation folder of Zemax

      What exact folder should I copy to these dll's? I copied it to Zemax>DLL>Surfaces as in step 3. Is it correct?

      1. Open the file metalens_R10mm_f300mm.zprj and see how the metalens is defined

      I have the lates Zemax Optics Studio, and when I am trying to open this file, the extension of this file is not in the list. How can I open this file in OpticStudio?

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