Thanks a lot!

2017-10-16 15:23 GMT-04:00 Nathan Goldbaum <nathan12343@gmail.com>:
Excuse me, you're right - dark matter is particle type 1. These are all defined in the enzo source code, right here:

https://bitbucket.org/enzo/enzo-dev/src/787a66541d9f454e1796a103edf006145b32d244/src/enzo/macros_and_parameters.h?at=week-of-code&fileviewer=file-view-default#macros_and_parameters.h-467

Enzo doesn't have gas particles so (even though it gets an entry as particle type 0 in that file) in practice there aren't any gas particles in any real Enzo output. Instead the gas fields are defined on the Enzo AMR mesh.

On Mon, Oct 16, 2017 at 2:17 PM, tyuta <y0u1t1a5.t@gmail.com> wrote:
Dear yt users,

Hi, I want to know about particle filters. I learned that I can specify some particle type by doing like this:

def stars(pfilter, data):
    filter = data[(pfilter.filtered_type, "particle_type")] == 2
    return filter

I learned that the filter for star is No.2 from this example. What about other particles like gas or dark matter ? (Nathan kindly told me that dark matter is 0, but fragmentary information I got from google search suggest that it's 1, so I'm confused...) Is there any good documentation for this?
I'm working with Enzo data.

Best,
Y.T.


_______________________________________________
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