# FlowMerger

Config type: `"FlowMerger"`  
Source: `crates/components/src/flow_merger.rs`

---

## EN

### Purpose & model

**N inlets → one outlet**. Mass and energy mix at common pressure:

```
ṁ_out = Σ ṁ_in,i
ṁ_out · h_out = Σ ṁ_in,i · h_in,i
P_out = P_in,i   (ideal junction)
```

### Residuals & `n_equations()`

Mixing mass + energy + pressure equality constraints as implemented.

### Ports

`inlet_0` … `inlet_{n-1}`, `outlet`.

### Calibration

None by default.

### JSON

| Key | Meaning | Default |
|-----|---------|---------|
| `n_inlets` | number of inlets | ≥ 2 |

---

## FR

### But

**Mélangeur** N → 1. Conservation ṁ et H ; pression commune idéale.

### JSON

Voir EN.
