Open EmCeBeh opened 2 years ago
thanks a lot for this suggestion!
I think it is reasonable to have the atomic_form_factors
as properties of the atoms and then add a new functionality to the Layer
class to calculate the refractive_index
as a function of photon_energy
. In fact this calculation is already done in the XrayDynMag
scattering simulation
You are very welcome to draft a PR
Any given layer is made of atoms, comprised of magnetic and non-magnetic scattering factors f1,f2,m1,m2.
It would be useful to obtain the refractive index from this layer, too. Except for physical constants, there are only two free parameters needed: The atomic density - which the simulation already knows via the mass density and the molar mass - and the wavelength which has to be enterable as an array, e.g. .
This could look like:
which returns a 2D array with 5 coloumns, E, delta, beta, Deltadelta, deltabeta.