[yt-users] Particle profiles

Matthew Turk matthewturk at gmail.com
Mon Oct 25 17:53:28 PDT 2010


Yeah ... my face is a bit red.  This solution will almost certainly
work, and if it does it will be much faster.  In Enzo, the
Dark_Matter_Density field (if it's in your output) is a pre-computed
deposited field -- the same thing as particle_density[_pyx], except
without having to compute it on the fly in yt.  Thanks, Christine!  :)

-Matt

On Mon, Oct 25, 2010 at 5:39 PM, Christine Simpson
<csimpson at astro.columbia.edu> wrote:
> I believe you can use the field "Dark_Matter_Density" with
> add_profile_sphere, i.e.:
>
> pc.add_profile_sphere(25.0, "kpc",["RadiusMpc", "Dark_Matter_Density"],
> x_bounds = (4e-4, 0.025))
>
> Christine
>
> On Mon, 2010-10-25 at 20:27 -0400, Elizabeth Tasker wrote:
>> Hi,
>>
>> I'd like to plot dark matter particle density as a function of radius
>> for my particle-only simulation. Can I use add_profile_sphere, but for
>> particles rather than gas? I only have a single halo and I know the halo
>> it's centred in the middle of my box (or it better be, since I put it
>> there!).
>>
>> Is this possible?
>>
>> Thanks,
>>
>> Elizabeth
>> _______________________________________________
>> 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
>



More information about the yt-users mailing list