← Octo-TIGER / All test problemsSteady diffusion

Equilibrium sphere

A smooth spherical emitter balances outward radiation transport. An error-function solution describes its steady diffusion equilibrium.

The experiment

Physical setup

A Gaussian light source is centered in a stationary medium of prescribed opacity χ. It emits total luminosity ℒ over all space, with a smooth width w:

q(r) = ℒ exp(−r²/w²) / (π3/2 w³),   r = |x|

The domain starts from the steady diffusion solution on top of background Ebg. Boundaries are nonperiodic: ghost cells are fixed to cell averages of that same analytic equilibrium. The incoming background is part of this boundary state. The gas remains fixed; the source adds radiation energy and the medium damps flux.

The standard CGS templates use w = 6 × 10⁹ cm, χ = 1.6666666667 × 10−10 cm−1, Ebg = 1 erg/cm³, and ℒ = 2.698132122 × 10²⁹ erg/s. This is a smooth Gaussian emitter. The saved settings below give the actual values used.

The standard runner uses a uniform cubic grid with hydrodynamics and gravity disabled. Its CGS box spans −3 × 10¹⁰ to +3 × 10¹⁰ cm on each axis, with c = 2.99792458 × 10¹⁰ cm/s and default final time 4 s. A level has N = INX × 2level cells per side. Each completed run below lists its recorded parameters; template defaults are not substituted for missing metadata.

The comparison

How the reference is computed

In steady isotropic diffusion, D = c/(3χ), ∇ · F = q, and F = −DE. Integrating the enclosed Gaussian luminosity gives

E(r) = Ebg + [3χℒ/(4πc)] erf(r/w)/r
F(x) = [ℒ/(4πr³)] [erf(s) − 2s e−s²/√π] x,   s = r/w

The apparent singularities are removable: E(0) = Ebg + 3χℒ/(2π3/2cw) and F(0) = 0. The implementation uses series expansions near the origin.

Initial, boundary, and comparison states are cell averages evaluated with four-point Gauss–Legendre quadrature on each axis (64 samples per cell). The smooth-field averages therefore have quadrature error. The Gaussian source has an exact cell integral, evaluated as a product of three error-function differences:

q̄ = (ℒ/Δx³) ∏d=x,y,z ½ {erf[(xd + Δx/2)/w] − erf[(xd − Δx/2)/w]}

The source step adds Δt q̄ to energy and divides flux by 1 + cχΔt. The steady reference itself is independent of time.

What this test measures

This is a diffusion-limit equilibrium test. Nonlinear M1 has an anisotropic pressure at finite flux, so the diffusion solution need not remain exactly stationary in that model. Errors can reflect closure differences, transport/source splitting, discretization, and quadrature. The plots measure equilibrium drift and Cartesian directional effects as resolution changes.

Energy injected inside the finite cube should balance its outward transport and the change in stored energy. ℒ is the all-space luminosity; use the measured in-domain source budget rather than assuming the finite cube receives exactly ℒ. Symmetry can make net flux integrals very small, which is why their conservation normalization includes an energy-based scale.

Measured results

All resolutions

LevelGridBatch status
232³Ready
364³Waiting
4128³Waiting

Convergence requires at least two completed, comparable resolutions.

Full-volume norms and orders

GridFieldNormErrorOrderError units
32³erL12.019307e-05erg/cm³
32³erL25.151584e-05erg/cm³
32³erLinf6.424667e-04erg/cm³
32³fxL12.596979e+05erg/(cm² s)
32³fxL29.097040e+05erg/(cm² s)
32³fxLinf1.630999e+07erg/(cm² s)
32³fyL12.596979e+05erg/(cm² s)
32³fyL29.097040e+05erg/(cm² s)
32³fyLinf1.630999e+07erg/(cm² s)
32³fzL12.596979e+05erg/(cm² s)
32³fzL29.097040e+05erg/(cm² s)
32³fzLinf1.630999e+07erg/(cm² s)

