[Yt-svn] commit/yt: brittonsmith: Fixed entropy field.
Bitbucket
commits-noreply at bitbucket.org
Thu Mar 3 15:42:33 PST 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/f34826a711b9/
changeset: r3784:f34826a711b9
branch: yt
user: brittonsmith
date: 2011-03-04 00:42:25
summary: Fixed entropy field.
affected #: 1 file (11 bytes)
--- a/yt/data_objects/universal_fields.py Thu Mar 03 18:23:35 2011 -0500
+++ b/yt/data_objects/universal_fields.py Thu Mar 03 18:42:25 2011 -0500
@@ -289,9 +289,9 @@
add_field("Pressure", function=_Pressure, units=r"\rm{dyne}/\rm{cm}^{2}")
def _Entropy(field, data):
- return (kboltz/mh) * data["Temperature"] / \
- (data["MeanMolecularWeight"] * data["Density"]**(2./3.))
-add_field("Entropy", units=r"\rm{ergs}\/\rm{cm}^{2}",
+ return kboltz * data["Temperature"] / \
+ (data["NumberDensity"]**(data.pf["Gamma"] - 1.0))
+add_field("Entropy", units=r"\rm{ergs}\ \rm{cm}^{2}",
function=_Entropy)
def _Height(field, data):
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