tests.paper.ssm_compare

Compare SSM prediction with data Creates and plots velocity and GW power spectra from SSM

Modified from sound-shell-model/paper_ssm_prace/figures/ssm_compare.py

Functions

tests.paper.ssm_compare.all_generate_ps_prace(save_ids=('', ''), show=True, debug=False)

Generate power spectra with Prace17 SSM parameters. Save data files and graphs. Returns U-bar-f^2 and GW power as tuple of lists.

Parameters:
  • save_ids (Tuple[str, str])

  • debug (bool)

tests.paper.ssm_compare.generate_ps(vw, alpha, method=ssm.Method.E_CONSERVING, v_xi_file=None, save_ids=(None, None), show=True, debug=False)

Generates, plots velocity and GW power as functions of \(kR_*\). Saves power spectra in files pow_v_*, pow_gw_*…<string>.txt if save_id[0]=string. Saves plots in files pow_v_*, pow_gw_*…<string>.pdf if save_id[1]=string. Shows plots if show=True Returns <V^2> and Omgw divided by (Ht.HR*).

Parameters:
  • vw (float)

  • alpha (float)

  • method (Method)

  • save_ids (Tuple[str, str])

  • show (bool)

  • debug (bool)