OpenFlowsheet
An agent-native open process-engineering runtime, in which models, equations, numerical strategies, validity limits and evidence are explicit objects. Humans and coding agents work against the same scientific contracts. The project owns solver orchestration and process-specific numerical methods, and reuses established differentiation, linear-algebra and optimization infrastructure.
A flowsheet is a validated document, a solve is a job with a typed result, and every converged run
comes with a certificate from an independent verifier that says what it checked and what it does
not claim. Python, the openflowsheet command line, HTTP and MCP run the same operations with the
same results.
Documentation: https://computational-chemical-engineering.github.io/openflowsheet/
Status
Early development. Version 0.6.0 is released. Version 0.5.1 was released on 24 November 2026, version 0.5.0 on
23 November 2026, version 0.4.0 on 11 November 2026 and version 0.3.0 on 31 October 2026 (0.3.0.post1 is the same
release with a new description and the project links; it changes no code).
| Released in 0.6.0 | The application contract (Python, the command line, HTTP and MCP), the unit-model library, the planner, the verifier with its certificate or typed failure, and the replay bundle; the Peng–Robinson route of the ammonia-synthesis loop with the pinned PyMRM reactor as a unit model; sensitivities, studies, the NLP bridge, surrogate evidence, the trust-region study and the diagnostic web shell; countercurrent equilibrium-stage columns (MESH) with blind comparisons against an independent implementation, IDAES, DWSIM and BioSTEAM; IAPWS-95 water, CoolProp's Helmholtz equations of state for 123 pure fluids as an optional extra, and the Wilson liquid-mixture method for methanol–ethanol–water; cost estimation and LCA as post-solve functionals of a verified state. New in 0.4.0: optimisation of revision flowsheets (optimize), declared warm starts, revision-region continuation, the stream table, display units at the boundary, replay from the installed wheel and the message-code catalogue. New in 0.5.0: Windows and macOS in CI (the release is still judged on Linux), the extension registry (list_capabilities, check_admission), the component record store (search_records and four more Records operations; no solve reads it yet) and the plugin guide. New in 0.5.1: openflowsheet project grant prints its token alone on standard output, so grant ... > token.txt writes the file serve-mcp --token-file reads. New in 0.6.0: the material model (quantity kinds, connection definitions, phase and variable ids, Specification v2 and ProcessRevision v2, lowered to the same solve as before), the replay-bundle v2 format (writer and replay, with a data lock and a registry comparison; no solve writes it yet), MCP over streamable HTTP (serve-http at /mcp), branches, project solve policies and in-band administration (off by default); job resume is not in 0.6.0. The supported envelope is the support matrix: unlisted is unsupported |
| Established | Numerical verification against independent references, for example the P01 oracle against 20-digit reference values (7.1e-15 worst relative deviation); agreement with IDAES, DWSIM and BioSTEAM on shared column cases, which share the equations and are therefore not validation |
| Validation against data | The Wilson method is within its pre-registered bands against measured vapour–liquid equilibrium of methanol–ethanol–water (ternary at 101.3 kPa; binaries with water at 323–333 K); methanol's liquid enthalpy and heat capacity are not within band against CoolProp. The C1 loop and its reactor results are not empirically validated |
| Not established | Optimality evidence; human numerical or process-modeling review — review.numerical and review.process_model are pending in every evidence manifest and no agent may set them |
What 0.6.0 claims, and what it is not (judged on Linux only, no global optimality, no liquid–liquid split, no rate-based columns, no solve that reads the component record store, a plugin that adds no unit model a solve uses, among others), is in the changelog.
Install
OpenFlowsheet needs Python 3.13 or newer and runs on Linux (x86-64 and aarch64 are tested). Windows (x86-64) and macOS (arm64) are tested in CI since 0.5, with the limits the installation guide lists.
python -m pip install openflowsheet
| Extra | Install | Adds |
|---|---|---|
coolprop |
pip install "openflowsheet[coolprop]" |
The CoolProp pure-fluid basis coolprop-heos-v1 |
server |
pip install "openflowsheet[server]" |
The HTTP server with the optional web shell, and the MCP server |
lca |
pip install "openflowsheet[lca]" |
The offline Brightway adapter that builds LCA unit-score tables |
nlp |
see the installation guide | The general NLP bridge (Pyomo and Ipopt); needs a conda-forge environment |
Quickstart
Solve a once-through Rankine cycle on IAPWS-95 water from a ready-made change set:
curl -sLO https://raw.githubusercontent.com/computational-chemical-engineering/openflowsheet/v0.6.0/examples/rankine-cycle.changeset.json
import json
from openflowsheet.application.local import LocalApplication
from openflowsheet.application.transaction_types import Change
with open("rankine-cycle.changeset.json") as handle:
change_set = json.load(handle)
change, expected_revision, key = Change.from_change_set(change_set)
with LocalApplication.create("plant", exist_ok=True) as app: # created, or opened on a re-run
committed = app.commit_change(change, expected_revision, key)
report = app.validate(committed.revision_id, "simulation")
print(report.status) # READY_FOR_SIMULATION
run = app.solve(committed.revision_id, "default")
print(run.outcome, run.verification_status) # CONVERGED VERIFIED
run.raise_for_outcome() # says why, if the solve failed
bundle = next(o.artifact_id for o in run.outputs if o.kind == "replay_bundle")
state = json.loads(app.artifact_bytes(f"{bundle}/solution-state.json"))["variables"]
print(state["T.W"], state["B.Q"]) # turbine work, boiler duty (W)
The same steps from the command line:
openflowsheet project init plant
openflowsheet api --project plant commit_change --json-file rankine-cycle.changeset.json
openflowsheet api --project plant solve --json '{"revision_id": "rev-000001", "policy_id": "default"}'
The quickstart reads the certificate, and the tutorials build a flowsheet step by step.
Links
- Documentation: https://computational-chemical-engineering.github.io/openflowsheet/
- Repository: https://github.com/computational-chemical-engineering/openflowsheet
- Changelog: https://github.com/computational-chemical-engineering/openflowsheet/blob/main/CHANGELOG.md
- Releases: https://github.com/computational-chemical-engineering/openflowsheet/releases
- Issues: https://github.com/computational-chemical-engineering/openflowsheet/issues
- Support matrix: https://github.com/computational-chemical-engineering/openflowsheet/blob/main/docs/support-matrix.md
- Limitations: https://computational-chemical-engineering.github.io/openflowsheet/guide/limitations/
Third-party notices
This software uses CasADi 3.8.0, which is licensed under the GNU Lesser General Public License, version 3 or later (LGPL-3.0-or-later). CasADi is a separate work, obtained by the installer from PyPI as a pinned dependency; this project distributes none of its bytes. It is used through its Python API only — the interpreter loads the library at run time, nothing is compiled against its headers or linked against it at build time, and a user may substitute their own build of CasADi 3.8.0 by replacing the installed package.
The full licence text ships inside the CasADi distribution at casadi/LICENSE/LICENSE.txt in the
installed package, together with notices for its bundled components at casadi/include/licenses/.
An exact inventory of what that distribution contains — every binary with its SHA-256, the bundled
plugin inventory including the bytes that cannot run, and the notices — is
docs/p03-binary-audit.md,
with the machine-readable record in spikes/p03/results/. The terms on which this project may and
may not redistribute any of it are
docs/adr/0006-distribution-data-rights.md.
Changing the CasADi pin re-runs that audit before the change merges.
Further attributions are in
NOTICE.
Licence
The core licence is Apache-2.0, declared in pyproject.toml and stated in
LICENSE and
NOTICE. The
maintainer confirmed the project's rights to distribute its contributions under it on 2026-09-23
(120acb4). Why Apache-2.0 rather than MIT is recorded in the
decision register
R-005.
Developing OpenFlowsheet
git clone https://github.com/computational-chemical-engineering/openflowsheet.git
cd openflowsheet
make venv # .venv with the project and its dev extra, from the pinned lock
make check # ruff, ruff format, mypy --strict, pytest — the gate; a failed gate stays failed
The architectural authority is the
blueprint,
the execution authority the
implementation plan,
and the normative decisions are the
ADRs, indexed by the
decision register.
Coding agents follow
CLAUDE.md.
What each package has and has not shown is in evidence/<ID>/<commit>/manifest.json, the current
position in
docs/progress.md,
and how a release is made in
docs/RELEASING.md.
The diagnostic web shell (openflowsheet serve-http --ui, with the server extra) is described in
docs/web-shell.md.
Metadata
Release files for openflowsheet 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openflowsheet-0.6.0.tar.gz | 2.1 MB | With provenance | Details for openflowsheet-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openflowsheet-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for openflowsheet-0.6.0-py3-none-any.whl |
Total release size: 4.6 MB
Release files / openflowsheet-0.6.0.tar.gz
| Download URL | openflowsheet-0.6.0.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fea575fb54b3b789aaee2a2f898e9bbeb9fc3657ef0a368eb72b1854de496e39
|
|
BLAKE2b-256 checksum How to use checksums |
22b44068f75992c8e3e79f6542b9311d5fea71bbce6947000e76fd63064e6a27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / openflowsheet-0.6.0-py3-none-any.whl
| Download URL | openflowsheet-0.6.0-py3-none-any.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8acdb1a0ae1a921986746dc712081c6ec28ed0317feca97806769b3ab49cb78d
|
|
BLAKE2b-256 checksum How to use checksums |
b7014c95bee66db8f5e2113b35f7c05e6c3b909cdc1709a0f685f3768c3be0c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for openflowsheet 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for openflowsheet-0.6.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.