Accretion Disk Simulator

Simulation #83 NEW Astrophysics A-Level / Undergraduate Leapfrog N-body + a-disk
Colour: deep purple = cold outer diskpurple/pink = transitionhot pink = inner diskwhite = near ISCO � allow ~500 steps for spiral arms to develop
Preset Scenario
Mass Ratio q = M2/M10.30
Viscosity a (a-disk)0.015
Temperature Scale0.50
Simulation Speed5�
Controls
Keyboard shortcuts:
P Pause   R Reset   S Save PNG
16 Switch preset
Method: Leapfrog N-body integration
Viscosity: Shakura-Sunyaev a-disk model
Gravity: Softened 1/r� + spiral wave perturbation
Respawn: S ? r?� surface density
Galaxy: Logarithmic flat-rotation potential + 2-arm density wave
Key timescales:
Orbital: t_orb = 2pv(r�/GM)
Viscous: t_vis = r� / ? = r� / (ac_sH)
Thermal: t_th = t_vis � (H/r)�
t_vis / t_orb � 1/(a � (H/r)�) ~ 100�10,000

Accretion Disk Physics

An accretion disk forms whenever infalling matter carries too much angular momentum to fall directly into the central object. Conservation of angular momentum forces the material into circular orbits; viscosity (or magneto-rotational turbulence) gradually transports angular momentum outward, allowing mass to drift inward and release its gravitational potential energy as heat and radiation.

Accretion is one of the most powerful energy-release mechanisms in the Universe. Around a neutron star or black hole, the accretion efficiency ? = ?E/mc� is:

Accretion luminosity: L_acc = ? � ? � c� ?(Newtonian disk) � GM / (2 r_in c�) � 0.06 (for r_in = 6 r_g, Schwarzschild BH) ?(maximally spinning) � 0.42 (Kerr BH, r_ISCO ? r_g) Compare: nuclear fusion ? � 0.007 (H ? He) chemical burning ? � 10?�� Eddington luminosity (maximum sustainable): L_Edd = 4p G M m_p c / s_T � 1.3 � 10�� (M/M_?) W

Temperature Profile

In a steady thin disk (Shakura-Sunyaev), the local effective temperature varies with radius as:

T(r)4 = (3 G M ?)/(8p s r�) � [1 - v(r_in/r)] Peak temperature at r � 1.36 r_in : T_max � 6.3�105 (M/M_?)^(-1/4) (?/?_Edd)^(1/4) K Stellar-mass BH (10 M_?): T_max ~ 107 K ? soft X-rays Supermassive BH (108 M_?): T_max ~ 105 K ? extreme UV / quasar emission

Simulation Method

This simulator integrates N test particles in a gravitational potential using the leapfrog method (second-order symplectic, conserves energy better than Euler). The a-disk viscosity is implemented as a tangential velocity correction proportional to the departure from Keplerian circular speed:

Keplerian circular speed: v_K = v(GM/r) Viscous drag correction: ?v_t = -a_eff � (v_t - v_K) � ?t where v_t = tangential velocity component of each particle. Spiral density waves (galaxy preset) use a rotating logarithmic spiral perturbation: F_wave ? cos(m�? - m�k�ln(r) - O_p�t) m=2 (two-armed spiral)

Preset Scenarios

💫 Protoplanetary Disk

A young star (T Tauri phase) surrounded by a disk of gas and dust left over from its formation. Disk mass ~0.01�0.1 M_?; scale height H/r � 0.05�0.1; typical lifetime 3�10 Myr. Planets form via two competing channels: core accretion (dust ? pebbles ? planetesimals ? cores ? planets; dominant at intermediate radii) and disk instability (gravitational fragmentation at large radii where Toomre Q < 1). This preset shows the smooth a-disk spiralling of disk material onto the central star with S ? r?� surface density profile.

🔵 Binary System

Two stars orbit their common barycentre with mass ratio q = M2/M1 (set by slider). Tidal forces from the secondary truncate the disk at roughly 0.3�0.5� the binary separation (tidal truncation radius). The secondary also excites density waves at resonance radii. Adjust the mass ratio slider to see how stronger tidal perturbations modify the disk structure.

