Pipe Network Lab

Pipe Network Lab

Build a small connected network with fixed-pressure boundaries and junction demands. For each pipe choose a signed linear pressure loss Δp=R q or a quadratic loss Δp=K q|q|, with q positive from its start to end. The browser solves junction mass balances by damped Newton iteration and reports residuals so an unsuccessful solve is visible. You supply the coefficients; this is an equal-elevation, steady, incompressible pressure-only model, not a calibrated water-system design.

Model and units

Steady incompressible, equal-elevation, pressure-only network. Pressure is gauge kPa and signed pipe flow is L/s. Supply R in kPa/(L/s) or K in kPa/(L/s)²; the tool does not derive coefficients from pipe geometry.

Exploratory model only. No pumps, valves, storage, elevation head, cavitation check or physical coefficient calibration. Do not use this result alone for a utility design or safety decision.

1. Edit the network

Use 2–10 nodes and 1–20 pipes. Pipe arrows define positive flow direction, not a one-way valve. At least one fixed-pressure node must connect to every other node.

Nodes

A fixed node sets gauge pressure; a junction withdraws the specified nonnegative demand. Node IDs are stable and appear in pipe endpoints.

Boundary and junction nodes
IDKindPressure · kPa gaugeDemand · L/sAction
S
J
T

Pipes

Linear: Δp=R q, R in kPa/(L/s). Quadratic: Δp=K q|q|, K in kPa/(L/s)². Coefficients must be positive.

Directed pipe endpoints and user-supplied loss law
IDFromToLoss lawCoefficient R or KAction
P1
P2

Edit the example network, then solve it.

Comments & questions

Pipe Network Lab

Build a small connected network with fixed-pressure boundaries and junction demands. For each pipe choose a signed linear pressure loss Δp=R q or a quadratic loss Δp=K q|q|, with q positive from its start to end. The browser solves junction mass balances by damped Newton iteration and reports residuals so an unsuccessful solve is visible. You supply the coefficients; this is an equal-elevation, steady, incompressible pressure-only model, not a calibrated water-system design.

Key features

  • Edit 2–10 nodes and 1–20 pipes, including parallel pipes and loops
  • Fixed gauge-pressure boundaries and nonnegative junction demands with explicit kPa and L/s units
  • Choose user-supplied linear or quadratic loss coefficient for each pipe
  • Damped Newton junction solve with connected-graph checks and finite iteration limit
  • Signed flow, junction pressure, mass and pipe-law residual tables with convergence trace
  • Download converged results as CSV or model/trace JSON

How to use

  1. Load the single-pipe or mixed-loss example, then add or remove nodes and pipes for your topology.
  2. For each node choose a fixed gauge pressure in kPa or a junction demand in L/s; keep at least one fixed boundary.
  3. Choose each pipe's start and end, loss law and positive coefficient in the unit shown for that law.
  4. Solve and inspect convergence status, junction mass residual, pressure-law residual and the iteration trace.
  5. Only for a converged result, download the CSV or JSON with assumptions, signs and the complete trace.

Use cases

  • Check flow splitting across parallel paths under fixed boundary pressure
  • Compare a linear and quadratic user-supplied loss coefficient in a small network
  • See how junction demand changes unknown pressure and direction of flow
  • Teach mass balance, signed pressure drop and nonlinear iterative convergence

Frequently asked questions

Where do pipe coefficients come from?

You must supply them. R has units kPa/(L/s) for Δp=R q and K has units kPa/(L/s)² for Δp=K q|q|. This tool does not infer them from length, diameter, roughness, viscosity, Reynolds number or material.

How are pressure and flow signs defined?

Pressure is gauge kPa. Each pipe's q is positive from its selected start to end and negative when flow reverses. Its pressure drop is p(start)−p(end). Junction demand is nonnegative withdrawal. Fixed boundaries absorb or supply the remaining net flow.

What does convergence mean?

The maximum absolute junction mass-balance residual is at or below 1e−8 plus 1e−10 times the sum of absolute pipe flows, in L/s. Pipe-law residuals are also reported. A nonconverged trace is tentative and cannot be downloaded as a solved network.

Can I model a real water distribution system?

Not with this limited model alone. It assumes steady incompressible flow, equal elevation and prescribed fixed boundary pressures, with no pump, valve, tank, elevation head, fluid-property, cavitation or pressure-dependent demand model. A negative gauge pressure is flagged but not physically assessed. Do not use it for safety or construction approval.

Why does a disconnected or self-connected pipe fail?

Every node must be in one connected component with a fixed-pressure boundary, and a pipe cannot start and end at the same node. A disconnected component lacks the data needed to anchor its pressure; edit the endpoints or add a connecting pipe.

