Examples Overview
Examples live under examples/.
Useful starting points:
examples/simulation/rum.ball.toml: small simulation with plotsexamples/models/: shared Modelica models used by simulation and codegen scenariosexamples/codegen/rum.ball_jax.toml: built-in JAX target exampleexamples/codegen/rum.sympy_decay_sympy.toml: built-in SymPy target exampleexamples/codegen/rum.sympy_decay_standalone_web.toml: custom standalone web target exampleexamples/codegen/rum.sympy_decay_custom_casadi.toml: direct raw Jinja template exampleexamples/interactive/quadrotor/rum.acro.toml: interactive quadrotor scenarioexamples/interactive/rover/rum.toml: interactive rover scenario
Codegen scenarios write generated files under examples/codegen/gen/, which is
ignored by git.
Browser examples should be native book components: a focused Monaco editor, in-page model files, Rumoca WASM calls, and the simulation view needed for the example. They should not embed the full playground workbench.
Fetch pinned external Modelica package dependencies before running examples that use MSL or CogniPilot Modelica Models:
cargo xtask repo modelica-deps ensure
The repository includes VS Code workspace settings that point to the fetched packages from common open modes.