-
-
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
- Errors Running Ring Modulator Example on Cluster
- Import material .txt file with script
- Help for qINTERCONNECT
- Absorption cross-section of AuNR excited by prism-based TIR
- Issues with getting result from interconnent analysis script
- How to measure transmission coefficients on a given plane .
- Topology Optimization Error
- Edge Coupler EME Example Issue
- Problem on recording the E field in 2d polarizer simulation
-
1962
-
886
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.