Skip to content

Pseudo-evolution for all SO definitions - #237

Merged
robjmcgibbon merged 4 commits into
masterfrom
flow_rate_fixes
Sep 30, 2026
Merged

robjmcgibbon merged 4 commits into
masterfrom
flow_rate_fixes

Conversation

@robjmcgibbon

@robjmcgibbon robjmcgibbon commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

When computing the flow rates we account for "pseudo-evolution" (the fact that \rho_{crit} evolves, which makes the SO radius evolve). There was a bug (thanks to Ruby for finding) where we always used the z=0 value of the Hubble parameter in this calculation, which was incorrect. The current derivation of the pseudo-evolution term is only valid for R200c.

This PR switches to a slightly different derivation of the pseudo-evolution term. It is now valid for all spherical overdensity definitions we compute in SOAP. The correct version of the Hubble parameter is now used.

Note that we don't add the Hubble flow to the particle velocities when determining if they are inflowing or outflowing. I don't think this is correct, but it seems to be the convention for the project that are studying inflows/outflows (including people who compute the flow rates themselves).

@robjmcgibbon
robjmcgibbon merged commit 80b7a15 into master Sep 30, 2026
2 checks passed
@robjmcgibbon
robjmcgibbon deleted the flow_rate_fixes branch September 30, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant