Expose valve opening and solved Cv in Process Studio - #74
Conversation
|
@codex review Please review exact head |
|
@copilot review Please review exact head |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@copilot review Retrying the mandatory exact-head review for |
|
Readiness recheck for exact head
Merge remains intentionally blocked because Copilot has not submitted the required exact-head review after bounded retries. The same PR remains open; next action is to recheck Copilot and merge by rebase only if its review completes cleanly. |
|
@copilot review Bounded retry for exact head |
There was a problem hiding this comment.
Pull request overview
This PR enhances the Process Studio valve model by making steady-state valve opening an explicit, validated property and by surfacing solved valve opening and valve Cv KPIs with an explicit “US Cv” unit label, including legacy-parameter migration behavior.
Changes:
- Added
percent_valve_openingto valve editor metadata (1–100%) and migrated legacy pressure-only valve params to default 100% opening without mutating saved input. - Extended KPI extraction to expose
percentValveOpeningfor valves and to labelCvKPI units asUS Cv. - Expanded conservation/nearby-point tests to assert valve opening behavior and Cv sizing monotonicity across openings and flow scales.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/test_process_graph_conservation.py | Adds assertions and a new benchmark-style test validating solved valve opening KPI and Cv sizing behavior. |
| tests/test_flowsheet_editor.py | Adds coverage for valve property metadata (units/defaults) and legacy param migration + validation. |
| process_chat/process_model.py | Exposes valve opening KPI and relabels Cv KPI unit as US Cv. |
| process_chat/flowsheet_editor.py | Adds percent_valve_opening property metadata and migrates legacy valve params to 100% opening. |
|
@codex review Please review exact repair head |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Engineering evidence
For a 90/10 methane/ethane feed at 80 bara and a specified 30 bara outlet:
The lower opening requires the expected larger installed Cv, and the +5% flow point increases Cv monotonically. Outlet pressure and temperature are unchanged for the same specified-pressure throttle. Every point converged with mass, maximum-component, and energy residuals below 1e-6%.
Validation
python -m compileall -q process_chat pages tests/_stcore/health=oktwice, process remained liveonline-new-snapshot, 80 public-PyPI wheels with manifest/hash verificationRoadmap
Advances commits 41–50 (metadata-driven valve properties and deterministic migration) and 71–80 (explicit valve Cv convention and design evidence).
Documentation impact
The Studio palette/editor metadata and solved workbook KPI labels are the user-facing documentation for this property. No separate equipment-property guide currently exists.