Create NuclearReaction
class to support crosssection data
#2535
Labels
feature request
Issues requesting a new feature or enhancement
Feature description
We need a way to incorporate more information about nuclear reactions in to the Particles module.
Motivation
We need crosssections for common fusion reactions to make notebooks on topics like the Lawson criteria.
Implementation strategy
Refactor
particles.nuclear.nuclear_reaction_energy
into aNuclearReaction
class. Most of the input parsing is already done, but should be updated to use Particle Lists! The total baryon number, charge, and mass energy methods should also be updated to be based on Particle Lists.reaction_energy
would then be a property of that object. @namurphy Do you think you could tackle this?Add a method to the new
NuclearReaction
class that searches for a matching reaction in an h5 file of nuclear data and returns the relevant data arrays if the reaction is included in the file. I can add this.Additional context
I've created an example h5 file with one cross-section coming from the ENDF database. I can collect these for a bunch of common reactions once we agree on a format etc.
The eventual goal for this issue would be to have the functionality in PlasmaPy to make a notebook that shows various crosssections and calculates reactivities from them, like this one: https://scipython.com/blog/nuclear-fusion-cross-sections/
The text was updated successfully, but these errors were encountered: