Skip to content

Add an interactive refrigerant Mollier diagram - #5

Merged
iguchi-lab merged 10 commits into
mainfrom
agent/mollier-diagram
Aug 17, 2026
Merged

iguchi-lab merged 10 commits into
mainfrom
agent/mollier-diagram

Conversation

@iguchi-lab

Copy link
Copy Markdown
Owner

What changed

  • add a new p-h Mollier-diagram tool for R32, R410A, R134a, R1234yf, and R290
  • expose evaporating/condensing temperature, superheat, subcooling, and pressure-range controls
  • render saturation curves, isotherms, isentropes, and the four-state ideal vapor-compression cycle as responsive SVG
  • show a calculated state table and SVG download
  • add the tool to the calculator home page
  • vendor the official CoolProp 8.0.0 JavaScript/WASM build and MIT license
  • add only wasm-unsafe-eval to the existing self-hosted script CSP
  • add real CoolProp/WASM regression tests for R32 and cycle invariants

Why

iguchi-lab/mollier-diagram is a Python/Matplotlib tool. Running the official CoolProp WebAssembly build in the browser preserves interactive refrigerant calculations without adding another Lambda function or API request.

User impact

The first load downloads approximately 9.2 MB of WebAssembly. Subsequent loads can use the CloudFront browser cache.

Validation

GitHub Actions runs the existing calculator suites plus actual CoolProp/WASM property and refrigeration-cycle tests.

@iguchi-lab
iguchi-lab marked this pull request as ready for review August 17, 2026 06:49
@iguchi-lab
iguchi-lab merged commit 0b7f0c6 into main Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant