Skip to content

adding kf/ki factor to the cooridnates for InelasticSample class#138

Merged
nvaytet merged 3 commits into
scipp:mainfrom
bingli621:main
Apr 24, 2026
Merged

adding kf/ki factor to the cooridnates for InelasticSample class#138
nvaytet merged 3 commits into
scipp:mainfrom
bingli621:main

Conversation

@bingli621
Copy link
Copy Markdown
Contributor

In the elastic scattering process, the double differential cross section if proportional to kf/ki*S(Q,E). Right now, the InelasticSample keeps the information about the final energy/wavelength only and discard the information about the initial wavelength/energy. Once it happens, it is impossible to get the information back. I am proposing to add the ratio of kf/ki to the coordinates, which will help with the further calculation of the double differential cross section.

Comment thread src/tof/inelastic.py
wavelength=w_final, speed=wavelength_to_speed(w_final)
wavelength=w_final,
speed=wavelength_to_speed(w_final),
kf_over_ki=sc.sqrt(final_energy / incident_energy),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add as much info as you like, so if adding other quantities would make things simpler down the line, feel free to do so.

@nvaytet nvaytet merged commit 726d147 into scipp:main Apr 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants