This repository contains DFODE-kit, a Python toolkit for sampling combustion states, augmenting and labeling datasets, and training neural-network surrogates for stiff chemistry integration.
- Keep changes small, reviewable, and verifiable.
- Optimize for agent legibility and fast iteration.
- Improve experimentation throughput for model architectures, training algorithms, and data pipelines.
- Bootstrap lightweight harness env:
make bootstrap-harness - Bootstrap docs env:
make bootstrap-docs - Activate env:
source .venv/bin/activate - Fast syntax check:
make check - Run tests:
make test - Build docs locally:
make docs-build - Full local verification:
make verify
- Plan before editing for multi-file or ambiguous work.
- Read relevant files before changing them.
- Prefer focused PRs/branches with one main concern each.
- Run
make verifybefore proposing a merge. - If adding a new invariant, encode it in tests or CI.
dfode_kit/cli/: CLI entrypoints and subcommandsdfode_kit/cases/: case init, presets, sampling, and DeepFlame/OpenFOAM-facing helpersdfode_kit/data/: data contracts, HDF5 I/O, and integration helpersdfode_kit/data_operations/: labeling and augmentation workflowsdfode_kit/models/: model architectures and registriesdfode_kit/training/: training configuration, loops, and preprocessingdocs/agents/: deeper agent-facing docs and workflow conventionstests/: lightweight harness tests; keep them fast
- Do not put large architecture essays in this file; add them under
docs/agents/and link here. - Prefer deterministic, non-interactive commands.
- Prefer explicit exceptions over bare asserts for runtime validation changes.
- Keep stdout clean for result output; use logs/errors sparingly.
- Do not mix unrelated refactors in the same branch.
- Do not commit machine-specific local paths to published docs, README examples, or user-facing command snippets. Use portable placeholders like
/path/to/...,${VAR}, or<worktree-root>instead.
docs/agents/README.mddocs/init.mddocs/agents/verification.mddocs/agents/worktrees.mddocs/agents/roadmap.mddocs/agents/package-topology-spec.md