What is code units? How to convert it into kps or mps

Dear all,
vr = halo[i].virial_radius(virial_overdensity=200.0, bins=100)
will return the virial radius of the halo in code units. What is code units? How to convert it into kps or mps? -- Reju Sam John

Hi Reju, Code units are the units that are used within the simulation. If you’re running a cosmological model, then these units are specified via the choice “G = 1”. To convert to something more digestible, I believe you can do: vr/pf.units[“mpc”] or whatever unit you’d like, if not megaparsecs. Elizabeth On Jun 11, 2014, at 5:11 PM, Reju Sam John <rejusamjohn@gmail.com> wrote:
Dear all,
vr = halo[i].virial_radius(virial_overdensity=200.0, bins=100)
will return the virial radius of the halo in code units.
What is code units? How to convert it into kps or mps? -- Reju Sam John _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Elizabeth, Thank you.... thank you very much. On Wed, Jun 11, 2014 at 1:47 PM, Elizabeth Tasker < tasker@astro1.sci.hokudai.ac.jp> wrote:
Hi Reju,
Code units are the units that are used within the simulation. If you’re running a cosmological model, then these units are specified via the choice “G = 1”.
To convert to something more digestible, I believe you can do:
vr/pf.units[“mpc”]
or whatever unit you’d like, if not megaparsecs.
Elizabeth
On Jun 11, 2014, at 5:11 PM, Reju Sam John <rejusamjohn@gmail.com> wrote:
Dear all,
vr = halo[i].virial_radius(virial_overdensity=200.0, bins=100)
will return the virial radius of the halo in code units.
What is code units? How to convert it into kps or mps? -- Reju Sam John _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- Reju Sam John
participants (2)
-
Elizabeth Tasker
-
Reju Sam John