Extracting major mergers within a given redshift

Jasmine Fitzsimons

Hello!
I am attempting to write a code to extract the subhalo IDs of subhalos that undergo a major merger (mass ratio 1/5) at a given point in time. I am a bit stuck - these are the main points that I have gathered from reading various papers and discussion posts - do you agree:

  • define the mass ratio at t_max when the secondary subhalo reaches maximum mass
  • define when a merger happens when the secondary subhalo ID no longer exists

I am just not sure how to structure my code in order to do this - any help would be appreciated - my coding skills are limited.

Thanks!

Dylan Nelson
  • 9 Feb

There is an example function counting mergers in the SubLink python file.

You could modify this, or just use it and apply your redshift restriction after.

Jasmine Fitzsimons
  • 10 Feb

Ok thank you this is helpful - so I was able to use the code you suggested to find the number of mergers along a MPB for a given subhalo. Now I want to identify mergers a different way - I need to search subhalos within a given snapshot and find which have the same progenitor subhalo (indicating they merged) and extract the progenitor snapshot as well. Do you have a sample code for this?

  • Page 1 of 1