-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating zoom IC with gas and custom particle types #105
Comments
Yes, because gadget uses particle types to identify gas, it didn't seem to make sense to have baryons and custom particle types simultaneously. Various flavours of gadget/arepo (e.g. Eagle and TNG) seem to have the facility to 'copy' zoom DM particles into gas for initialisation purposes, so that might be the way to go if you want to use custom particle types alongside gas. That said, from the looks of it, this would actually not be particularly hard to fix if it's important to your use case? |
I'm trying to replicate some MUSIC initial conditions, and for that, I would need to be able to differentiate between low-resolution dark matter particles from the ones in the zoomed region(s) + the gas particles. For the setup I'm interested in, i.e. a 75 Mpc/h box with 1024^3 particles in the coarse region and at least 4096^3 in the zoomed region, the amount of memory MUSIC requires due to its implementation is considerable. On top of that, the latest public release has no MPI implementation, so the memory requirements are too big for the machine I'm working on. I was hoping I could generate them with genetIC. |
Please try using this branch: #106 Hopefully this fixes your issue, let me know! |
I don't think it worked. Using the .param file I posted before now I get gas particles as type 1 GADGET particles and DM particles (both low and high-resolution ones) as type 5 GADGET particles. It seems that the "gadget_particle_type 1" line is setting the gas type instead of the high-resolution DM GADGET type. I want to keep gas as particle 0 and have particle 1 for high-resolution DM and particle type 5 for low-resolution DM. Am I missing something? |
I am not sure how this can be happening. It seems to work fine for me. (Note I had to add Could you post the output that genetIC gives you when you try? It should look like this:
|
I'm sorry, it does work as you mentioned. I was using the wrong parameter file, one with no gas activated. On a related note, I have a question about the setup of the gas particles. I see that gas particles in genetIC ICs share initial positions with high-resolution DM particles, whereas in MUSIC they appear to be shifted considerably from the high-resolution DM particles (although both share the same transfer function). Is that the intended behaviour? |
Great, I will merge this change. Yes it's intentional, we did some tests on this and found it made no difference. However it would not be very hard to shift them half a grid cell if needed (I think that's what MUSIC does if I remember correctly). |
Address issue #105: write out different particle types for DM with gas enabled
Perfect. Thanks for the help! |
Hi,
I'm trying to create hydro zoom initial conditions where the dark matter particles at every level have a different GADGET particle type so that I can check for contamination. My goal is to set the DM in the coarsest level to particle type 5 and in the zoomed region have the DM set to particle type 1 and the gas to particle type 0.
For a two-level grid, I believe this should be possible with the following parameter file:
However, the resulting IC defaults to particle type 1 for both the DM particles in the coarse and the zoomed region. Only by disabling the gas and creating DM-only ICs, i.e. commenting Ob in the parameter file, I can obtain the DM particle types I want.
I see that AddGasMapper() definition in gasmapper.hpp requires default particle types for DM, can that be changed after the initial gas particle assignment in the zoomed region?
The text was updated successfully, but these errors were encountered: