Hi,

If you want the particle data itself into an array, you can access it using
the sphere object like you would access a field.  For instance,

sp = ds.sphere( ...
sp["all", "particle_velocity"]

would get you velocity of all of the particles.  If you want to access
these off of a ParticlePhasePlot, it's a subclass of PhasePlot and should
have the .x and .y and [] attributes I mentioned earlier.

-Matt

On Tue, May 28, 2024 at 6:14 AM <[email protected]> wrote:

> Dear Matthew,
>
> Thanks for your help, and I can deal with the sphere object now.
>
> But I donot know how to do these similar things with function
> "ParticlePhasePlot",
> Or how to directly turn the particle data into np.array
>
> can you give some suggestions, thanks a lot!
>
>
>
> best wishes,
> Yifeng He
> _______________________________________________
> yt-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/yt-users.python.org/
> Member address: [email protected]
>
_______________________________________________
yt-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/yt-users.python.org/
Member address: [email protected]

Reply via email to