32³ cells / level 2

Recorded setup and run provenance
OriginOcto-TIGER application
DomainCube of side 6.000000e+10 cm; centered at the origin
Resolution32³ cells; level 2; Δx = 1.875000e+09 cm
Final comparison time4.000000e+00 s
Light speed2.997925e+10 cm/s
Periodic boundariesoff
Hydrodynamicsoff
Gravityoff
Implicit radiation sourceon
Uniform gridon
CFL0.4
Timestep cap0.013333333333333332 s
Output interval0.066666666666666666 s
Background energy density1 erg/cm³
Scattering coefficient χ1.6666666666666666e-10 cm⁻¹
Gaussian width w6000000000 cm
All-space luminosity ℒ2.6981321220000001e+29 erg/s
{
  "background": 1.0,
  "c": 29979245800.0,
  "case": "equilibrium_sphere",
  "cells": 32,
  "command": [
    "/home/dmarce1/workspace/octotiger/release/octotiger",
    "--config_file=/home/dmarce1/workspace/octotiger/radiation_results/results/live-20260917-084723-426280/equilibrium_sphere/l2/run.ini",
    "--hpx:threads=12"
  ],
  "comparison_signature": {
    "atomic_mass": "1",
    "atomic_number": "1",
    "cfl": "0.4",
    "code_to_cm": "1",
    "code_to_g": "1",
    "code_to_s": "1",
    "disable_analytic": "off",
    "disable_diagnostics": "on",
    "gravity": "off",
    "hard_dt": "0.013333333333333332",
    "hydro": "off",
    "hydro_device_kernel_type": "OFF",
    "hydro_host_kernel_type": "LEGACY",
    "monopole_device_kernel_type": "OFF",
    "multipole_device_kernel_type": "OFF",
    "n_species": "1",
    "omega": "0",
    "periodic": "off",
    "problem": "RADIATION_EQUILIBRIUM_SPHERE",
    "rad_implicit": "on",
    "rad_test_amplitude": "0.01",
    "rad_test_background": "1",
    "rad_test_chi": "1.6666666666666666e-10",
    "rad_test_luminosity": "2.6981321220000001e+29",
    "rad_test_width": "6000000000",
    "radiation": "on",
    "stop_step": "100000",
    "stop_time": "4",
    "unigrid": "on",
    "xscale": "30000000000"
  },
  "config": {
    "atomic_mass": "1",
    "atomic_number": "1",
    "cfl": "0.4",
    "code_to_cm": "1",
    "code_to_g": "1",
    "code_to_s": "1",
    "datadir": "/home/dmarce1/workspace/octotiger/radiation_results/results/live-20260917-084723-426280/equilibrium_sphere/l2/",
    "disable_analytic": "off",
    "disable_diagnostics": "on",
    "disable_output": "off",
    "gravity": "off",
    "hard_dt": "0.013333333333333332",
    "hydro": "off",
    "hydro_device_kernel_type": "OFF",
    "hydro_host_kernel_type": "LEGACY",
    "max_level": "2",
    "min_level": "2",
    "monopole_device_kernel_type": "OFF",
    "multipole_device_kernel_type": "OFF",
    "n_species": "1",
    "odt": "0.066666666666666666",
    "omega": "0",
    "periodic": "off",
    "problem": "RADIATION_EQUILIBRIUM_SPHERE",
    "rad_implicit": "on",
    "rad_test_amplitude": "0.01",
    "rad_test_background": "1",
    "rad_test_chi": "1.6666666666666666e-10",
    "rad_test_luminosity": "2.6981321220000001e+29",
    "rad_test_width": "6000000000",
    "radiation": "on",
    "stop_step": "100000",
    "stop_time": "4",
    "unigrid": "on",
    "xscale": "30000000000"
  },
  "conservation": [
    {
      "boundary": 1.0796930626199439e+30,
      "field": "er",
      "final": 2.1902734851326454e+32,
      "initial": 2.1902778872708958e+32,
      "integral_units": "erg",
      "max_abs_residual": 2.5051272927248384e+16,
      "max_normalized_error": 1.143748611664179e-16,
      "normalization_scale": 2.1902778872708958e+32,
      "normalized_error": 6.682576158037901e-17,
      "raw_change": -4.402138250420552e+26,
      "residual": -1.4636698788954112e+16,
      "source": 1.0792528487949165e+30
    },
    {
      "boundary": 5.01220172575577e+24,
      "field": "fx",
      "final": -8.49841499475799e+23,
      "initial": 2.767011611056433e+21,
      "integral_units": "erg cm/s",
      "max_abs_residual": 1.9857919995348332e+22,
      "max_normalized_error": 3.024223161025051e-21,
      "normalization_scale": 6.566287915279887e+42,
      "normalized_error": 2.9290577550058e-21,
      "raw_change": -8.526085110868555e+23,
      "residual": -1.923303653985142e+22,
      "source": 4.1788262512087656e+24
    },
    {
      "boundary": -4.0828400019270235e+25,
      "field": "fy",
      "final": 1.642018476977182e+24,
      "initial": 5.165088340638674e+21,
      "integral_units": "erg cm/s",
      "max_abs_residual": 4.4092330022184256e+23,
      "max_normalized_error": 6.714955328044707e-20,
      "normalization_scale": 6.566287915279887e+42,
      "normalized_error": 6.401787397830804e-20,
      "raw_change": 1.6368533886365434e+24,
      "residual": 4.2035979226567483e+23,
      "source": -3.961190642289937e+25
    },
    {
      "boundary": -8.493766415251416e+24,
      "field": "fz",
      "final": 2.5759033424528018e+23,
      "initial": -3.947603231773844e+21,
      "integral_units": "erg cm/s",
      "max_abs_residual": 2.658268054741915e+23,
      "max_normalized_error": 4.048357441890525e-20,
      "normalization_scale": 6.566287915279887e+42,
      "normalized_error": 3.943254098637529e-20,
      "raw_change": 2.6153793747705402e+23,
      "residual": 2.589254173476149e+23,
      "source": -8.491153895121977e+24
    }
  ],
  "dx": 1875000000.0,
  "executable_sha256": "3b9a570a5bbeebf503ec10ea24db4a3f8116a46d7906760c82be91bb89e10f7a",
  "inx": 8,
  "length": 60000000000.0,
  "level": 2,
  "movie_capture": {
    "hard_dt": 0.013333333333333332,
    "odt": 0.06666666666666667,
    "requested_snapshots": 61,
    "steps_per_output_check": 5
  },
  "norms": {
    "er": {
      "L1": 2.019307e-05,
      "L2": 5.151584e-05,
      "Linf": 0.0006424667
    },
    "fx": {
      "L1": 259697.9,
      "L2": 909704.0,
      "Linf": 16309990.0
    },
    "fy": {
      "L1": 259697.9,
      "L2": 909704.0,
      "Linf": 16309990.0
    },
    "fz": {
      "L1": 259697.9,
      "L2": 909704.0,
      "Linf": 16309990.0
    }
  },
  "origin": "Octo-TIGER application",
  "status": "complete",
  "time": 4.0,
  "units": {
    "chi": "1/cm",
    "energy_density": "erg/cm^3",
    "flux": "erg/(cm^2 s)",
    "length": "cm",
    "luminosity": "erg/s",
    "mass": "g",
    "source": "erg/(cm^3 s)",
    "system": "CGS",
    "time": "s"
  }
}

