Conversation
|
Hey Melek! |
|
Thanks, Melek! As we planned, you can go ahead and drop the remaining items (material.py, etc). Don't worry about the failing tests. They are supposed to fail, and then from there, we collaboratively fix and organize them here. Some comments on some edits I made in my recent commits:
|
|
@melekderman - Can you please move the |
|
Thank you so much for your review! I refactored the |
|
Looking good, @melekderman! Can you also drop some examples in |
|
About ELECTRON_CUTOFF_ENERGY used in
=== After learning more about this, I think it is best to make the cutoff adjustable per region. But we can do that later. |
|
The |
|
To have a consistent sub-function organization, can you please move |
|
Some questions on the elastic scattering. What is the I see that you do some checks here: Can we just manage the |
|
In inonization, when you sample the subshell, you first calculate the total xs: Should the total XS be the ionization XS? If not, should we normalize the subshell XS so that they sum up to the ionization XS? If we have them consistent with each other, we don't need to recalculate the total XS from the subshell XS. |
|
In ionization we have: Isn't it impossible for a sampled subshell to have a binding energy that is larger than the electron energy? I'm wondering, if it does occur in the simulation, does that mean something is incorrect in the subshell cross-sections used for sampling? |
|
Have you made sure whether the scattering kinematics data for elastic scattering and ionization are provided in the laboratory or the center-of-mass frame? |
|
In Ionization we have I think if the delta electron got cut off, but the primary electron is still alive, we should not |
I think it is in the LAB frame. The angular distribution is given only for large-angle elastic scattering, and recoil is neglected because it is assumed that the electron energies are much smaller than Mc2 (and there’s no LCT flag in the original EEDL data). For ionization, the angular distribution is calculated inside MCDC using the formula defined in the LAB frame. |
Sure, that is not possible. It seems like all the extra checks I added while debugging to make sure energy is conserved are still in the code. I will remove them. Thank you! |
I noticed that (I think I added an extra check again during debugging), I put a cutoff check both inside the collision and in the reactions. The one inside the collision must have been for debugging. And since the particle cannot actually travel that path, since the particle is absorbed immediately after it’s created in the reaction (or after the reaction for primary electron), it cannot reach the cutoff check in the collision routine. I'll delete it. Thank you! |
In EEDL2023, I only left it like this because I was considering adding |
…to dev-electron
✅ (uploaded/inserted (almost) as is; I will check these later to make them compatible with the new data refactoring)
✅ The file
element.pytoobject_/✅ Electron-related items in
reaction.pytoobject_/reaction.py(append or insert, not overwrite the entire file)✅ The folder
physics/electron/totransport/physics/👩🏻💻 Electron-related items in
material.pytoobject_/material.py(append or insert, not overwrite the entire file)