[Yt-svn] yt: Adding conversion factor for internal energy.

hg at spacepope.org hg at spacepope.org
Tue Dec 7 13:49:25 PST 2010


hg Repository: yt
details:   yt/rev/5742a9d64de2
changeset: 3579:5742a9d64de2
user:      Matthew Turk <matthewturk at gmail.com>
date:
Tue Dec 07 13:49:22 2010 -0800
description:
Adding conversion factor for internal energy.

diffstat:

 yt/frontends/flash/data_structures.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r bdc4b6935e3f -r 5742a9d64de2 yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py	Tue Dec 07 13:28:05 2010 -0800
+++ b/yt/frontends/flash/data_structures.py	Tue Dec 07 13:49:22 2010 -0800
@@ -229,6 +229,7 @@
     def _setup_comoving_units(self):
         self.conversion_factors['dens'] = (1.0 + self.current_redshift)**3.0
         self.conversion_factors['pres'] = (1.0 + self.current_redshift)**1.0
+        self.conversion_factors['eint'] = (1.0 + self.current_redshift)**-2.0
         self.conversion_factors['temp'] = (1.0 + self.current_redshift)**-2.0
         self.conversion_factors['velx'] = (1.0 + self.current_redshift)
         self.conversion_factors['vely'] = self.conversion_factors['velx']
@@ -242,6 +243,7 @@
     def _setup_nounits_units(self):
         self.conversion_factors['dens'] = 1.0
         self.conversion_factors['pres'] = 1.0
+        self.conversion_factors['eint'] = 1.0
         self.conversion_factors['temp'] = 1.0
         self.conversion_factors['velx'] = 1.0
         self.conversion_factors['vely'] = 1.0



More information about the yt-svn mailing list