Skip to main content
Sandbox Physics
Phase-transition gravitational waves

Recompute a benchmark sound-wave spectrum

By the end of this guide you will have recomputed, on your own computer, the sound-wave spectrum of three fixed phase-transition benchmarks and checked every intermediate number against a published value or an independent calculation. Open arXiv:2403.03723v2 at section 2.2.1 beside the package. The script needs only Python 3.9 or newer and no network.

What is in the package

The ZIP contains four files. inputs/benchmarks.json holds the three benchmarks, four deliberately invalid cases and a seven-row table of the largest strength with a deflagration profile, from our own bag-model solver. recompute_benchmark.py does the calculation with the Python standard library only. expected.json is the output we obtained with Python 3.9.6. README.md lists units, conventions and known limits.

Units: β/H∗\beta/H_* is dimensionless, the wall speed is in units of cc, the temperature in GeV, frequencies in Hz, and every energy density is the dimensionless h2ΩGWh^2\Omega_{\rm GW}. The number of relativistic degrees of freedom is fixed at g∗=100g_*=100 and assumed equal to the entropy count.

The output is a parametric template evaluated at fixed inputs. Nothing in the package solves the Einstein equations or the fluid equations in time.

Reading: Original benchmark tutorial materials (standard-library Python) · Caprini et al., Gravitational waves from first-order phase transitions in LISA: reconstruction pipeline and physics interpretation, arXiv:2403.03723v2 / JCAP 10 (2024) 020

Run it and compare

The first command writes your result. The second compares every number with expected.json and prints MATCH when all agree to a relative tolerance of 10−910^{-9}. A mismatch lists the path of each differing field, which tells you where your environment or an edit changed the calculation.

python3 recompute_benchmark.py inputs/benchmarks.json > my-output.json
python3 recompute_benchmark.py inputs/benchmarks.json --compare expected.json

Reading: Original benchmark tutorial materials (standard-library Python) · Caprini et al., Gravitational waves from first-order phase transitions in LISA: reconstruction pipeline and physics interpretation, arXiv:2403.03723v2 / JCAP 10 (2024) 020

Follow one benchmark through every step

Open the entry detonation-lisa-band: α=0.2\alpha=0.2, β/H∗=50\beta/H_*=50, ξw=0.9\xi_w=0.9, T∗=200 GeVT_*=200\,\mathrm{GeV}. The script first decides whether the wall is a deflagration, a hybrid or a detonation. The Jouguet speed is 0.8280.828, so this is a detonation. The efficiency fit then gives κ=0.2742\kappa=0.2742, and K=0.02742K=0.02742.

Next come the bubble size H∗R∗=0.05273H_*R_*=0.05273, the fluid speed vˉf=0.1434\bar v_f=0.1434 and the shock time H∗τsh=0.3676H_*\tau_{\rm sh}=0.3676. The field lifetimeLimitedBy reads shock formation. The shell thickness Δw=0.3585\Delta_w=0.3585 and H∗,0=3.30×10−5 HzH_{*,0}=3.30\times10^{-5}\,\mathrm{Hz} give f1=0.1252 mHzf_1=0.1252\,\mathrm{mHz} and f2=0.8729 mHzf_2=0.8729\,\mathrm{mHz}.

The amplitude follows: h2Ωint=2.630×10−11h^2\Omega_{\rm int}=2.630\times10^{-11}, h2Ω2=1.419×10−11h^2\Omega_2=1.419\times10^{-11}, and a numerical peak of 1.595×10−111.595\times10^{-11} at 0.677 mHz0.677\,\mathrm{mHz}. The peak lies between the two breaks because the middle segment still rises as ff. Finally the four-year SNR with the A and E channels is 634.

Most common mistake: using the wall speed instead of max⁡(ξw,cs)\max(\xi_w,c_s) in R∗R_*. For a detonation they agree, so the error only shows in the slow-deflagration benchmark, where it would shrink H∗R∗H_*R_* from 0.01690.0169 to 0.01170.0117.

Reading: Caprini et al., Gravitational waves from first-order phase transitions in LISA: reconstruction pipeline and physics interpretation, arXiv:2403.03723v2 / JCAP 10 (2024) 020 · Espinosa, Konstandin, No & Servant, Energy budget of cosmological first-order phase transitions, arXiv:1004.4187v1 / JCAP 1006:028 (2010)

