Finite array of gold nanorods
A square array with a 550 nm pitch can show retarded coupling despite the wide separation between rods. This small 4-by-4 array keeps the documentation build quick; larger arrays sharpen collective features but cost more to solve. The requested particle count is rounded down to a square by cluster_array.
using CoupledDipole
using Rotations
using CairoMakie
wavelengths = collect(450.0:20.0:950.0)
material = Material(wavelengths, Dict("Au" => epsilon_Au, "medium" => λ -> 1.33))
single = cluster_single(80, 40, 40)
array = cluster_array(16, 550, 80, 40, 40)
incidence = [RotZ(0.0)]
isolated = spectrum_dispersion(single, material, incidence; N_sca=144)
coupled = spectrum_dispersion(array, material, incidence; N_sca=144)
fig = Figure(size=(650, 350))
ax = Axis(fig[1, 1], xlabel="Wavelength / nm",
ylabel="Extinction per particle / nm^2")
lines!(ax, wavelengths, isolated.extinction[:, 1]; label="single")
lines!(ax, wavelengths, coupled.extinction[:, 1]; label="4 by 4 array")
axislegend(ax)
fig
The plotted polarisation is along x and propagation is along z. For an extended array, numerical integration of scattering needs substantially more angular nodes than extinction or absorption. Check convergence in N_sca; extinction minus absorption supplies an independent scattering estimate in a nonabsorbing host. Do not interpret a small default cubature as a converged far-field calculation.