-
-
September 19, 2024 at 4:33 am
-
September 19, 2024 at 9:47 pm
Guilin Sun
Ansys EmployeeBefore using Python, I would suggest you to first test the script, say:
setnamed("::model","f2",150e12)
this will assign the frequency "f2" to 150e12 Hz.
Once it works, you can use Python to set it as like other parameters.
Please note that, by default, the script will use SI units: Units and normalization conventions in Lumerical solvers
-
September 20, 2024 at 12:56 am
kai.w.ab
SubscriberThank you for your support.
The command "setnamed" works. However, what I want to do is not to set the value of a property that has already been added, but to add a new property first.
How can I do that by using Python?
-
-
September 20, 2024 at 3:29 pm
Guilin Sun
Ansys EmployeeAgain, you have to first test how to set new properties using Script. FOr exmaple:
select(“::model”);adduserprop(“radius1”,2,0.6e-6);
Python can only manipulate when Lumerical script works.
-
- You must be logged in to reply to this topic.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Import material .txt file with script
- Absorption cross-section of AuNR excited by prism-based TIR
- How to measure transmission coefficients on a given plane .
- TE Polarization Fraction + Waveguide TE/TM Fraction
- Edge Coupler EME Example Issue
- 2D inverse design grating coupler
- Lumerical Python API Topology Optimization Error 2025 R1
- FDE : Simulation waveguides with electrodes
- Loss of lithium niobate phase modulator
-
2457
-
931
-
599
-
591
-
586
© 2025 Copyright ANSYS, Inc. All rights reserved.