-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gamma sampling documentation #2859
base: master
Are you sure you want to change the base?
Changes from 10 commits
dab93af
913c9c7
132c177
37d3edb
3891667
9e08aca
670646d
a7dc2f8
c02ffc1
644cf55
6a80b78
b6e41c7
46f7710
6c73d4d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ TARDIS gamma :math:`\gamma` | |
|
||
.. toctree:: | ||
packetinitialization | ||
packetsampling |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Packet Sampling | ||
=============== | ||
|
||
|
||
In the simulation, we use spherical symmetry where the ejecta is divided into multiple spherical shells. To find the mass of each shell we multiply the mass fractions of each of the elements and isotopes with the density. We can set the timespace for the simulation | ||
to be between t\ :sub:`start`\ and t\ :sub:`end`\ using either a linear or a logarithmic scale. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this warrants more description. At least a short description of why you'd want to use one or the other timescales. |
||
|
||
|
||
We use the `radioactivedecay <https://radioactivedecay.github.io>` python package to calculate the number of decays in each channel for each shell and at every timestep for each isotope. | ||
The composition is also updated after each timestep following :cite:`2024arXiv240308769G`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if this citation is working correctly in the built docs. |
||
Then to calculate the decay energy of each channel, we multiply the total number of decays with the energy of each channel. | ||
We give weight to the decay energy of each channel of each isotope to sample the packets which takes into account the spatial distribution | ||
of radiocative isotopes present in different shells and the evolution of the composition over time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth mentioning spherical symmetry? I don't think spherical symmetry is specific to the gamma-ray part of the code. Perhaps just add a hyperlink to https://tardis-sn.github.io/tardis/physics/setup/model.html#Shell-Structure if you want to mention it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it was relevant to mention at least how the ejecta is broken down into shells because it goes into how we find the mass of each shell. I added the hyperlink but if it still doesn't make sense to mention it, I can remove that part.