Description:
When using periodic boundary conditions in palace, the Bloch/Floquet vector appears to be treated as a fixed value throughout a frequency sweep. However, for physically correct periodic (Floquet) simulations, the Bloch vector depends linearly on frequency.
If the frequency changes during a sweep but the Bloch vector in the JSON configuration remains constant, the simulation becomes inconsistent and produces incorrect results.
This prevents performing valid frequency sweeps under periodic boundary conditions unless the user manually updates the Bloch vector for each frequency—something that the current input format does not support.
Suggested improvement:
It would be better if the Bloch/Floquet vector specified in the JSON:
- were normalized to the frequency, or
- alternatively, could be expressed in terms of direction only, letting palace scale it internally using the vacuum wavenumber.
This would ensure correct behaviour when performing frequency sweeps and avoid misleading results.
Thanks for your work on the project!