Work
What I did today:
I successfully added in a 3rd sweep within the code given to me.
In this routine, the code systematically varies the cavity height in integer multiples of the fundamental resonant length. Since the program already computes the precise cavity length required for resonance at the target wavelength, each integer value in the sweep simply scales that base length, so that an integer “n” corresponds to the nth‐order mode (equivalently, to the presence of n antinodes within the cavity).
To visualize the impact of this new degree of freedom, I integrated real‐time plotting directly into the sweep loop. For each combination of nanorod height, inter-rod gap, and cavity order, the script generates a single figure displaying reflection, transmission, and absorption spectra side by side. Beyond the sweep itself, I also created a higher‐level plotting utility that aggregates absorption curves across different cavity orders, enabling direct comparison of spectral features as the order number increases.
The plots produced align with theoretical expectations. In the combined R-T-A plots, the characteristic Rabi splitting is clearly evident in the absorption profile. Moreover, when overlaying absorption spectra for successive cavity orders, it becomes apparent that odd modes (those with an odd number of antinodes) exhibit markedly stronger splitting. This behavior is consistent with the fact that an odd‐order resonance produces a field antinode at the cavity center, where the nanorod is positioned, thereby maximizing light–matter coupling and enhancing the observable splitting.
Picture of the Graph I got:
What I plan to do tomorrow:
There are many parts of the code that do not run as they should. I noticed some potential errors and assumptions when conducting my analysis of the code that I want to try and fix.