recommend_diameter
Selects standard pipe diameters that meet a specified flow rate and velocity window, returning material-specific sizes with calculated velocity and Reynolds number.
Instructions
Recommend standard pipe diameters for a given flow rate and target velocity range. Given a design flow (in any EPANET flow unit) and an acceptable velocity window, computes the ideal inner diameter using Q = v × πd²/4, then returns every standard pipe size (from HDPE, PVC, ductile iron, or steel in medium/Sch 40/Sch 80 variants) whose inner diameter produces a velocity within the range. Each recommendation includes the resulting velocity, an approximate Reynolds number (for turbulence check), and the standard it comes from. Use presets (distribution, transmission, service, suction) for typical velocity ranges, or specify custom min/max. Pipe diameters returned are the inner-diameter values to use with set_pipe_diameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | Velocity-range preset: distribution (0.6–1.5 m/s, water mains), transmission (1.0–2.5 m/s, large mains), service (0.5–1.2 m/s, service connections), suction (0.8–1.5 m/s, pump suction). 'custom' (default) uses minVelocity/maxVelocity. | |
| flowRate | Yes | Design flow rate in the given flow units (e.g. 10 for 10 LPS, 150 for 150 GPM). | |
| material | No | Restrict recommendations to a single material. Omit to search all materials. | |
| flowUnits | Yes | Flow units matching EPANET's [OPTIONS] Units. SI: LPS (L/s), LPM (L/min), MLD (ML/d), CMH (m³/h), CMD (m³/d). US: GPM, CFS (ft³/s), MGD, IMGD, AFD. | |
| maxVelocity | No | Maximum acceptable velocity in m/s (default 2.0). Above this, erosion and water-hammer risk increases. | |
| minVelocity | No | Minimum acceptable velocity in m/s (default 0.5). Below this, sedimentation risk increases. For US flow units this is still m/s — the tool converts internally. |