🌌 Spiral Galaxy

A galactic disk modelled with a logarithmic (flat rotation curve) potential instead of a Keplerian one. A 2-armed spiral density wave perturbation rotates at pattern speed O_p, exciting the characteristic grand-design spiral structure seen in galaxies like M51 (Whirlpool) and M81. Density waves are not material arms � the gas flows through them, compressing and triggering star formation at the wave crests.

⚫ Black Hole Accretion

A stellar-mass black hole (Schwarzschild) with an ISCO (Innermost Stable Circular Orbit) at r_ISCO = 6 GM/c�. Particles crossing the ISCO are absorbed and respawned in the outer disk. The inner edge glows orange-white at extreme temperatures. High viscosity (set a slider high) drives rapid infall and a more luminous inner disk. This models the accretion state of X-ray binaries such as Cygnus X-1.

🪐 Planetary Gap

A Jupiter-mass planet orbiting at r = 0.38 opens a gap in the disk via Lindblad resonances and launches two-armed Lindblad spiral density waves both inward and outward. The gap width grows with M_planet/M_star and decreasing viscosity. Watch the gap open over ~200 steps and the spiral arms propagate. The orange glow marks the planet.

🌊 Tidal Disruption Event (TDE)

A star cluster approaches a supermassive black hole on a nearly radial (plunging) orbit. Tidal forces from the BH exceed the star's self-gravity (inside the tidal radius r_t = R_? (M_BH/M_?)^(1/3)), ripping it apart. Roughly half the stellar debris is accreted (bound debris, approaching from outside), producing a luminous accretion flare that can briefly outshine the host galaxy. The other half is ejected on hyperbolic orbits.

Key Equations

Keplerian Orbital Period

T = 2p v(r� / GM) Earth around Sun (r=1 AU, M=M_?): T = 1 year Innermost disk orbit (r=0.1 AU): T = 0.032 year = 11.5 days

Viscous Timescale (a-disk)

? = a � c_s � H (kinematic viscosity, Shakura-Sunyaev 1973) t_vis = r� / ? = r� / (a c_s H) For r = 1 AU, c_s = 1 km/s, H = 0.05 AU, a = 0.01: t_vis � 1 AU� / (0.01 � 1 km/s � 0.05 AU) � 3�106 years (disk lifetime ~ few Myr ?)

Tidal Disruption Radius

r_t = R_? � (M_BH / M_?)^(1/3) (Hill / Roche radius) For a solar-type star near a 107 M_? SMBH: r_t = R_? � (107)^(1/3) � 215 R_? � 1 AU

Gap-Opening Criterion (Crida et al. 2006)

3 H 50 a H� -- � -- + ------- = 1 (gap opens when this = 1) 4 r_H q r� r_H = r_p (q/3)^(1/3) (Hill sphere radius of the planet) q = M_planet / M_star H = disk scale height at planet orbit

Eddington Accretion Rate

?_Edd = L_Edd / (? c�) = 4p G M m_p / (? s_T c) � 2.2�10�� (M/M_?) g/s For 10 M_? BH: ?_Edd � 2.2�10�� g/s � 3.5�10?7 M_?/yr

Curriculum Connections

TopicQualificationConcepts
Gravitational fields and orbitsA-Level PhysicsKepler's laws, circular orbits, escape velocity, orbital energy
Stellar evolutionA-Level / IBT Tauri stars, protoplanetary disks, planetary system formation
Black holes and compact objectsGCSE / A-LevelSchwarzschild radius, event horizon, ISCO, accretion
Fluid mechanicsEngineering / Physics UGViscosity, angular momentum transport, turbulence (MRI)
Astrophysics (galactic structure)UndergraduateFlat rotation curves, dark matter, spiral density waves
Computational physicsUndergraduateLeapfrog integration, N-body methods, symplectic integrators

Related Simulations & Articles