Ansys Learning Forum Forums Discuss Simulation Photonics Setting variables of “::model” in FDTD using Python script Reply To: Setting variables of “::model” in FDTD using Python script

Guilin Sun
Ansys Employee

Before 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