Add diagram workbench UI with Modelica DoF coaching and ISO glyphs.

Ship the Next.js cycle editor with CAD chrome, technical HX symbols, Fixed/Free boundary guidance, and secondary water/air pressure drop support in the solver stack.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-17 22:46:46 +02:00
parent 62efea0646
commit 3358b74342
275 changed files with 70187 additions and 5230 deletions

View File

@@ -0,0 +1,54 @@
# Pipe
Config type: `"Pipe"`
Source: `crates/components/src/pipe.rs`
---
## EN
### Purpose & model
Fluid duct with **friction pressure drop** (Darcy/Colebrook-style or equivalent implementation) and near-isenthalpic or adiabatic energy transport:
```
ΔP = f(L, D, ε, Re, ṁ, ρ)
h_out ≈ h_in (or with small heat loss if modeled)
```
### Residuals & `n_equations()`
Pressure-drop residual + energy residual (typically **2** on a series branch).
### Ports
`inlet` / `outlet`.
### Calibration
`z_dp` (or equivalent) scales ΔP when exposed via calib — default **1.0**.
### JSON (main)
| Key | Meaning | Default |
|-----|---------|---------|
| `length_m` | length | required |
| `diameter_m` | inner diameter | required |
| `roughness_m` | roughness | small metal default |
| fluid | water / refrigerant path | from circuit |
---
## FR
### But & modèle
**Conduite** avec pertes de charge et transport denthalpie.
### Calibration
Facteur de perte de charge (défaut 1).
### JSON
Voir EN.