Skip to content

Use pre-reionization x_e for cs2 to remove high‑k P(k) dependence on WantCls (fixes #171)#180

Merged
cmbant merged 5 commits intomasterfrom
fix/cs2-use-xe_pre_reion
Aug 22, 2025
Merged

Use pre-reionization x_e for cs2 to remove high‑k P(k) dependence on WantCls (fixes #171)#180
cmbant merged 5 commits intomasterfrom
fix/cs2-use-xe_pre_reion

Conversation

@cmbant
Copy link
Copy Markdown
Owner

@cmbant cmbant commented Aug 22, 2025

Compute baryon cs2 using the pre‑reionization ionization fraction (xe_a) rather than the post‑reionization x_e. This removes the high‑k dependence of linear P(k) on WantCls when reionization is enabled.

Expected fractional change in linear P(k) for τ=0.05 (changed/new divided by baseline), k in h/Mpc:

  • z = 0:
    • k ∈ [1, 10]: ≤ 0.002%
    • k ∈ [10, 100]: ≤ 0.21%
    • k ∈ [100, 1000]: up to ~16.7% (decrease)
  • z = 3:
    • k ∈ [1, 10]: ≤ 0.001%
    • k ∈ [10, 100]: ≤ 0.12%
    • k ∈ [100, 1000]: up to ~9.3% (decrease)

Plot: docs/cs2_compare_tau005.png

No public API changes.

Fixes #171.

cmbant added 2 commits August 22, 2025 15:11
…han post-reionization x_e; avoids high-k P(k) dependence on WantCls when reionization enabled (fixes #171)
@cmbant
Copy link
Copy Markdown
Owner Author

cmbant commented Aug 22, 2025

image

@cmbant cmbant merged commit 2c9b1db into master Aug 22, 2025
11 checks passed
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.

P(k) at high k depends on value of WantCls

1 participant