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
make the docs on evaluate_rates() clearer #669
Conversation
|
||
If you want dn/dt, where n is the number density (so you get | ||
n_a n_b <sigma v>), then you need to multiply the results here | ||
by rho N_A (where N_A is Avogadro's number). |
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.
quick question about the definition of molar fraction that came to mind, usually we just say its X/A, but is there an ambiguity on whether its A or A_nuc? For example, here this problem arises if we say we want to convert dY/dt to dn/dt by simply multiply by rho*N_A, is that right?
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 think we usually define it as X/A, where A is just the atomic weight.
But we might want to check if we are being consistent and / or what others do.
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.
right, but I guess my concern is when converting Y to n, we get rid of mass in density by N_A/A here not N_A/A_nuc, so I think its off by a ratio between A and A_nuc?
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.
realizing this issue can also come up when calculating enuc?
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.
it could be. I think a lot of sources don't worry about the difference between A and A_nuc. I think we are approaching the point where it would be good to go over the docs and check to see how consistent we are and add some docs describing our assumptions, etc. and then come up with a plan on how to fix this.
Could be a hackathon...
we are returning dY/dt but a user might expect r = n_A n_B