lesgourg / class_public

Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
234 stars 290 forks source link

Dynamically changing DM temperature #330

Open NolanSmyth opened 4 years ago

NolanSmyth commented 4 years ago

I'm trying to calculate the matter power spectrum for a dark matter particle that kinetically recouples. That is, I need to dynamically change the phase space distribution so that it evolves with the temperature of the dark matter.

Hitherto, I have not been able to accomplish this with CLASS. Ideally I would take a parametric form for the phase space distribution that varies with T_dm. Is this functionality available with CLASS? Or is there a way I could implement something like this without too much pain? From what I can tell, I can only pass a single psd file and a single temperature, T_ncdm, at decoupling, which I believe just redshifts for later times. Thank you in advance.

lesgourg commented 4 years ago

Indeed CLASS is set for non-cold dark matter with a static psd. Entering a dynamical one is a substantial change, but doable. Some people did it recently, you may look at [https://arxiv.org/abs/2004.06114]