Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Photonics

Photonics

Topics related to Lumerical and more.

Lumerical’s FDTD Project to Script not working

    • lhn3149
      Subscriber

      I tried to used "FDTD Project to Script" from Lumerical (https://optics.ansys.com/hc/en-us/articles/1500007185181-FDTD-Project-to-Script-Prototype) to multiple FDTD but encounter an error: "Lumerical_project_to_json.lsfx line 402: default_material_list is not a valid function or variable name".

      The .lsfx file is encrypted so there is no way to know the error.

      Please help. I really appreciate it.

    • jackzhf
      Subscriber

       

       

      The error seemed to be related to default material data:

      ”Here, we also provide you with a default property list saved in default_props_fsp.mat, which is used to remove some redundant property settings in your final script. You can also generate this file by running get_default_property_list.lsfx. Using the script files provided here, the obtained final script will use the long format and include all parameter values. A shorter version of the script file can be obtained by setting the skip_default to ‘true’ in the Lumerical_project_to_setup_script.lsf.”

       

      Therefore, before running “the Lumerical_project_to_setup_script.lsf along with the project file opened in the IDE.”

       

      Make sure to “download and keep the attached files in the same folder.”

       

      If the above details have been followed through and the problem persists, there are some troubleshooting procedures in the comments:

      ”# Troubleshooting:
      #     > In cases where the setup script generates error in setting a particular parameter value,
      #       try adding that parameter in the “do not set” list in the “generate_do_not_set.lsf” file.
      #     > The user should further test the project file when setting skip_default to be true and switch it  
      #       to false if any error occurs.”

       

       

       

       

    • lhn3149
      Subscriber

      Hi,

      Thanks for the quick reply.

      I am so sorry but I have checked carefully the instructions and apply to my case but was unsuccessful.

      I keep every downloaded file from Lumerical in the same folder. Open the project in FDTD IDE. Add "default_material_list" in the "do not set" of “generate_do_not_set.lsf” file. Play with the skip_default to ‘true’/'false'.

      Is there anything I am missing? I really appreciate your help!

Viewing 2 reply threads
  • The topic ‘Lumerical’s FDTD Project to Script not working’ is closed to new replies.
[bingo_chatbox]