Pipe Network Tutorials¶
These tutorials use the Pipe Network, the unit operation that holds a whole network of pipes, pumps, compressors, valves and boundaries inside one flowsheet object and solves all of it at once. They start with a water grid, move on to compressible gas and flare systems, and end with the fire water network of a tank park, from the fire code check to the drawings and the water hammer.
Tutorials¶
-
Water Distribution Network - Build a water grid fed by a tower and a pumped well, read how the flow divides around a loop, and find the pipe that drops the service pressure at the peak hour.
-
Gas Gathering Network - Gather gas from three wells to a compressor and an export line, where the pressure in the header sets how much each well delivers and the gas heats up in the compressor.
-
Flare and Relief Network - Rate a flare header against its relief scenarios: the backpressure on each relief valve, the Mach number in the laterals and the header, and the sizes the design tool picks.
-
Fire Water Network - Check the fire water network of a tank park against the fire code: zones and profiles, the protected tanks, the scenarios the tool generates, the verification and the calculation report.
-
Fire Water Network in the Plant - Place the network on the plant, check that the hoses reach the whole area, and produce the hydrant plan, the P&ID, the isometrics and the rest of the document set.
-
Water Hammer in the Fire Water Network - Run the transients of the same network by the method of characteristics: a power failure, a pump trip, valves closing and the fire starting, with the pressure envelope of every pipe.
Prerequisites¶
- Completed the Beginner Track
- The Pipe Network is part of the Patreon edition (Premium+). The scripts need
DWSIM_PATRON_KEYwhen DWSIM is not activated on the machine.
How a pipe network is solved¶
graph LR
R["Reservoir or source<br/>(fixed head or flow)"] --> N1(("Node"))
N1 --> P["Pipe, pump, valve<br/>(branch)"]
P --> N2(("Node"))
N2 --> S["Sink<br/>(fixed flow or pressure)"]
Every branch (a pipe, a pump, a valve) joins two nodes and relates its flow to the pressure difference between them. Every node balances the mass that enters and leaves it. The network solver writes all these equations together and solves them by Newton's method, so the flows in a loop and the pressures at the junctions come out of one calculation, the way a hydraulic network program such as EPANET does it.