# FlowSplitter

Config type: `"FlowSplitter"`  
Source: `crates/components/src/flow_splitter.rs` (or equivalent)

---

## EN

### Purpose & model

One inlet → **N outlets**. Mass splits across outlet legs; pressure continuous at the node (common header assumption unless specialized ΔP models exist).

```
ṁ_in = Σ ṁ_out,i
P_out,i = P_in   (ideal splitter)
h_out,i = h_in   (same enthalpy)
```

### Residuals & `n_equations()`

Mass split + equal-P / equal-h constraints per topology. Port count depends on `n_outlets` configuration.

### Ports

| Port | Role |
|------|------|
| `inlet` | single inlet |
| `outlet_0` … `outlet_{n-1}` | outlets |

### Calibration

None by default.

### JSON

| Key | Meaning | Default |
|-----|---------|---------|
| `n_outlets` | number of legs | ≥ 2 |

---

## FR

### But

**Séparateur de débit** 1 → N. Conservation de ṁ ; même P/h idéalement.

### Ports / JSON

Voir EN.
