Skip to main content
Sandbox Physics

Pressure, gravity and direction

Molecular Cloud Collapse and Magnetic Support

Will this gas rebound or gather under gravity? A short density ripple can rebound as pressure pushes gas outward. A longer ripple can grow through self-gravity. A magnetic field changes this response by direction: compression along the field can grow even when cross-field compression is restored.

Watch a gas ripple respond to pressure and gravity. Rotate a field in a separate linear magnetic wave, then probe and save the computed state.

Interactive modelMolecular Cloud Collapse and Magnetic Support
Peak volume densityρmax⁡/ρ0=1.2\rho_{\max}/\rho_0=1.2
Signed prepared-wave amplitudeD=0.101D=0.101
Probe speed · box length per gravity timevp=0.00188v_{p}=0.00188
Thermal Jeans cells at the peakNJ=38.9N_J=38.9

Read the state, then test its interpretation

Signed wave amplitude through accepted steps

Cyan: computed state. Pale dashed: separate small-wave, start-from-rest limit.

Density across the selected probe row

The amber marker selects an actual cell.

This is a numerical gas section, not a telescope image. The nonlinear gas and strictly linear magnetic wave are separate models. Export saves the accepted arrays, configuration, history, selected probe and units.

Physics tutorial

Follow a ripple from rest

BackgroundA slightly denser patch pulls gas inward. Pressure gradients push back. Their competition depends on the wavelength as well as temperature and density.

Why it mattersA dense knot on a grid can be physical gathering or an unresolved numerical result. Following its conserved mass and local Jeans resolution helps separate those questions.

Start with the essentials

Focus question
What changes when the same ripple lies along or across a magnetic field?
One-sentence intuition
Pressure opposes compression, gravity favors it, and magnetic forces depend on direction. A linear magnetic wave and a nonlinear gas calculation answer different questions.

Core mathematical model

Continuity

∂tρ+∇⋅(ρv)=0\partial_t\rho+\nabla\cdot(\rho\boldsymbol v)=0

Mass crossing one cell face enters its neighbor. The periodic box has no external mass source.

A small nonmagnetic wave

ω2=cs2k2−4πGρ0\omega^2=c_s^2k^2-4\pi G\rho_0

Positive squared frequency gives oscillation. Negative squared frequency permits growth; the initial velocity determines how much growing and decaying motion is present.

Directional magnetic response

ω4−[(cs2+vA2)k2−ωJ2]ω2+vA2k2cos⁡2θ(cs2k2−ωJ2)=0\omega^4-[(c_s^2+v_A^2)k^2-\omega_J^2]\omega^2+v_A^2k^2\cos^2\theta(c_s^2k^2-\omega_J^2)=0

The compressive branches retain the angle between wavevector and field. Along-field thermal collapse is not removed by increasing field strength.

Common difficulties

A knot is not a star

Typical misconceptionEach bright numerical patch is a newly formed star.

Better mental modelThis is isothermal gas with no sinks, thermal feedback or stellar mass inference. The calculation stops within a bounded operating window.

Magnetic support has a direction

Typical misconceptionA magnetic field is just a larger sound speed in every direction.

Better mental modelThe separate linear branch evolves magnetic induction and transverse velocity. Rotating the field changes those couplings; it is not a nonlinear MHD cloud.

Run the experiment

  1. 01

    Watch pressure rebound

    Choose Pressure rebound and watch the signed-wave history turn downward.

    What to observe: The gas starts at rest. A short thermal wavelength restores the ripple instead of sustaining its growth.
  2. 02

    Prepare a different center

    Choose Gas gathering and drag the cyan center. This restarts from a translated initial density ripple.

    What to observe: The full periodic box stays in view. The amber probe samples the current computed cell, independently of the initial center.
  3. 03

    Turn a real magnetic direction

    Choose Linear along-field growth, then drag the field handle toward a right angle.

    What to observe: The strictly linear response changes because velocity and magnetic perturbations couple differently. The relative-amplitude stop protects this approximation.
  4. 04

    Read the same saved state

    Pause, move the amber probe, and save the current field. Compare its selected row and wave history.

    What to observe: The colors, velocities, probe values and exported arrays all come from the accepted state. The pale small-wave curve is a separate reference.

Related experiments and articles

Molecular clouds, gravity and magnetic direction · Reading path

Molecular clouds, gravity and magnetic direction

Articles on this path that use this experiment, followed by the other experiments they suggest.

  1. ArticleWhy cold gas can gather into dense structures
  2. ArticleHow the Jeans scale separates oscillation and growth
  3. ArticleMagnetic support depends on direction
  4. ArticleWhen a grid can no longer resolve contraction
  5. ArticleReplaying an official Jeans initial condition
  6. ArticleOne converged mass scale does not establish an IMF
FeedbackSomething 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