Water or gas pipe size, velocity and pressure loss
size_pipeSizes a hot or cold water pipe, or a low-pressure gas pipe, and shows the working. Water: design flow (from outlets, with a simple in-use-at-once rule, or a flow you give), velocity against a limit (1.5 m/s default), pressure loss per metre and in total, and the pressure left at the outlet if you give the supply pressure. Gas: flow from the gross heat input of the appliances fed, pressure drop against the 1 mbar natural gas (2.5 mbar LPG) allowance, with a meter capacity warning. Returns recommended (smallest size that passes), sizes_considered, must_check (points the engineer confirms) and sources. Calculated from fluid physics (Darcy-Weisbach); no BS EN 806 or BS 6891 tables are reproduced. Typical calls: {"medium":"gas","heat_input_kw_gross":30,"run_length_m":12,"fittings":{"elbows":5}} or {"medium":"water","service":"cold","outlets":[{"type":"bath"},{"type":"kitchen_sink"},{"type":"basin"},{"type":"wc"},{"type":"shower_mixer"}],"run_length_m":15,"supply_pressure_bar":2.5,"height_rise_m":3}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"medium": "<medium>",
"run_length_m": "<run_length_m>"
},
"name": "size_pipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gas | No | Gas only. Default natural_gas. | |
| trade | No | Optional. The plumber or heating engineer's own business details (Nero Trade Profile v1, the same shape as Spark Pack and Nero Work). Used to prefill records and to give a stable nero_trade_ref. Not stored by Flow Pack. | |
| medium | Yes | ||
| outlets | No | Water only: outlets this pipe feeds. | |
| service | No | Water only. Default cold. | |
| fittings | No | Count of fittings on the run. If left out, 30% is added to the length instead (or fittings_allowance_percent). | |
| material | No | Water: copper (default), plastic, mdpe. Gas: copper (default), steel, csst. | |
| pipe_size_mm | No | Check only this nominal size. | |
| run_length_m | Yes | Measured pipe length, metres (from the meter for gas, from the stop tap or cylinder for water). | |
| water_temp_c | No | Water only. Default 10 cold, 60 hot. | |
| gas_flow_m3_h | No | Gas only: gas flow, if already known. | |
| height_rise_m | No | Water only: height gained from start to outlet (negative if it falls). | |
| design_flow_l_s | No | Water only: design flow in litres a second, if known (overrides outlets). | |
| max_velocity_m_s | No | Water only. Default 1.5. | |
| allowed_drop_mbar | No | Gas only. Default 1 natural gas, 2.5 LPG. | |
| heat_input_kw_net | No | Gas only: if only the net figure is known. | |
| heat_input_kw_gross | No | Gas only: total gross heat input of every appliance this pipe feeds (data plate). | |
| supply_pressure_bar | No | Water only: working pressure at the start of the run (measured with water flowing). | |
| simultaneous_outlets | No | Water only: how many outlets run at once. Default: square root of the number of outlets, rounded. | |
| fittings_allowance_percent | No | Length added for fittings when they are not counted. Default 30. | |
| min_pressure_at_outlet_bar | No | Water only: pressure needed at the end. Default 1.0 bar. |