Final fields and profiles

Numerical, reference, and signed-error energy slices at z = Δx/2
Numerical, reference, and signed-error energy slices at z = Δx/2 · PDF
Numerical/reference line profiles and signed errors for all four radiation fields
Numerical/reference line profiles and signed errors for all four radiation fields · PDF
All three flux maps
fx: numerical, reference, and signed-error slice
fx: numerical, reference, and signed-error slice · PDF
fy: numerical, reference, and signed-error slice
fy: numerical, reference, and signed-error slice · PDF
fz: numerical, reference, and signed-error slice
fz: numerical, reference, and signed-error slice · PDF

Movies

er · slice normal to z · 61 recorded snapshots · 2.000000e+01 s playback. MP4 · Movie metadata

Conservation

FieldQ(0)Q(t)Boundary BSource SResidual RFinal |R|/scaleMaximum |R|/scale
er2.190278e+322.190273e+321.079693e+301.079253e+30-1.463670e+166.682576e-171.143749e-16
fx2.767012e+21-8.498415e+235.012202e+244.178826e+24-1.923304e+222.929058e-213.024223e-21
fy5.165088e+211.642018e+24-4.082840e+25-3.961191e+254.203598e+236.401787e-206.714955e-20
fz-3.947603e+212.575903e+23-8.493766e+24-8.491154e+242.589254e+233.943254e-204.048357e-20
Integrated radiation budgets and their transport/source-corrected residuals
Integrated radiation budgets and their transport/source-corrected residuals · PDF

