camb.postborn

camb.postborn.get_field_rotation_BB(params, lmax=None, acc=1, CMB_unit='muK', raw_cl=False, spline=True)[source]

Get the B-mode power spectrum from field post-born field rotation, based on perturbative and Limber approximations. See arXiv:1605.05662.

Parameters:
  • paramsmodel.CAMBparams instance with cosmological parameters etc.
  • lmax – maximum L
  • acc – accuracy
  • CMB_unit – units for CMB output relative to dimensionless
  • raw_cl – return C_L rather than L(L+1)C_L/2/pi
  • spline – return UnivariateSpline, otherwise return tuple of lists of L and C_L
Returns:

UnivariateSpline (or arrays of sampled L and) L^2 C_L^{BB}/(2 pi) (unless raw_cl, in which case just C_L^{BB})

camb.postborn.get_field_rotation_power(params, kmax=100, lmax=20000, non_linear=True, z_source=None, k_per_logint=None, acc=1, lsamp=None)[source]

Get field rotation power spectrum, C_L^{omegaomega}, following arXiv:1605.05662 Uses lowest Limber approximation.

Parameters:
  • paramsmodel.CAMBparams instance with cosmological parameters etc.
  • kmax – maximum k (in Mpc^{-1} units)
  • lmax – maximum L
  • non_linear – include non-linear corrections
  • z_source – redshift of source. If None, use peak of CMB visibility for CMB lensing
  • k_per_logint – sampling to use in k
  • acc – accuracy setting, increase to test stability
  • lsamp – array of L values to compute output at. If not set, set to sampling good for interpolation
Returns:

L, C_L^{omegaomega}, the L sample values and corresponding rotation power