Worked examples for slimmc.
This repository is intended for compact, runnable examples that demonstrate
model syntax, simulation workflows, and analysis with pyslimmc. Scientific
validation and literature reproductions belong in
slimmc-case-studies.
Tool commands are configured once in config.mk:
SLIMMC ?= slimmc
PYTHON ?= python3Running make without arguments only displays the available commands.
makeList available examples:
make listRun all examples:
make allRemove generated results:
make cleanRun one example:
make 001_styrene_homoEach numbered directory owns its own small Makefile, where all means
check, run, then analyze.
| ID | Example | Description |
|---|---|---|
| 001 | Styrene homopolymerization | Basic homo workflow: model validation, simulation, stored result, and pyslimmc inspection. |
Every runnable example lives in:
examples/NNN_short_name/
├── README.md
├── Makefile
├── *.model
└── analyze.py
The top-level Makefile discovers only numbered directories matching
examples/NNN_*/Makefile. The examples/_template/ directory is therefore not
run automatically.
When adding an example:
- copy
examples/_template/; - rename it to the next
NNN_short_name; - make the model and analysis self-contained;
- add one row to the index above;
- verify
make check,make run, andmake analyze.
Examples should teach one main idea clearly. Prefer realistic chemistry and units where practical, but keep examples small enough to run conveniently. For literature-derived validation, parameter fitting, or benchmark reproduction, use the case-studies repository instead.