[yt-users] Physical constants list

Nathan Goldbaum nathan12343 at gmail.com
Tue Jun 13 11:02:38 PDT 2017


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170613/e845a444/attachment.htm>


More information about the yt-users mailing list