*TemperatureUnits = 1.88e6*POW(ComovingBoxSize,2)*OmegaMatterNow*
(1 + InitialRedshift);
But the correct pre-factor is actually 1.81723e6.
[T] = [P] / [rho] * m_H / k
= [u] * m_H / k
= [v]^2 * m_H / k
= (1.22475e7)**2 * 1.67262158e-24 / 1.3806503e-23 *
ComovingBoxSize**2 * OmegaMatterNow * (1 + InitialRedshift)
= 1.81723e6 * ComovingBoxSize**2 * OmegaMatterNow * (1 + InitialRedshift)
So that's a 3.5% error. Not a big deal, but we might as well fix it,
right? It will, however, probably break the gold standard on a few
tests...
Should I submit a pull request to fix this?
Mike
--
*********************************************************************
* *
* Dr. Michael Kuhlen Theoretical Astrophysics Center *
* email: m...@astro.berkeley.edu UC Berkeley *
* cell phone: (831) 588-1468 B-116 Hearst Field Annex # 3411 *
* skype username: mikekuhlen Berkeley, CA 94720 *
* *
*********************************************************************
Of course, it could definitely change results from the gold standard,
but I'd maintain that if things change due to an improvement, the
previous standard should be revised.
------------------------------------
Dr. Daniel R. Reynolds
Assistant Professor of Mathematics
Southern Methodist University
214-768-4339
http://faculty.smu.edu/reynolds/
------------------------------------
--You received this message because you are subscribed to the Google Groups "enzo-dev" group.
To post to this group, send email to enzo...@googlegroups.com.
To unsubscribe from this group, send email to enzo-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/enzo-dev?hl=en.