[yt-users] Physical constants list

Scott Feister sfeister at gmail.com
Tue Jun 13 14:41:23 PDT 2017


Sam,

Outside of yt, see also *scipy.constants*:

https://docs.scipy.org/doc/scipy-0.19.0/reference/constants.html

-Scott


Scott Feister, Ph.D.
Postdoctoral Researcher, Flash Center for Computational Science
University of Chicago, Department of Astronomy and Astrophysics

On Tue, Jun 13, 2017 at 1:02 PM, Nathan Goldbaum <nathan12343 at gmail.com>
wrote:

> Hi Sam,
>
> Try this:
>
> >>> import yt.units as u
> >>> help(u)
>
> On my machine, this prints out:
>
> http://paste.yt-project.org/show/7182/
>
> The specific symbol you are looking for is defined in yt.units as mh,
> mass_hydrogen, mass_hydrogen_cgs. All of these names are interchangeable.
>
> On Tue, Jun 13, 2017 at 12:54 PM, Sam Patrick <sam.patrick at port.ac.uk>
> wrote:
>
>> Hi,
>>
>> I'm relatively new to yt and was wondering if there was any resource
>> outlining the names of all physical constants programed into yt and how to
>> access them i.e:
>>
>> Newton's constant: G
>> Boltzmann constant; kboltz
>> Speed of light: c
>> etc.
>>
>> specifically I need the name for the mass of hydrogen used within the
>> program but I can foresee such a list being very useful in the future.
>>
>> many thanks,
>> Sam P
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170613/e03fa58d/attachment-0001.html>


More information about the yt-users mailing list