[yt-svn] commit/yt: MatthewTurk: Adding a KMSMPC for specific angular momentum

Bitbucket commits-noreply at bitbucket.org
Sun Apr 22 07:49:31 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/bc2ffa01fa68/
changeset:   bc2ffa01fa68
branch:      yt
user:        MatthewTurk
date:        2012-04-22 15:59:53
summary:     Adding a KMSMPC for specific angular momentum
affected #:  1 file

diff -r 8ce2d50069f8064fde303a000932211dc3dbe48a -r bc2ffa01fa6867e41927150874c0ed7ac2c2d01a yt/data_objects/universal_fields.py
--- a/yt/data_objects/universal_fields.py
+++ b/yt/data_objects/universal_fields.py
@@ -614,6 +614,9 @@
     add_field(n, function=eval("_%s" % n), particle_type=True,
               convert_function=_convertSpecificAngularMomentum,
               units=r"\rm{cm}^2/\rm{s}", validators=[ValidateParameter("center")])
+    add_field(n + "KMSMPC", function=eval("_%s" % n), particle_type=True,
+              convert_function=_convertSpecificAngularMomentumKMSMPC,
+              units=r"\rm{cm}^2/\rm{s}", validators=[ValidateParameter("center")])
 
 def _ParticleAngularMomentum(field, data):
     return data["ParticleMass"] * data["ParticleSpecificAngularMomentum"]

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