← All research

Research

EWG3.0 Formulator Lite

active
glass chemistryvitrificationpythonoptimizationopen source

EWG30_Lite ↗


The problem

The full facility mission model carries the EWG3.0 glass formulation engine, but you cannot hand it to someone who just wants an answer: feed a waste composition, get the best glass. Starting the whole application to solve one formulation is a wall between the algorithm and the people who need it — a lab with a waste analysis, a student checking a paper’s example, an engineer sanity-checking a blend before the mission run.

The approach

EWG3.0 Formulator Lite is that algorithm, alone. You supply a waste-oxide vector in an Excel template; the tool solves the identical waste-loading maximization used by the full application and writes a result workbook mirroring its export — Summary, Input_Waste, GFC_Recipe, Glass_Composition, Glass_Properties, and Constraints sheets, every constraint shown as value vs published limit with PASS/FAIL and uncertainty margins.

The engine inside (ewg30lite/ewg/) is a byte-copy of the full application’s EWG3.0 stack at a pinned commit (VENDORED_SOURCE_COMMIT.txt): same optimizer, same property models, same coefficients, same Upred conventions. When a sibling checkout of the full application is available, tests/test_parity.py asserts bit-identical formulation results against it — the QA harness has confirmed parity on the report’s six Table 3.4 example wastes and through the full application’s live campaign path.

Use

pip install -e .                          # provides the ewg30-lite command
ewg30-lite template                       # writes waste_vector_template.xlsx
ewg30-lite run waste_vector_template.xlsx -o result.xlsx

The template ships pre-filled with the report’s Table 3.4 “High Al2O3” example waste, so the first run is a reproduction of a published result, not a blank form.

What’s next

You don’t even need the CLI: the same engine runs in your browser on this site, byte-identical, executed as WebAssembly — pick an example waste, edit the vector, and watch waste loading and the 50 acceptance checks re-solve client-side. The CLI remains the portable piece of that chain: no server, no GUI, stdlib-plus-numpy/scipy/openpyxl only.