solprop.recipe#
Recipes: a simulation written as a TOML document, built into a Simulation.
A recipe holds the keywords of one route’s constructor, with quantities written in
their units ("125 um", "1.2 bar"), and the run’s execution settings. It is
loaded, checked against the parameter metadata, built, run, exported as a Python script
and saved. The format is SEP 41’s; the manual page is docs/guide/setup/recipes.md.
>>> from solprop.recipe import Recipe
>>> recipe = Recipe.example("rdw")
>>> recipe.route
'capillary'
Modules
Recipes: a simulation as versioned TOML, read, built, run and saved (SEP 41, S1). |
|
The recipe document: its tables, its format version and the forms of its values. |
|
The error a recipe raises when it cannot be read, checked or written. |
|
A recipe written out as the plain Python script a person would write (SEP 41, S1). |
|
Machine-readable metadata of every keyword a recipe can set (SEP 41, S9). |
|
Parameter paths: the canonical name of every value in a recipe. |
|
Pins: a recipe value set from a design target instead of a literal (SEP 41, S1). |
|
Previews: what a recipe will build, shown before the run (SEP 41, S18). |
|
The recipe a run records: the authored text, the resolved one, and the data files. |
|
Quantities in a recipe: numbers with units, read and written back exactly. |
|
From recipe values to the objects a route takes: the registry and the decoder. |