[yt-users] add particle information to ds

Nathan Goldbaum nathan12343 at gmail.com
Thu Aug 11 08:35:51 PDT 2016


I think we'd need to add support for reading particle data to the athena
frontend. I think the main reason this hasn't been done yet is lack of
available test datasets. If you'd like to make one or more test datasets
available to us (they will live on yt-project.org/data so we can use them
for testing and debugging going forward), someone could try to add support
for reading particle data to the Athena frontend.

To answer your question, no, there isn't a way to add particle fields to an
athena dataset without modifying the athena frontend.

That said, you might be able to cheat and load in the particle fields using
the stream frontend to reload your data as an in-memory dataset - in
particular load_uniform_grid or load_amr_grids. Of course this is sort of a
hack, ideally we'd just add particle support to the athena frontend.

-Nathan

-Nathan

On Thu, Aug 11, 2016 at 10:32 AM, Chang-Goo Kim <cgkim at astro.princeton.edu>
wrote:

> Sorry for confusion.
>
> I have a separate vtk file for star particles. Just wonder whether I can
> add this to original dataset as fields to handle them together.
>
> Thanks,
> Chang-Goo
>
> On Wed, Aug 10, 2016 at 3:19 PM, John Zuhone <jzuhone at gmail.com> wrote:
>
>> Hi Chang-Goo,
>>
>> > When I load the dataset from Athena and I have star particle mass,
>> position, velocity, age information separately,
>>
>> Sorry, I’m a bit confused as to what you mean by this, because as far as
>> I know we don’t have particle support for Athena data yet. Do you actually
>> see the particle data when you load the dataset? Also, is this the old
>> Athena or Athena++?
>>
>> > how can I add particle information to yt dataset.
>>
>> I think by this you mean getting the particle fields into yt, correct?
>> Just making sure.
>>
>> Is the data part of the Athena file itself or is it in a separate file?
>>
>> Best,
>>
>> John
>>
>> > On Aug 10, 2016, at 2:24 PM, Chang-Goo Kim <changgoo at princeton.edu>
>> wrote:
>> >
>> > Hi all,
>> >
>> > I'm analysing data from Athena simulations with star particles. When I
>> load the dataset from Athena and I have star particle mass, position,
>> velocity, age information separately, how can I add particle information to
>> yt dataset. I tried to look up the hep, but I cannot find any good
>> reference for this issue.
>> >
>> > Thanks,
>> > Chang-Goo
>> > _______________________________________________
>> > 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
>>
>
>
> _______________________________________________
> 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/20160811/abc72401/attachment.html>


More information about the yt-users mailing list