Open alexander-mead opened 4 years ago
Yes, it at assumes all sources scale the same way (by the ratio of the nonlinear to nonlinear that you do calculate). Clearly it's wrong, though it will be right in the linear limit and approximately correct in most cases. In principle there should be separate results for each density and the velocity (the latter is implemented in SecondOrderPK but only used for high-redshift 21cm).
If I run the above code I get the following printed out: 810.7663200215078 820.4239789024388
I'm confused by the fact that these numbers are different, since the HMcode model for the non-linear power spectrum only calculates the result for the total matter power spectrum, and has not been calibrated for the non-linear CDM-CDM power spectrum, or anything else like that.
I checked and the two results are also different if
halofit_version='takahashi'
and HALOFIT was also only calibrated to provide the total matter power spectrum.In principle, one ought to be able to calculate the non-linear (cross) power for any combination of
var1
andvar2
, but the above models have not been calibrated to do this. I'm not sure what either calculation would be doing when eithervar1
orvar2
is set todelta_cdm
. Should an error message be generated instead of a result?