EarthSciML

Literate Earth Science

Write a model the way you would write the paper: equations, units, grids and tests, in Typst or Markdown prose. EarthSciML checks the document, compiles it to one portable .esm file, and simulates it from Julia, Python and Rust, or in this page.

Example systems
Loading…
Rendered with Typst

Loading…

How it works

From prose to simulation

A model is a document, not a program. The same file is the methods section, the test suite and the simulation input.

  1. Write

    Declare variables with units where you introduce them, pick a grid and discretization rules, and write equations in LaTeX or Typst math.

  2. Check

    Every name resolved, every unit balanced, every inline test run, giving a validated .esm file.

  3. Run

    Couple it with catalog components and simulate it from Julia, Python or Rust, or read and transform it from TypeScript and Go.

Key

The projects

Six libraries share one format. Everything builds on EarthSciAST.

For modelers

Start from a working model and change it.

For developers

Read, transform and run .esm from your own code.

JuliaPythonRustTypeScriptGo