[yt-svn] commit/yt: ngoldbaum: Merged in chummels/yt (pull request #2195)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jun 8 08:21:26 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/19438cc7e51d/
Changeset: 19438cc7e51d
Branch: yt
User: ngoldbaum
Date: 2016-06-08 15:21:17+00:00
Summary: Merged in chummels/yt (pull request #2195)
Deposit hydrogen fields to grid in gizmo frontend
Affected #: 1 file
diff -r ce2031d2484da5d02bcced20938161f624fccf6f -r 19438cc7e51d035905e59b765a5031836699534d yt/frontends/gizmo/fields.py
--- a/yt/frontends/gizmo/fields.py
+++ b/yt/frontends/gizmo/fields.py
@@ -99,6 +99,15 @@
data[ptype, "%s_metallicity" % species]
num_neighbors = 64
+ for species in ['H', 'H_p0', 'H_p1']:
+ for suf in ["_density", "_number_density"]:
+ field = "%s%s" % (species, suf)
+ fn = add_volume_weighted_smoothed_field(
+ ptype, "particle_position", "particle_mass",
+ "smoothing_length", "density", field,
+ self, num_neighbors)
+ self.alias(("gas", field), fn[0])
+
for species in self.nuclei_names:
self.add_field(
(ptype, "%s_nuclei_mass_density" % species),
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