Optics

Optics

Topics related to Speos.

Lumercial MODE : bug while exporting data in matlab format

    • Optinil
      Subscriber

      Hello,

      when I run my calculations in MODE, I try to export the generated modes using Eigensolver Analysis window, export data > matlab format.

      The program stops and the exported .mat file is very light, ~2ko, and impossible to import elsewhere.
      The same happens when I try to export using the visualizer window, except that I receive the following error message:

      The program terminated due to: Could not create Numeric Array
      Please contact Lumerical technical support for assistance.

       

      I could export using the prompt with the commands "getresult" and "matlabsave".
      (file is ~3Mo for each mode and possible to open using python, however the format seems to be h5py)

      How is it possible to use the dedicated function from the analysis window ?

      Thx in advance.
      FD

    • Thomas Martineau
      Ansys Employee

      Hello,

      For later question, please use Photonics chanel for Lumerical topic : /forum/forums/forum/discuss-simulation/photonics/

      This chanel is dedicated to Speos.


      Thanks

    • Guilin Sun
      Ansys Employee

      Thank you to bring this issue with us. It seems the software is experiencing some difficulties in exporting the mode data. We need sometime to investigate and will let you know if there is any progress. Please be patient.

      At the mean time, please you get result to export data. If you want to add the H fields to the dataset, you can simply add it like this:

      E=getresult("mode1","E");

       

      H=getresult("mode1","H");

       

      EH=E;

       

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

       

      matlabsave("mode1.mat",EH);

      Please try.

    • z.l.li-1
      Subscriber

      Seems like it is a problem regarding the new version 2024, I got the same issue in the new version but it worked normally if I do the same export in v221. 

    • sme8
      Subscriber

      I am experiencing the same issue. Do you have any update how to solve it?

Viewing 4 reply threads
  • The topic ‘Lumercial MODE : bug while exporting data in matlab format’ is closed to new replies.