That assumes you have the necessary species fields present in your dataset.
If you aren't doing chemistry in your simulation then you'll need to use
some sort of analytic formula for estimating the local H2 fraction, see
e.g. Safranek-Shrader et al. (2016,
http://adsabs.harvard.edu/abs/2017MNRAS.465..885S).
On Mon, Nov 12, 2018 at 1:08 PM Britton Smith
Hi Andrew,
There are sort of two answers to your question. Firstly, there will be a field called ('gas', 'H2_fraction') or ('gas', 'H2_p0_fraction') which is mass fraction of H2 to the total gas density. In other words, H2_fraction = rho_H2 / rho_total If you want the total amount of Hydrogen nuclei, you can use ('gas', 'H_nuclei_density'), which is a number density. You can get individual species number densities as well, for example, ('gas', 'H2_number_density').
Britton
On Mon, Nov 12, 2018 at 8:49 AM Andrew Cook
wrote: Hello,
I'm currently working on an Enzo 2.5 simulation using yt 3.5 in python 3. Is there a fieldname for plotting the H2 mass fraction of a gas cloud?
Many thanks Andrew Cook _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org