TAGGED: fdtd, hpc-parallel-licenses, lumerical, parallel, python, synchronous
-
-
August 15, 2023 at 8:44 am
Mehdi Feizpour
SubscriberHello community!
I have a Python code that makes a group of 20 simulations with different geometries, one after the other. After each simulation is done, the monitor data is saved in an array and then these 20 arrays are analyzed.
Recently, I am running some simulations on my university's cluster that uses Slurm scheduler. I would like to use the cluster for the aforementioned Python code. I am thinking to send the 20 simulations in parallel to the cluster and then when all are done, analyze their results. Needless to say that the simulations start based on the availability of resources. Thus, they will finish at different times. I would appreciate any input you might have for the asynchronous running of multiple Lumerical FDTD simulations.
-
August 15, 2023 at 5:54 pm
Guilin Sun
Ansys EmployeeIf you have sufficent licenses, you can set resources if you run the python in GUI, and send all the files through Slurm scheduler. At this point it is up to the Slurm scheduler that assigns the simulation files for concurrent simulation. Please refer to
https://optics.ansys.com/hc/en-us/articles/360034620113-Lumerical-job-scheduler-integration-configuration-Slurm-Torque-LSF-SGE-
https://optics.ansys.com/hc/en-us/articles/360039028654-Job-scheduler-submission-scripts-SGE-Slurm-Torque-
https://optics.ansys.com/hc/en-us/articles/360043624373-Running-simulation-jobs-with-PBS-scheduler
https://optics.ansys.com/hc/en-us/articles/360026165714-Running-simulations-on-your-cluster
You can also fully utilize Lumerical's features:
1: if you can set the geometry properly in a structure group, or in "model", with an identifier that selects a specific configuration, or the geometry is simply changing its dimension/location with variables (parameterized), you can use the sweep utility in "optimization and sweeps", and use Python to run the sweep.script:
2: You can also use Lumerical script
addjob
runjobs
then you can use Python to run them.
The key is to have the jobs in the queque for concurent simulation https://optics.ansys.com/hc/en-us/articles/360026162414-Concurrent-Parametric-Computing
with proper licenses.
The sweep utility has the capability to create all the simulation files, and send them to be simulated concurrently depedning on the resource configuration ("capacity"): https://optics.ansys.com/hc/en-us/articles/360025161033-Compute-resource-configuration-use-cases
-
August 16, 2023 at 8:05 am
Mehdi Feizpour
SubscriberDear Guilin, Thank you for the extensive explanation and the quick reply! It is very helpful. Going through the info you kindly provided, I think the most straightforward approach would be to use:
As our cluster does not support a GUI. I will try it and will share my experience here.
-
- 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.
- “Import optical generation” or “delta generation rate”?
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- Using a license file on a new license server
- Ansys Insight: Diverging Simulations
- Error: addfdtd is not a valid function or a variable name
- Questions about the calculation of the cross-polarization conversion efficiency of metasurface
- Error on Lumerical device
- Ansys Insight: About override mesh in FDTD: its use and settings
- Finding your Ansys (or Lumerical) account number
- Lumerical – error message when trying to open from Linux terminal
-
7680
-
4476
-
2957
-
1433
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.