Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 7.27 KB

world-engine.md

File metadata and controls

29 lines (22 loc) · 7.27 KB

Renderers: world engine values

Part of: Rendering & haptics spec (index) · Sections: R7.7.1 · Implements: D-37, Q-288, Q-304, Q-313 to Q-316, Q-330, Q-331, D-40, Q-343, Q-347 to Q-352, Q-355 to Q-361, Q-373, Q-375, Q-376, Q-379, Q-380, Q-363 · Read with: shader-kinds.md (R7.7, the three.js path), engines.md (R5.9), open-items.md (R12)

R7.7.1 World engine values

Split out of R7.7 on 11 Nov 2026 (that fragment had reached 21 KB); the first block below is moved verbatim, then amended for issue #93.

World engine values (D-37; Q-288, Q-304, Q-313 to Q-316, Q-330, Q-331). The prototype's own code (frontend/src/engine/worlds/), fed by cardToWorld; reviewed fixes are @deviation blocks (Q-335).

  • Card against preset: for an object the prototype has (TRAPPIST-1 e and f, Kepler-186 f, K2-18 b, HD 189733 b, Jupiter, Saturn, Titan) the preset is drawn whole; a preset value keeps the card's tag only within 0.5 % of the card, otherwise it is inferred_from_analog with "the card says X". Other cards use the prototype's defaults (water, 1 bar, mu 29, sea share 0.5), each model_dependent and listed; a planet_water card is an ocean world (Q-288). Titan uses one heliocentric orbit (P is Saturn's year, derived); its 15.95-day orbit around Saturn is its spin.
  • Albedo (Q-359 amends Q-330): inverted from the card's measured surface temperature so the engine's mean surface temperature matches it (derived, Titan); a catalogue teq_K is not inverted (it assumes an albedo itself); else the card's albedo (model_dependent; a geometric albedo is not a Bond albedo); else 0.3, listed as an assumption.
  • Lava worlds: a rocky world with no pressure on its card and Teq of at least 1,400 K (basalt solidus) gets a thin rock-vapour atmosphere (0.005 bar, mu 44, no sea), inferred_from_analog; the citations for millibar rock-vapour atmospheres are [verify] (R12 #48). 55 Cnc e is drawn airless with its magma showing.
  • Clouds: water condenses at a mixing ratio of 0.01 (Earth's cloud base about 0.72 km); the fly view's cloud deck sits at the model's cloud base, at least 0.3 km.
  • CO₂: its 1 atm point is a sublimation point, so the liquid–vapour line starts at the triple point (Clausius–Clapeyron with Lv about 15.3 kJ/mol, [verify], R12 #46) and ends at the critical point (304.13 K, 7.3773 MPa). Above the triple point its saturation pressure uses the same Lv (Q-356).
  • Gas giants: Jupiter and Saturn use their measured peak jets (about 150 and 450 m/s, [verify], R12 #47) and measured flattening (0.06487, 0.09796); other giants use U = 0.6 √(R dT) with a 10 K floor (about 115 to 120 m/s, an estimate) and f = 0.7 q, both model_dependent. Ring and planet shadows use the flattened shape. Great Red Spot about 11,000 × 16,350 km (Simon et al. 2024); cyclones spin cyclonically; band latitudes are planetographic.
  • Saturn's rings: Encke Gap centred at 133,584 km (2.2165 R_S), about 325 km wide; F ring at 140,180 to 140,240 km (one texture column), from the PDS Ring-Moon Systems Node table, [verify] (R12 #47). The TSL fallback uses the same radii (ENCKE_GAP_KM); classifyRing names the Encke Gap and the Cassini Division for the haptics.
  • Solver pacing (TSL GasWorld): one step is about 1,525 s of planet time for Jupiter and 430 s for Saturn (Q-331 corrects Q-254).

Issue #93 physics (D-40; Q-355 to Q-361; follow-up Q-373 to Q-380). Each is a @deviation (#93 3.x) in the engine (world_engine_deviations.py) with the same rule in frontend/src/physics/.

  • Critical points (Q-355): water 647.10 K, 22.064 MPa; NH₃ 405.4 K, 11.33 MPa; N₂ 126.19 K, 3.3958 MPa; CH₄ 190.56 K, 4.599 MPa; CO₂ 304.13 K, 7.3773 MPa (pure-fluid handbook values, NIST Chemistry WebBook). The boiling point is capped at Tc; above both Tc and Pc the fluid is supercritical (no sea surface) and the caption says so. NH₃–H₂O uses pure NH₃'s critical point, [verify] (R12 #53).
  • Saturation pressure (Q-356): water by Murphy and Koop 2005 (eq. 7 over ice, eq. 10 over liquid; 1,706 Pa at 288 K); CO₂ above its triple point with Lv (1.61 MPa at 250 K, NIST 1.785 MPa), below it with the sublimation heat.
  • Tides and orbit (Q-357, Q-363): the tidal heating, eccentricity and obliquity read the preset's own p.ob (host mass from host_mass_msun, eccentricity from orbit_ecc) before the prototype's ORB table. The starlight (Q-375) uses the card's insolation_searth first (L = S a², the star radius set to √L (5772 / T)²), else the host luminosity host_lum_lsun, else host_radius_rsun (R3.2); when the insolation and host_lum_lsun / a² differ by more than 5 %, a line goes in mismatches. Planets drawn from an artifact preset are unaffected. A model_dependent eccentricity (an archive limit, or e fixed at 0) is listed under "Filled in, not measured" (Q-376).
  • Runaway greenhouse (Q-360): the inner edge is Kopparapu et al. 2014 for the planet's mass (0.1, 1 or 5 Earth masses, interpolated in log mass); during a runaway the outgoing radiation is held at 282 W m⁻² (Goldblatt et al. 2013) until the surface reaches the post-runaway temperature Tpost, 1,500 K at 50 bar to 1,800 K at 260 bar of steam interpolated in ln P, with the steam pressure taken as the surface pressure, [verify] (R12 #51). Tpost is used only within those two points (Q-373): above 260 bar it is held at 1,800 K; below 50 bar it is null, so the runaway verdict and haze stand, the grey-greenhouse surface temperature is kept, there is no lava and the steam-limit cap is skipped. K2-18 b at the artifact's 8 bar: about 401 K, a runaway steam world with no lava (the prototype's look, Atish, 12 Nov 2026); its pressure note says its mass and radius allow a thick hydrogen envelope and the 8 bar surface is the artifact's setting.
  • Climate budget (Q-361, open): the heat-transport and sea-ice fix of #93 3.7 is not merged; the engine keeps the prototype's heat transport and sea ice, and physics/climateBudget.ts has drifted from it (freezing point, cloud constants, snow-melt rate).
  • Phase-curve readouts (Q-363, Q-379): dayside_temp_K, nightside_temp_K and hotspot_offset_deg from the card are shown as readouts beside the engine's own model numbers; they are not engine inputs. They are also listed in the viewer at the levels their tags allow (a derived one from + Estimated); labels and wording are in R3.2.
  • Gas solver (Q-343): at most 3 steps a frame; a giant that needs more runs slower than one day per second and the caption states the real rate at the measured frame rate (Q-380: an average of the frame time, 60 fps until the first gas frame; hours rounded to 1 h below 10 h and to 2 h above, changed only when 15 % away), "so this follows the frame rate" (HD 189733 b about 15 h per second at 60 fps).
  • Seeds and patterns (Q-347 to Q-352): see R5.9.