Hey Jianlin,
indeed such transmittance values above 1 indicate that something goes wrong here.
Unfortunately, in the Ewald summation a few things can go wrong and it is a bit tricky to find out what it is in this case.
But let me give you some hints how you can try to resolve it:
By lowering the wavelength you change the relative size between the wavelength of light and the periodicity. Hereby, two things happen.
- First, the number of resonance increases that you can invoke by the initial field. These resonaces occure when the linear combination of the reciprocal lattice vector and excitation's in-plane wavevector coincide with the wavenumber. Hereby, you hit a sigularity in the Ewald lattice sum, which will cause very strong coupling in-between particles. But this should not lead to non-physical transmittance values.
- Secondly, you get into the "high frequency regime" where the numerical implementation of the incomplete Gamma function can become unstable. I suspect that this is here the case. You can work around this by changing the "ewald_sum_separation_parameter" in Smuthi. Hereby, the rate at which the Ewald sum converges will be lower, but the numerical overflow in the incomplete Gamma function can be prevented.
I have just tried your example of an excitation at 400nm and modified line 87 in the script with (section 6.9 in my thesis)
pb.default_Ewald_sum_separation = pb.set_ewald_sum_separation(a1, a2,
initial_field=initial_field,
particle_list=particle_list,
layer_system=layer_system,
magM=np.exp(1))
In the results I obtain, all unphysical quantites vanish. Unfortunately, I have no real guideline in which cases it is necessary to change this "ewald_sum_separation_parameter". For now this needs to be tested by the user.
I hope this helps.
Best
Dominik
Gesendet: Dienstag, 3. Dezember 2024 um 15:14
Betreff: [Smuthi] Question about the "Fifteen Periodic Spheres in Slab" Exemple in Benchmarks