We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

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