Skip to main content

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.3.0 is released (31 October 2026, on PyPI and as a GitHub release). 0.3.0.post1 is the same release with this description and the project links updated; it changes no code.

Released in 0.3.0 Everything 0.2.0 has — the application contract (local, HTTP and MCP), the unit-model library, the planner, the verifier with its certificate or typed failure, the replay bundle, the Peng–Robinson route of the ammonia-synthesis loop, the pinned PyMRM reactor as a unit model, sensitivities, studies and the NLP bridge, surrogate evidence, the trust-region study and the diagnostic web shell — and, new in 0.3.0: countercurrent equilibrium-stage columns with their MESH model, purity, recovery and stage-temperature specifications and one-phase sections (S01, S02, S06, S08, S08b); blind column comparisons with an independent implementation, IDAES, DWSIM and BioSTEAM (S03, S09); IAPWS-95 water (S05); CoolProp's Helmholtz equations of state for 123 pure fluids as an optional extra (S07); the Wilson liquid-mixture method for methanol–ethanol–water with TP and PH flash and the column (S10, S10-C); all of these selectable in flowsheets, with the seven thermal.* units (S11); and cost estimation and LCA as post-solve functionals of a verified state (S12/E01). 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.3.0 claims, and what it is not (Linux only, no global optimality, no liquid–liquid split, no rate-based columns, among others), is in the changelog.

Install

OpenFlowsheet needs Python 3.13 or newer and runs on Linux (x86-64 and aarch64 are tested).

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.3.0/examples/rankine-cycle.changeset.json
import json
from openflowsheet.application.local import LocalApplication
from openflowsheet.application.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") as app:          # a project directory, created empty
    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

    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.

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.3.0.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openflowsheet 0.3.0.post1
File Size Uploaded Provenance Actions
openflowsheet-0.3.0.post1.tar.gz 1.5 MB With provenance Details for openflowsheet-0.3.0.post1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openflowsheet 0.3.0.post1
File Interpreter ABI Platform Actions
openflowsheet-0.3.0.post1-py3-none-any.whl Python 3 none any Details for openflowsheet-0.3.0.post1-py3-none-any.whl

Total release size: 3.3 MB

Release files / openflowsheet-0.3.0.post1.tar.gz

Download URL openflowsheet-0.3.0.post1.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
9c586761033e62f9d306c3b62bce4fe8c888895ffa2bebc87a2d84bc69e48ee3
BLAKE2b-256 checksum
How to use checksums
f30b11be6ae2d9f4591248a55cbe05cd2ad9ddf860f5e9ab8ddce5381beb1dc2
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 Oct 31, 2026.

Transparency log

Release files / openflowsheet-0.3.0.post1-py3-none-any.whl

Download URL openflowsheet-0.3.0.post1-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
46453fd76b2a05105b18da10cf686b9aee6b4714952fb0ff145cecf6f744080f
BLAKE2b-256 checksum
How to use checksums
31036c01507232f8c22f51c9d6626f21be13642d00f3f297ddd521a924bf00ef
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 Oct 31, 2026.

Transparency log

Security for openflowsheet 0.3.0.post1

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.

Select from 2 files

Attestation for openflowsheet-0.3.0.post1.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 Oct 31, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page