[yt-svn] commit/yt: rthompson: Correcting Gadget/GIZMO StarFormationRate units. The code outputs SFRs in Msun/yr by default, not code_mass/code_time as one would think.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Sep 1 08:46:27 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/54a3381ac0b1/
Changeset:   54a3381ac0b1
Branch:      yt
User:        rthompson
Date:        2015-08-31 21:17:54+00:00
Summary:     Correcting Gadget/GIZMO StarFormationRate units.  The code outputs SFRs in Msun/yr by default, not code_mass/code_time as one would think.
Affected #:  1 file

diff -r 798706bc587f36f15ab279807b69a420daed42df -r 54a3381ac0b10b469eb10e3d63857a508448c8b5 yt/frontends/sph/fields.py
--- a/yt/frontends/sph/fields.py
+++ b/yt/frontends/sph/fields.py
@@ -39,7 +39,7 @@
         ("Metals", ("code_metallicity", ["metallicity"], None)),
         ("Metallicity", ("code_metallicity", ["metallicity"], None)),
         ("Phi", ("code_length", [], None)),
-        ("StarFormationRate", ("code_mass / code_time", [], None)),
+        ("StarFormationRate", ("Msun / yr", [], None)),
         ("FormationTime", ("code_time", ["creation_time"], None)),
         # These are metallicity fields that get discovered for FIRE simulations
         ("Metallicity_00", ("", ["metallicity"], None)),

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list