Generalize planetary flow forcing inputs

This commit is contained in:
Meta Vens 2026-05-29 21:23:02 +01:00
commit 59334c0109
4 changed files with 73 additions and 29 deletions

View file

@ -40,8 +40,9 @@ Deliverables:
- baked static channels: elevation, bathymetry, land/sea mask, slope,
curvature, coastline distance, source quality;
- baked dynamic channel fixture from a small ERA5/OSCAR subset;
- metric metadata per tile: area scale, local tangent frame, latitude/Coriolis,
sun/moon local direction basis, projection id, and missing-data mask.
- metric metadata per tile: area scale, local tangent frame, explicit
Coriolis/rotation features, forcing-source local basis, projection id, and
missing-data mask.
Verification:
@ -99,8 +100,8 @@ Training plan:
- start with ERA5 10m wind over a small temporal window;
- add OSCAR surface currents as the first ocean target;
- train on cube-sphere pages, not raw lat/lon;
- feed the evaluator's sun and moon direction inputs through the same
conditioning path used by training;
- feed the evaluator's arbitrary forcing-source records and Coriolis features
through the same conditioning path used by training;
- normalize per variable and preserve masks;
- keep model identity, source versions, and normalization stats with every
checkpoint.
@ -146,6 +147,8 @@ Architecture hypotheses to test:
- local patch encoder plus graph head for first production model;
- hierarchical graph neural operator for long-term arbitrary LOD;
- optional 150-300M FlowNet-T global teacher for distillation, not hot runtime;
- variable-cardinality forcing-source encoder for multiple suns, eruptions,
artificial heat sources, and gas-giant/extreme-atmosphere regimes;
- sparse transition logits only where PlasticAdrift-style debris transport
needs them;
- covariance output via Cholesky factors to guarantee positive semidefinite

View file

@ -55,11 +55,17 @@ Conditioning tokens:
- day-of-year Fourier features;
- hour/diurnal Fourier features when using hourly atmosphere data;
- sun direction in planet-centered coordinates and local tangent coordinates;
- sun elevation/azimuth at the sample point;
- moon direction in planet-centered coordinates and local tangent coordinates;
- moon elevation/azimuth at the sample point;
- lunar phase or normalized sun-moon angle;
- Coriolis parameters in the local frame, including `f`, beta/gradient terms
when available, and rotation-axis direction;
- external forcing source tokens for arbitrary energy, mass, and momentum
inputs;
- per-source direction in planet-centered coordinates and local tangent
coordinates;
- per-source local elevation/azimuth at the sample point when directional;
- per-source intensity, spectral/thermal class, radius/angular size, distance
or attenuation, and time profile;
- source relation features such as phase angles between dominant directional
sources;
- lead time;
- layer id: ocean surface, atmosphere near-surface, or pressure level;
- dataset/model/provenance id embedding;
@ -69,14 +75,17 @@ Do not make elevation the protagonist. It is one channel group. The dynamic
state and time phase are not optional decoration; they are the difference
between a flow model and a coastline horoscope.
Sun and moon conditioning are evaluator inputs, not derived afterthoughts. The
model should receive the same celestial forcing basis the runtime evaluator will
use: global direction vectors for coherent planetary phase, local elevation and
azimuth for terrain/atmosphere response, and lunar phase/sun-moon geometry for
tidal and coastal-current regimes. Early atmosphere training can mostly learn
from sun terms and calendar/hour features. Ocean training should keep moon terms
present from the start so the packet schema does not need surgery when tides
stop being optional.
External forcing is an evaluator input, not a derived afterthought. Earth sun
and moon terms are just two source records in a general forcing set. The same
interface must support multiple suns, artificial heat sources, nuclear or
volcanic eruptions, injected momentum, gas-giant irradiation, extreme pressure
regimes, and non-Earth rotation. A forcing source can be directional,
point-like, area-like, volumetric, transient, periodic, or persistent.
Coriolis is also explicit. Latitude-derived `f` is fine for Earth data bakes,
but the model must receive rotation-derived Coriolis features directly so a
client can evaluate fast rotators, tilted axes, retrograde planets, gas giants,
or fictional worlds without smuggling the answer through Earth latitude.
## FlowNet-S: Local Baseline
@ -98,7 +107,7 @@ encoder:
stage 3: downsample + 3 residual blocks, width 192
conditioning:
FiLM or adaptive layer norm from celestial/time/layer/LOD embeddings
FiLM or adaptive layer norm from forcing/Coriolis/time/layer/LOD embeddings
decoder:
FPN/U-Net upsample to 64x64
@ -201,6 +210,33 @@ near-camera child tile know about parent context, adjacent seams, and coarse
basin/planetary signals without forcing the renderer to evaluate the whole
planet at full resolution.
### Forcing Encoder
Use a permutation-invariant source encoder before FiLM/adaptive normalization:
```text
per-source MLP:
input: type, direction, local basis, intensity, spectrum/thermal class,
attenuation, time profile, source radius, momentum/mass injection
width: 128
layers: 3
source attention:
4 cross-attention blocks
query: tile token
keys/values: forcing source tokens
heads: 4
width: 128
pooled forcing embedding:
concatenate mean/max/attention-pooled source state
project to graph width 256
```
This handles zero sources, one Earth-like sun, binary suns, nearby eruptions,
orbital mirrors, artificial heat columns, or gas-giant energy bands without
changing the packet schema. Source count is data, not architecture.
### Decoder
Decode selected tile tokens back into requested flow pages:

