-
-
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.
-
3165
-
1014
-
956
-
858
-
798
© 2025 Copyright ANSYS, Inc. All rights reserved.