Is the network uploaded?

No. Editing, solving and requested CSV/JSON generation run in this browser tab.

Privacy

Network settings and calculations remain in browser memory. Files are created locally only when you request a download.

References

Related Tools

Unit ConverterFunction Graph WorkbenchScientific Data ProfilerWasm Module InspectorHreflang Matrix CheckerAST Query PlaygroundContainer Build GraphDependency Graph ExplorerSemver Range LabCron Schedule AuditorPatch Review WorkbenchSource Map ExplorerLocalization Catalog AuditorStructured Data ReviewerHTTP Archive AnalyzerWebhook Signature LabProtobuf Schema WorkbenchGraphQL Schema LabAvro Schema EvolutionLocal SQL WorkbenchSchema Form BuilderMesh Repair WorkbenchRobot Arm Kinematics LabThermal Network LabBeam Response LabGear Train DesignerTolerance Stackup LabSensor Calibration FitPCB Stackup PlannerDigital Filter DesignerNetwork Reachability MapSun Shadow MapGPS Error SimulatorDigital Logic SimulatorAnalog Circuit LabMechanism Linkage LabAnalysis Mesh GeneratorOpenAPI Contract InspectorDatabase Migration PlannerDimensional Equation CheckerTruss Force LabBoolean Minimization LabControl Response LabQueueing Simulation LabGeofence Event SimulatorCoordinate Reference LabSurvey Traverse LabRaster Classification LabChoropleth Design LabMap Print ComposerRaster Reprojection LabElevation Contour MakerTerrain Viewshed LabWatershed DelineatorMap Tile PackagerText File Encoding WorkbenchFilesystem Portability AuditorSBOM License ExplorerFile Signature Auditornpm Lockfile Conflict ResolverSource Secret AuditorOffline Web Package BuilderCertificate Chain InspectorTorrent Metainfo InspectorChunked File PackagerEncrypted File VaultDuplicate File FinderArchive WorkbenchDesign Token ManagerSpacing Token DesignerResponsive Type SystemPackaging Dieline DesignerSVG Icon Sprite PackerFlex Layout PlaygroundCSS Grid PlaygroundRegex Equivalence LabMarkdown Repository AuditorLog Template MinerResponsive Layout AuditorEmail Template PreviewInternal Link GraphState Machine TesterPetri Net SimulatorGit History VisualizerCurl Request WorkbenchBinary Protocol DesignerHex File EditorBinary Patch WorkbenchFile Signature WorkbenchAPI Mock SandboxSchema Column MapperEvent Log SessionizerER Diagram DesignerTime Series Gap AuditorStratified Data SplitterData Lineage DesignerDecision Tree LabData Anonymization WorkbenchData Expectation RunnerJSON Schema ValidatorBasket Pattern AnalyzerRobots Policy TesterSEO HTML AuditorAccessibility Structure AuditorSyndication Feed WorkbenchIndexNow Payload BuilderCrawl Log AnalyzerCSP Policy WorkbenchSearch Performance AnalyzerCSV Formula Risk AuditorCORS Response SimulatorCache Header LabCookie Policy InspectorWeb Vitals Trace LabSitemap Health AuditorBatch File RenamerFile Manifest VerifierFolder Space MapFolder Difference ReviewerRoute Order OptimizerGeoJSON Map EditorPolygon Overlay LabCartographic Label PlacerSpatial Table JoinGeoJSON Topology AuditorGPX Track AnalyzerTrack Privacy RedactorCSV Table JoinCSV Pivot WorkbenchTabular Cleaning WorkbenchRecord ReconciliationData Dictionary BuilderCanonical Graph AuditorRedirect Plan TesterHTTP response and ping reference testBrowser and System InformationJSON ↔ YAML ConverterXML ↔ JSON ConverterHTML FormatterJavaScript MinifierMock Data Generator.gitignore GeneratorLicense GeneratorUser-Agent ParserPassword Strength CheckerCode to ImageXML FormatterHTTP Status Code LookupMIME Type LookupJS & SQL String EscapeCSS Box Shadow GeneratorCSS Gradient GeneratorIndent ConverterNumber Base ConverterUnicode Escape ConverterUnicode InspectorJSON Structure DiffMarkdown Table GeneratorBase64 EncoderJSON FormatterURL EncoderSQL FormatterCron Expression GeneratorRegex TesterUUID GeneratorHash GeneratorTimestamp ConverterJWT DecoderHTML Entity ConverterMarkdown PreviewCSS MinifierMeta Tag GeneratorJSON ↔ CSVCase ConverterImage to Base64
Explore all Dev Tools tools →Image/Media →Text/Convert →Life/Fun →