docs: "Spectral pipelines with pipekit" + barotropic-vorticity reference example

Aperta
#155 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Read the dependencies #152 and pipekit E1.3 (ScanCycle), then inspect the Graph, Spectral, Enstrophy, and RK4 entry points; the issue gives no file paths. Build the barotropic-vorticity example and stability note, compare gradients against finite differences, and add a CPU CI run under 60 seconds at N=64 with assertions for the printed transform counts.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

documentation

Part of epic #148. Depends on: #152 (E4.2), pipekit E1.3 (ScanCycle)

Content

  1. Why the carrier. Show the A / P / S transform-budget table: XLA merges identical transforms of the same array, but does not cancel an inverse→forward pair.
  2. Barotropic vorticity ∂ₜq = −J(ψ, q) − ν(−∇²)²q as a Graph on Spectral(q̂) → RK4 → ScanCycle, with an enstrophy time series from Enstrophy. The model itself lives in somax (#13 moves there); this is the one from-scratch example kept in spectraldiffx.
  3. Stability note (cost the prototype one run): the hyperviscous stiffness at the corner mode is ν(kₓ² + k_y²)²_max. At N = 128 on 2π that is ν·(2·64²)² ≈ 6.7e7·ν, so explicit RK4 needs ν·6.7e7·dt < 2.79. Document the bound and point to IMEX / integrating-factor steppers (#110's hyperviscous Helmholtz inverse) for stiffer settings.
  4. Gradients. ∇ w.r.t. q₀ (4DVar-style) and w.r.t. ν, both against finite differences.

Acceptance criteria

  • Example runs in CI on CPU in under 60 s (N = 64, short window).
  • The printed transform counts are asserted, not just displayed.

Generated by Claude Code

Lingua principale
Python
Stelle
2
Fork
0
Merge medio
8h 13m
PR unite (30g)
8

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jejjohnson/spectraldiffx

Tutte le issue di jejjohnson/spectraldiffx

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.