- calculating electron fraction vs. temperature - 2 Updates
Jonathan Slavin <jsla...@gmail.com>: Apr 17 09:19AM -0700
Hi all,
I'd like to calculate the electron density/total density vs. temperature.
So what I need is Sum(A_i*Sum(X_Z,i*Z)), where A_i is the abundance
(relative to H) of element i, and X_Z,i is the ion fraction of ion stage Z
(i.e. Z times ionized). It seems I could call ioneq for each element
individually to get X_Z,i. Is there a way to do it for all the elements at
once?
I think I see now a way to do this, basically just loading the ioneq file,
though maybe there's a more convenient method?
Jon
Peter Young <pry....@gmail.com>: Apr 17 01:05PM -0700
Hi Jon,
We don't have an IDL routine for doing this specifically, but you can get
the ratio fairly easily by making use of the routine proton_dens.
For example, for logT=6.0:
IDL> h_e_ratio=proton_dens(6.0,/hydrogen)
which gives the ratio of hydrogen (protons + neutral H) relative to
electrons. To get the ratio of all elements relative to electrons, you then
do:
IDL> read_abund,!abund_file,ab,ref
IDL> all_e_ratio=h_e_ratio * total(ab)
I get 0.923 when I do this.
Thanks, Peter
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to chianti+u...@googlegroups.com.