[yt-dev] definition (source code) of virial_mass(virial_overdensity=200.0, bins=300)

Elizabeth Tasker tasker at astro1.sci.hokudai.ac.jp
Sat Jun 7 05:31:50 PDT 2014


Hi Reju,

If you want to see exactly what the function looks like, you can just examine you source directly for yt.

e.g. go into 

~/yt/src/yt-hg

and then grep for “virial_mass” (bearing in mind there are subdirectories). So:

grep virial_mass */*/*/*py

will tell you that this particular routine lives in:

~/yt/src/yt-hg/yt/analysis_modules/halo_finding/halo_objects.py

def virial_mass(self, virial_overdensity=200., bins=300):
.
.
.


Hope that helps!

If you explain a more clearly what you’d like a new function to do, we might be able to help a little more or point you to similar examples.

Elizabeth



On Jun 7, 2014, at 9:18 PM, Reju Sam John <rejusamjohn at gmail.com> wrote:

> Where can I find the definition (source code) of the following function  ?
> 
> virial_mass(virial_overdensity=200.0, bins=300)
> 
> Like this function I have to create a new function for my derived field. 
> 
> -- 
> Reju Sam John
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20140607/05fb3a51/attachment.html>


More information about the yt-dev mailing list