Jacob Hummel edited 2-Units.tex  about 8 years ago

Commit id: cac007ce85716dedd62764d8af9abf0192e34d10

deletions | additions      

       

\label{sec:units}  \code{Gadfly} implements a minimal units-handling for converting between the native code units in which \textsc{gadget} stores data and the physical units of interest to astronomers.   However, \textscs{gadget}'s code units may be modified to suit the problem at hand, an thus must be specified at \code{gadfly} initialization if they differ from the defaults listed in Table \ref{code_unit_defaults} below.  Conversion from code units to the physical units system of choice is handled at loading.  The default units for length, time, mass, etc. can be specified at initialization, along with whether to use physical or comoving coordinates (for cosmological simulations) and whether to factor the Hubble constant out of the reported units (i.e., units of Mpc vs. Mpc/h).