Checks that do not reuse the template

Each result carries a redshiftCheck block. It recomputes H∗,0H_{*,0} from entropy conservation, the Friedmann equation, the CMB temperature 2.7255 K2.7255\,\mathrm{K} and today's entropy count 3.9093.909, then compares it with the template constant. At 200 GeV it gives 3.2934×10−5 Hz3.2934\times10^{-5}\,\mathrm{Hz} against 3.3×10−53.3\times10^{-5}; the dilution factor gives 1.6404×10−51.6404\times10^{-5} against 1.64×10−51.64\times10^{-5}.

The field expansionSuppressionUpsilon gives the factor Υ\Upsilon of Guo et al. In our tests a fourth-order Runge–Kutta integral of the source weight (as/a)3(a_s/a)^3 over radiation-dominated expansion reproduces their closed form, which checks it without trusting the printed equation. For the benchmark Υ=0.241\Upsilon=0.241, so their rule would lower the amplitude by a third relative to the minimum rule.

In the repository tests, the efficiency fits are compared with our own profile solutions (largest relative difference 7.4 percent away from the Jouguet speed), and our noise curve reproduces the low-frequency ratio 20/920/9 to the independent sensitivity curve of Robson, Cornish and Liu.

Reading: Caprini et al., Gravitational waves from first-order phase transitions in LISA: reconstruction pipeline and physics interpretation, arXiv:2403.03723v2 / JCAP 10 (2024) 020 · Guo, Sinha, Vagie & White, Phase transitions in an expanding universe: stochastic gravitational waves in standard and non-standard histories, arXiv:2007.08537v3 / JCAP 01 (2021) 001

Four cases the script refuses

The failureCases list is part of the test. A hybrid wall at ξw=0.7\xi_w=0.7 with α=0.2\alpha=0.2 is refused because the shell rule ∣ξw−cs∣|\xi_w-c_s| is stated only for subsonic deflagrations and detonations. A wall at exactly the sound speed is refused for the same reason. The 2020 LISA review warns that near the Chapman–Jouguet speed the shells become thin and the spectral shape fails.

A strong, slow deflagration with α=0.5\alpha=0.5 and ξw=0.25\xi_w=0.25 is refused because no deflagration profile exists; our bound there is α=0.429\alpha=0.429. A transition with β/H∗=2.5\beta/H_*=2.5 is refused because the bubbles would reach the Hubble radius and the flat-space template no longer applies. If your edited script returns a spectrum for any of these, the edit has removed a physical check.

Reading: Caprini et al., Detecting gravitational waves from cosmological phase transitions with LISA: an update, arXiv:1910.13125v2 / JCAP (2020), doi:10.1088/1475-7516/2020/03/024 · Original benchmark tutorial materials (standard-library Python)

Errors you should carry with the numbers

The efficiency fit is quoted to better than 15 percent, and that error enters the amplitude squared through K2K^2. The amplitude constant Asw=0.11A_{\rm sw}=0.11 is an average over simulations with different α\alpha and ξw\xi_w; we did not find a quoted spread in the section we read. The three published shock-time definitions differ by up to 50 percent for this benchmark.

The optical-metrology noise in arXiv:2403.03723v2 is printed with a corner of 2×10−3 mHz2\times10^{-3}\,\mathrm{mHz}. We use 2 mHz, the value in the earlier LISA noise model of Robson, Cornish and Liu. The literal printed value would raise the benchmark SNR from 634 to 716, a 13 percent change. Treat the SNR as a noise-only estimate: the 2024 paper expects the astrophysical foregrounds to reduce the reach of LISA significantly.

Checklist for your next template paper: write down units and g∗g_*; find which wall regimes the shell rule covers; recompute the redshift constants yourself; find the lifetime rule and its definition of fluid speed; list the cases the formula should refuse.

Reading: Espinosa, Konstandin, No & Servant, Energy budget of cosmological first-order phase transitions, arXiv:1004.4187v1 / JCAP 1006:028 (2010) · Caprini et al., Gravitational waves from first-order phase transitions in LISA: reconstruction pipeline and physics interpretation, arXiv:2403.03723v2 / JCAP 10 (2024) 020

