Most Efficient Approach to 1D profiles from RAMSES simulations

22 views
Skip to first unread message

Eliza Diggins

unread,
Feb 1, 2023, 4:21:15 PM2/1/23
to pynbody-users
Hey all,

I'm interested in being able to generate one dimensional profiles which sample from the origin through some direction (perhaps sampling from a constant solid angle) at different values of the radius from the center or from some fixed point.

I have simulations that display shocks and I'd like to look at temperature and density profiles across those shocks.

Is there a way to implement that in PyNbody? 

Best,
Eliza Diggins

Andrew Pontzen

unread,
Feb 2, 2023, 3:00:06 AM2/2/23
to pynbody-users
The most efficient thing you can do in this case is make an image in the normal way, then sample your 1d lines through that image. That will let you sample whichever angle you like within a single plane. If you want to sample over solid angles, you can make a range of such images having rotated the snapshot appropriately each time.

Hope that helps!

All the best

Andrew Pontzen


--
You received this message because you are subscribed to the Google Groups "pynbody-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pynbody-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynbody-users/ae8ac29f-6538-404e-8758-118256ea9aden%40googlegroups.com.

Andrew Pontzen

unread,
Feb 2, 2023, 4:15:48 AM2/2/23
to pynbody-users
PS there is also the option to make a 3d grid (pynbody.sph.to_3d_grid if I remember correctly) which you could also shoot lines through — this will be more efficient if you want to generate a lot of sight-lines
Reply all
Reply to author
Forward
0 new messages