View file

@ -25,9 +25,10 @@ schema. Runtime inference may later move to a dedicated ML package, but the
engine owns the field contract that clients consume.
Inputs: cube-sphere tile address, projection metadata, static relief/bathymetry,
land/sea mask, latitude/Coriolis features, calendar/season phase, sun and moon
directions in planet/global and local tangent bases, optional recent
atmosphere/ocean state, and dataset provenance/version.
land/sea mask, explicit Coriolis/rotation features, calendar/phase features,
arbitrary external energy/mass/momentum forcing source records in planet/global
and local tangent bases, optional recent atmosphere/ocean state, and dataset
provenance/version.
Outputs: bounded stochastic advection parameter tiles for atmosphere and ocean
surface. The first output schema should support mean velocity, covariance or
@ -72,7 +73,7 @@ pages with stochastic advection parameters instead of authored brush evidence.
layout or debug view.
- Static relief alone is not a sufficient predictor. Bathymetry/topography can
shape flow, but dynamic atmosphere/ocean state, time conditioning, and
sun/moon forcing are real inputs.
explicit Coriolis and external forcing are real inputs.
- A stochastic output must expose uncertainty. A mean vector without dispersion
is a visualization convenience, not the organ.
- Conservative LOD summaries remain renderable. Missing high-resolution child
@ -90,7 +91,8 @@ transition-matrix targets:
```text
FlowTilePacket
Domain: CubeTileKey, projection id, cell spacing, time basis
Celestial: sun/moon direction, local elevation/azimuth, lunar phase
Rotation: local Coriolis parameters, rotation-axis basis, beta terms
Forcing: arbitrary directional/point/area/volume source records
Layer: oceanSurface | atmosphereNearSurface | atmospherePressureLevel
MeanVelocity: tangent-space u/v per sample
Diffusivity: symmetric 2x2 tangent covariance or log-Cholesky parameters
@ -212,9 +214,9 @@ the result beats calibrated covariance and ensemble heads.
4. Train a single-tile local model.
Inputs are multi-channel multiscale crops around a target cell: relief,
slope, land/sea, Coriolis/latitude, season phase, sun/moon direction, local
celestial elevation/azimuth, lunar phase, and recent dynamic fields. Output
mean velocity plus diagonal covariance.
slope, land/sea, explicit Coriolis/rotation features, phase features,
arbitrary forcing source summaries, and recent dynamic fields. Output mean
velocity plus diagonal covariance.
5. Add cross-tile and parent/child context.
Replace pure crops with cube-sphere graph adjacency and LOD-aware message

View file

@ -137,9 +137,12 @@ next_actions:
transformer blocks, and FlowNet-T (150-300M params) as an offline teacher
only if global coherence needs it. Do not let an oversized teacher become
the runtime authority before the packet contract and LOD path are proven.
Sun and moon direction are first-class conditioning inputs to both training
and runtime evaluation, carried in planet/global and local tangent bases so
atmosphere, insolation, tides, and coastal-current regimes do not become
External forcing and Coriolis are first-class conditioning inputs to both
training and runtime evaluation. Do not hardcode Earth sun/moon semantics:
represent arbitrary directional, point, area, volumetric, transient, and
periodic energy/mass/momentum sources in planet/global and local tangent
bases, and pass explicit rotation/Coriolis features so fast rotators, gas
giants, multiple suns, eruptions, and extreme atmospheres do not become
hidden side channels.
- Extend the D3D12 field packet/resource resolver beyond its first
structured/curve-buffer cut. Current contracts, DSL, and renderer registry