Exercises and explained answers

  1. Change the temperature of detonation-lisa-band to 1000 GeV and rerun. Which fields change, and by what factor?

    Read the explanation

    Only the frequencies: H∗,0H_{*,0}, f1f_1, f2f_2 and the peak frequency rise by a factor 5. The amplitudes are unchanged at fixed g∗g_*. The SNR changes because the spectrum moves across the noise curve, so it is not a simple factor.

  2. Set the wall speed of the slow-deflagration benchmark to 0.55. What happens and why?

    Read the explanation

    The script raises OutsideTemplateDomain: 0.55 is within 0.05 of the sound speed 0.577, where the shell becomes thin and the template is not calibrated. The margin of 0.05 is our choice; the paper only states which regimes the rule covers.

Try the prediction

Check your output against the Lab readouts

  1. Choose the preset Ringing in the LISA band, which uses the same four parameters, and compare the four readouts with your output file.
  2. Move the wall speed to 0.7 and confirm that the Lab refuses the hybrid case, as the script does.

Benchmark tutorial materials

Download the offline tutorial ZIP · Read units, versions and limits

Standard-library Python recomputes the source lifetime, the two break frequencies, the template spectrum today and the LISA signal-to-noise ratio for three fixed benchmarks, and shows how four failure cases are rejected. It evaluates a published parametric template; it does not solve the Einstein or fluid equations.

Files, sizes and SHA-256

Sources and calculation scope

  1. Caprini et al., Gravitational waves from first-order phase transitions in LISA: reconstruction pipeline and physics interpretation, arXiv:2403.03723v2 / JCAP 10 (2024) 020

    Read in the arXiv v2 LaTeX source: abstract and introduction, section 2.2.1 (sound-wave double broken power law, amplitude, mean bubble separation and redshift factors), section 3 and appendix A (two-parameter LISA noise and response) and the opening of section 5 on reconstruction. The noise equation prints the optical-metrology corner as 2e-3 mHz; our materials use 2 mHz and report both results. Figure 2 was read from its caption only.

  2. Caprini et al., Detecting gravitational waves from cosmological phase transitions with LISA: an update, arXiv:1910.13125v2 / JCAP (2020), doi:10.1088/1475-7516/2020/03/024

    Read the LaTeX source in two places: the sound-wave signal section (signal.tex, about lines 180 to 260) and the definition of the root-mean-square fluid velocity and kinetic-energy fraction (prelim.tex, lines 171 to 182). Used for the earlier shock-time definition only.

  3. Espinosa, Konstandin, No & Servant, Energy budget of cosmological first-order phase transitions, arXiv:1004.4187v1 / JCAP 1006:028 (2010)

    Read the fluid equations for a single self-similar bubble, the deflagration, hybrid and detonation profiles, and the appendix-B efficiency fits with their stated precision of better than 15 percent. Our own profile solutions in the bag model check the fits independently.

  4. Guo, Sinha, Vagie & White, Phase transitions in an expanding universe: stochastic gravitational waves in standard and non-standard histories, arXiv:2007.08537v3 / JCAP 01 (2021) 001

    Read the main LaTeX file for the expansion suppression factor for a radiation-dominated universe. It is shown beside the template lifetime factor for comparison; the template itself does not use it.

  5. Original benchmark tutorial materials (standard-library Python)

    Our script, three fixed benchmarks, four failure cases and the expected output. It evaluates the published parametric template, the efficiency fits and the noise model; it does not solve the Einstein or fluid equations and contains no browser Engine code, paper text or LISA data.

Keep reading

What this page links to directly

Phase-transition gravitational waves · Reading path

From bubble nucleation to the spectrum LISA could see

  1. ArticleWhat a bubbling early universe would leave in gravitational waves
  2. ArticleHow bubbles appear and fill space
  3. ArticleHow bubble walls push the plasma
  4. ArticleFrom the sound lifetime to the spectrum today
  5. You are hereRecompute a benchmark sound-wave spectrum
  6. ArticleRead the LISA sound-wave template and its limits
Something broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy