I am calculating specific angular momentum of a subhalo based on their particles, but when I compare it with the SubhaloSpin, I get different values. Am I missing something? For reference I have added my code here:
Now, If I compare it with the "SubhaloSpin", I dont get similar values.
il.groupcat.loadSingle(basePath, snapNum, subhaloID= subhalo_no)["SubhaloSpin"]/h
Dylan Nelson
29 Jul
You are computing the spin only for stars, but the catalog values are for all particle/cell types.
In addition, the catalog values will include a correction for Hubble expansion.
I am calculating specific angular momentum of a subhalo based on their particles, but when I compare it with the SubhaloSpin, I get different values. Am I missing something? For reference I have added my code here:
Now, If I compare it with the "SubhaloSpin", I dont get similar values.
il.groupcat.loadSingle(basePath, snapNum, subhaloID= subhalo_no)["SubhaloSpin"]/h
You are computing the spin only for stars, but the catalog values are for all particle/cell types.
In addition, the catalog values will include a correction for Hubble expansion.
Perhaps these are the only two differences.
Thank you very much, Dylan!