Repository to genereate text files with the complex refractive index of different compounds, elements...
The refractive index is complex in the case of X-rays, it is defined as:
This repository calculates the
The data inside form_factors folder have been obtained from NIST database.
- generate_delta_beta is used to generate the complex refractive index of the elements which atomic form factors are inside the form_factors folder.
- compound_by_chemical_formula enables to calculate the complex refractive index components of a compound using the chemical formula and the density as input.
- compound_by_weight enables to calculate the complex refractive index components of a compound using the weight by mass of the components and the density as input.
The output of all scripts is a text file inside complex_refractive_index with the name of the element or compound. The first column of the file is the energy in keV, the second column is the
Type in the terminal
python3 generate_delta_beta.py
Or:
python3 compound_by_chemical_formula.py
Or:
python3 compound_by_weight.py
Depending on which script you want to run. generate_delta_beta.py and compound_by_chemical_formula.py scripts needs to rewrite parameters like the compound name, the density of the compound or the element composition (see the final lines of each script).