-
-
May 23, 2023 at 9:55 pm
minkyu.kim
SubscriberHi,
We had updated our cluster to newer RedHat version 8.6, and I was using Python API for Lumerical simulation.
But when we updated the server, Python API cannot even open existing simulation files.
I am using Lumerical 2023R1 version, and is this known issue?
Simple "lumapi.FDTD(filename="test.fsp")" cannot open the file, but just blank FDTD is opened.
Thanks,
Minkyu
-
May 24, 2023 at 7:35 pm
minkyu.kim
SubscriberI found other cluster is working, and the difference is CPU. Cluster with problem is using AMD CPU with much larger memories, and the other without any problem is using Intel CPU. Does it matter?
-
May 24, 2023 at 11:07 pm
Lito Yap
Ansys Employee@Minkyu,
Does the new operating system have all the required libraries to run Ansys Lumerical?
> Installing on a shared filesystem on Linux – Ansys Optics
Did you update your environment to the new install path?
> How to run Lumerical API (Python) scripts in Linux – Ansys OpticsHow are you running the script? Directly from the Terminal/CLI or using a job scheduler? Or from the CAD/GUI >> Script file editor window with Python Integration = "active" as shown in the image?
Running the 1 liner script, "lumapi.FDTD(filename="test.fsp")" will simply open and close the FDTD CAD window.
Try the script below on your new system and see if it runs and a new simulation, "testapi.fsp" is created.
import lumapi
fdtd = lumapi.FDTD()
fdtd.addfdtd()
fdtd.addring()
fdtd.addmesh()
fdtd.save("testapi.fsp")
-
-
May 25, 2023 at 7:42 am
minkyu.kim
SubscriberThank you for the reply.
I was running lumapi by running script as below.
import sys
import importlib.utilsys.path.append("[path_to_lumerical]/api/python/lumapi.py") #Default linux lumapi path
spec_lin = importlib.util.spec_from_file_location('lumapi', "[path_to_lumerical]/api/python/lumapi.py")
lumapi = importlib.util.module_from_spec(spec_lin)
spec_lin.loader.exec_module(lumapi)fdtd = lumapi.FDTD(filename='test.fsp')
How I can know if I have any missing library?
-
May 25, 2023 at 6:20 pm
Lito Yap
Ansys EmployeeConsult IT if they checked the dependencies before installing Ansys Optics/Lumerical on the cluster? See the KB below or details.
> Installing on a shared filesystem on Linux – Ansys OpticsDid you try running the script I provided from the CAD/GUI >> Script file editor window as shown in the image on my previous post? ☝
import lumapi
fdtd = lumapi.FDTD()
fdtd.addfdtd()
fdtd.addring()
fdtd.addmesh()
fdtd.save("testapi.fsp") -
May 26, 2023 at 9:28 am
minkyu.kim
SubscriberHi thanks for the reply,
The code you gave me is working on cluster with Intel process. But I found another cluster with AMD is also working.
Maybe only specific cluster is not working which means library is somewhat missing.
-
May 26, 2023 at 4:37 pm
Lito Yap
Ansys Employee@minkyu.kim,
Thanks for the updates. I agree. Please consult with IT/cluster admin to resolve and check what is different on the machine that is having the issue.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- “Import optical generation” or “delta generation rate”?
- Error: addfdtd is not a valid function or a variable name
- Error on Lumerical device
- Using a license file on a new license server
- Ansys Insight: Transmission results greater than one
- Ansys Insight: Diverging Simulations
- Finding your Ansys (or Lumerical) account number
- Is there a Lumerical script command to output the Simulation and Memory requirements?
- Ansys Insight: Why my simulation result is different from published paper or experiment?
-
5290
-
3311
-
2471
-
1308
-
1016
© 2023 Copyright ANSYS, Inc. All rights reserved.