Ansys Learning Forum Forums Discuss Simulation Photonics How to include distributed dipoles inside a photonic structure? Reply To: How to include distributed dipoles inside a photonic structure?

Guilin Sun
Ansys Employee
If you mean random spatial location, amplitude, phase, polarization, please refer the bandstructure simulation examples: https://support.lumerical.com/hc/en-us/articles/360041567454
You can also set the number of dipoles to be random. Please refer the script
rand - Script command
randn - Script command
In general, all the dipoles are inside a group, so you can modify the example script in "dipole _ cloud" to meet your needs.