# 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 d’enthalpie.

### Calibration

Facteur de perte de charge (défaut 1).

### JSON

Voir EN.