Data and reproducibility

Reading the results

Errors, budgets, and movies

Every norm uses the full three-dimensional domain, with cell-volume weighting. Here e = numerical − reference and V is the domain volume:

L1 = Σ |e| ΔV / V,   L2 = √(Σ e² ΔV / V),   L∞ = max |e|
p = ln(errorcoarse / errorfine) / ln(Δxcoarse / Δxfine)

Orders require two completed runs with matching physical time, configuration, units, executable, and origin. An exact zero error has no logarithmic order. The central slice and line profiles are visual diagnostics: the report slice is the cell layer at z = Δx/2, and its line profile is at y = z = Δx/2.

Conservation is assessed using the measured domain integrals and the signed cumulative boundary and source budgets:

R(t) = Q(t) − Q(0) + B(t) − S(t)

B is outward transport and S is the source change. Energy integrals have units erg in CGS; physical-flux integrals have units erg cm/s. Dividing a flux integral by c² gives radiation momentum. Energy residuals are normalized by max(|E0|, |E|, |BE|, |SE|). A flux component uses the maximum of its corresponding terms and c times that energy scale, so a zero net flux does not cause division by zero. Summaries show the final residual and the largest normalized residual over the saved history.

Movies show the numerical Silo states with a fixed color range for each movie. Recorded states are held for their actual simulation-time gaps; intermediate solutions are not interpolated. The 3D option shows the domain's exterior surface. Movies and plots retain their recorded physical units.

Sources & provenance

Where this problem comes from

This smooth Gaussian-emitter test is defined by equilibriumSphere, sphereAverage, and bulbSourceAverage in octotiger/test_problems/radiation/profiles.hpp. Its reference follows by solving the steady diffusion equation for that source. The available implementation does not identify it as a verbatim published sphere benchmark, so the provenance here is the suite's analytic construction.

Radiation method context

Skinner & Ostriker (2013), “A Two-moment Radiation Hydrodynamics Module in Athena Using a Time-explicit Godunov Method,” ApJS 206, 21, provides context for the two-moment M1 system and source integration. The suite's fixed-medium damping uses the algebra of their equations (42b)–(43) with θ = 1 and prescribed χ. Their paper neglects scattering; the suite reuses that damping formula for its prescribed scattering medium.

The solver's M1 implementation also cites Hanawa & Audit (2014), “Reformulation of the M1 model of radiative transfer,” JQSRT 145, 9–16. These references describe the numerical/physical framework; the exact test definitions are the source functions identified above.

Reproducing this batch

Descriptions document the reviewed source implementation. Older or edited solver versions can use different profile constants or averaging rules; these are not all encoded in run.ini. Use the run metadata, executable hash, and saved batch source hashes to identify the implementation behind a result. A source path or descriptive formula alone is not proof of the executable's contents.