Fire Water Network in the Plant¶
In this tutorial you will place the fire water network of Fire Water Network on the plant. Every node and outlet gets a position, the pipes get their routes, and the plan gets the dike, the pump house and the area the hoses have to reach. The pipes then take their lengths from the routes, the network is verified again, the hose reach is checked along the real path of the hose, and the tool draws the document set: the hydrant plan, the P&ID, the isometrics, the data sheets, the take-off and the 3D and IFC models.
What you will learn
- How plant positions and pipe routes turn the hydraulic network into a model of the plant
- Why the lengths from the routes change the verification
- How the hose reach is checked: a reach radius first, then the hose path around the buildings and the tanks
- Which drawings and models the Documents tab produces, and how they are numbered and stamped
Prerequisites
- Completed Fire Water Network
- DWSIM 10.3.0 or later
- The Pipe Network and its Fire Protection tool are part of the Patreon edition (Premium+). The drawings are made by CADCraft and the 3D model by SolidCraft, which have to be installed on the same computer.
Process Overview¶
The plan uses a local grid in metres: east is +X, north is +Y, and the elevation is measured from grade. The two tanks stand inside a dike 58 m by 24 m around the origin, with TQ-01 at (0, 0) and TQ-02 at (28, 0). The fire reserve and the pump house are to the south-west. The ring main runs around the dike, and the hydrants stand on its outer side, where a fire brigade can reach them. An access road to the west of the ring is an area the hoses must cover.
| Item | Position or outline (m) |
|---|---|
| Pump house | (-70, -60) to (-58, -48), 5 m high |
| Dike B1 | (-14, -12) to (44, 12), 1.2 m high |
| West access road (area to protect) | (-60, -45) to (-35, 10) |
| H-01, H-02 | (-45, -39), (-45, 0) |
| H-03, H-04, H-05 | (75, 0), (66, -18), (14, -55) |
| Spray rings AN-01, AN-02 | on the tanks, 12 and 10 m above grade |
| Foam chambers CF-01, CF-02 | on the tanks, 12 and 10 m above grade |
Step-by-Step in the Classic UI¶
1. Positions and routes¶
Open the pre-built flowsheet of tutorial 4 (fire_water_network.dwxmz) or your own. Every node and every outlet has a Plant Position group in its editor: type the X, Y and elevation of each one. A pipe runs straight between the positions of its two ends unless you give it a route: the corners in between, as X, Y, Z triples. The ring main needs two corners for RING-2, which goes round the north side of the dike, and the branches to the spray rings and the foam chambers need the corner where they turn up the tank.
Typing positions is the slow way. The Plant Geometry tab can also take them from a CAD arrangement (DXF or DWG), from the isometrics of the lines, from a spreadsheet or from the coordinates of an EPANET file, and it can fill in an approximate layout from the diagram.
2. The plan areas¶
Open Tools > Fire Protection > Plant Geometry and add three areas with Add Area: the dike B1 (kind Dike, 1.2 m high), the Pump house (kind Building, 5 m high) and the West access road (kind Protected, zone TP), with the outlines of the table above.
Click Lengths from the Routes. Every pipe whose route is longer than its straight length takes the route length, and the branches that rise to the tanks take their elevation change. Eleven pipes change: MAIN goes from 80 to 46 m, RING-2 from 120 to 146 m, and the branches to the spray rings and the foam chambers take the length of their routes. Then click Check Geometry.

3. Verify again¶
Go back to Verification and Report and click Verify the Network. The network still meets the code, and the margins move with the new lengths:
| Scenario | Most unfavourable outlet | Margin before (mca) | Margin with the routes (mca) |
|---|---|---|---|
| Most unfavourable | H-04 | 55.30 | 55.34 |
| Fire on TQ-01 | AN-02 | 4.19 | 6.58 |
| Fire on TQ-02 | AN-01 | 7.36 | 9.90 |
| Reserve at the minimum level | H-04 | 49.80 | 49.84 |
The main from the pump house is 34 m shorter than the 80 m assumed in tutorial 4, so the fire scenarios, which carry 3000 L/min through it, gain more than 2 m of margin. A verification on estimated lengths is a first pass. The one that goes into the calculation report should use the lengths of the routes.
4. The hose reach¶
In Plant Geometry, click Check Hose Reach. The profile sets how far a hydrant reaches: 30 m of hose plus a 10 m jet for system type 3. The tool covers the protected area with a grid of points and checks each one in two passes. The first pass keeps the points within 40 m of a hydrant in a straight line. The second pass lays the hose along the shortest path around the buildings, the obstacles and the tanks, with the jet along its last straight leg. The dike doesn't stop a hose.
All 5500 points of the access road are reached along the hose path, by H-01 and H-02.
5. The document set¶
Open Documents. The Title block fields go on every sheet: the project, the owner, the area, the revision, the status, who prepared, checked and approved, and the prefix of the document numbers (FW). The language of the drawings follows the profile of the zone unless you choose one.
Click Document Set. The tool draws every document into one folder and numbers them as one set:
| Number | Document |
|---|---|
| FW-LD-001 | Drawing and document list (XLSX and CSV) |
| FW-PID-001 | Simplified P&ID of the fire water network |
| FW-PH-001 | Hydrant layout and hose reach |
| FW-ISO-001 to FW-ISO-018 | One isometric per line |
| FW-DS-001 to FW-DS-007 | Data sheets: the three pumps, the proportioner, the reservoir, the hydrant schedule and the outlet schedule |
| FW-3D-001 | 3D model (STEP), with a flow animation |
| FW-IFC-001 | BIM model (IFC4) |
| FW-MTO-001 | Line list and material take-off (XLSX and CSV) |

The drawings are written as DXF, DWG and PDF, with a PNG preview. The calculation report of tutorial 4 gets a section with the drawing list.
6. Read the drawings¶
The hydrant plan draws the ring, the hydrants with their reach circles, the tanks, the dike, the pump house and the protected area. Any ground the hoses don't reach along their real path would be shaded.

The P&ID is drawn from the network diagram: every pipe is a line with its number, size and flow arrow, the pumps carry their role and rated point, the hydrants their required flow, and the fixed devices their K factor.

Each isometric draws one line, from branch point to branch point, with its route, its welds and spools, a line data table and the bill of materials.

The data sheets carry the duty of each piece of equipment from the solved network, and the pump data sheet adds the rated point, the head and NPSH curve and the operating point of the pump in every scenario. BI-01A delivers about 3000 L/min in the two tank fires, close to its rated point, and about 381 L/min in the other scenarios.

The design pressure and the flange rating of the isometrics are preliminary estimates from the operating pressure of the active scenario. Before you issue them, set the design pressure from the shut-off pressure of the pumps at the highest suction level: here 90 m of pump head plus 6 m of reserve, about 9.4 bar, and 10.2 bar where the jockey holds the network at rest.
Results and Validation¶
Expected results
- 22 of 22 nodes and 11 of 11 outlets placed; 11 pipes take their length or elevation from the routes.
- The network still meets the code with the routed lengths; the fire on TQ-01 governs with AN-02 at 6.58 mca of margin.
- The hose reach covers 100 % of the 5500 points of the access road along the hose path.
- The document set has 31 documents, numbered FW-LD-001 to FW-MTO-001.
Automating This Tutorial¶
Files in this repository
- Python script:
examples/pipe-networks/05_fire_water_plant.py - Pre-built flowsheet:
examples/saved/fire_water_plant.dwxmz(positions, routes, areas, title block)
The script runs the script of tutorial 4, places the network on the plant, verifies it again, checks the hose reach and writes the document set into fire_water_documents next to itself. Set DOCUMENT_LANGUAGE=pt for drawings in Portuguese. It needs DWSIM_PATRON_KEY when DWSIM is not activated on the machine, and CADCraft and SolidCraft for the drawings and the 3D model.
import os
import runpy
HERE = os.path.dirname(os.path.abspath(__file__))
# the network, its fire protection data and the verified scenarios of tutorial PN04
g = runpy.run_path(os.path.join(HERE, "04_fire_water_network.py"))
fs, net = g["fs"], g["net"]
from System import Array, Double # noqa: E402
from DWSIM.UnitOperations.PipeNetwork.Geometry import PlantAreaKinds # noqa: E402
# --- plant positions (m east, m north, elevation) ------------------------------------------
# the reserve and the pump house to the south-west, the ring main around the tank park, the
# spray rings and the foam chambers on the tanks
POSITIONS = {
"N-SUC": (-78, -54, 0), "N-PI": (-66, -54, 0), "N-PO": (-62, -54, 0),
"N-A": (-30, -40, 0), "N-A1": (-30, -39, 0), "N-B": (-30, 0, 0), "N-C": (60, 0, 0), "N-C1": (60, -4, 0), "N-D": (14, -40, 0),
"N-H-01": (-45, -39, 0), "H-01": (-45, -39, 0), "N-H-02": (-45, 0, 0), "H-02": (-45, 0, 0),
"N-H-03": (75, 0, 0), "H-03": (75, 0, 0), "N-H-04": (66, -18, 0), "H-04": (66, -18, 0),
"N-H-05": (14, -55, 0), "H-05": (14, -55, 0),
"N-AN-01": (-8, 0, 12), "AN-01": (-8, 0, 12), "N-AN-02": (34.5, 0, 10), "AN-02": (34.5, 0, 10),
"N-FOAM": (14, -37, 0), "N-FOAM-2": (14, -20, 0),
"N-CF-01": (0, -8.5, 12), "CF-01": (0, -8.5, 12), "N-CF-02": (28, -7, 10), "CF-02": (28, -7, 10),
"N-LS-01": (-6, -37, 0), "LS-01": (-6, -37, 0), "N-LS-02": (34, -37, 0), "LS-02": (34, -37, 0),
}
for tag, (x, y, z) in POSITIONS.items():
net.SetPlantPosition(tag, x, y, z)
def corners(*xyz):
return Array[Double]([float(v) for v in xyz])
# the corners of the pipes that do not run straight between their two ends
ROUTES = {
"MAIN": (-30, -54, 0),
"RING-2": (-30, 28, 0, 60, 28, 0),
"RING-3": (60, -40, 0),
"B-H-04": (66, -4, 0),
"B-AN-01": (-8, 0, 0),
"B-AN-02": (34.5, 0, 0),
"B-CF-01": (0, -20, 0, 0, -8.5, 0),
"B-CF-02": (28, -20, 0, 28, -7, 0),
}
for tag, xyz in ROUTES.items():
net.SetPipeRoute(tag, corners(*xyz))
changed = net.ApplyRoutesToPipes() # lengths and elevation changes from the routes
print(f"{len(changed)} pipes took their length or elevation from the routes")
# the dike, the pump house and the area the hoses have to reach
dike = net.AddPlantArea("B1", PlantAreaKinds.Dike, "", corners(-14, -12, 44, -12, 44, 12, -14, 12))
dike.HeightM = 1.2
house = net.AddPlantArea("Pump house", PlantAreaKinds.Building, "", corners(-70, -60, -58, -60, -58, -48, -70, -48))
house.HeightM = 5.0
net.AddPlantArea("West access road", PlantAreaKinds.Protected, "TP", corners(-60, -45, -35, -45, -35, 10, -60, 10))
geo = net.CheckGeometry()
print(f"plant geometry: {geo.NodesPlaced} of {geo.Nodes} nodes and {geo.OutletsPlaced} of {geo.Outlets} outlets placed")
# --- the network again, with the lengths of the routes ----------------------------------------
report = net.VerifyFireNetwork()
print(f"verified again: every requirement met: {report.Pass}")
for run in report.Scenarios.Runs:
worst = run.Worst
print(f" {run.Name:34s} worst {worst.Tag if worst else '-':6s} margin {worst.Margin / 9806.65 if worst else 0.0:6.2f} mca")
# --- hose reach: every point of the protected area within the reach of a hydrant ----------------
reach = net.CheckHoseReach()
for a in reach.Areas:
share = 100.0 * a.CoveredPath / a.Points if a.Points else 0.0
print(f"hose reach on '{a.Area}': {a.Points} points, {share:.1f} % reached along the hose path, "
f"{a.UncoveredM2:.0f} m2 not reached")
# --- the document set ------------------------------------------------------------------------
info = net.Object.FireProtection.DocumentInfo
info.Project, info.Area = "Tutorial PN05", "Tank park"
info.Language = os.environ.get("DOCUMENT_LANGUAGE", "en") # "pt" writes the drawings in Portuguese
fire = next(s for s in net.Object.FireProtection.Scenarios if s.Kind == "RiskFire")
net.SetActiveFireScenario(fire.Name)
net.ArrangeOrthogonal()
fs.Solve()
# the drawings are made only when this script runs on its own: tutorial PN06 reuses the network
# placed on the plant without drawing it again
if __name__ == "__main__":
folder = os.path.join(HERE, "fire_water_documents")
docs = net.ExportFireDocumentSet(folder)
for d in docs.Documents:
print(f" {d.Number:11s} {d.Title}")
for f in docs.Failed:
print(f" not produced: {f}")
Output may vary
Results depend on the LLM's reasoning quality and tool-use accuracy. Always verify the simulation matches your intent before relying on the numbers.
In the DWSIM Assistant, open the flowsheet fire_water_plant.dwxmz and
use the Fire Protection tool of its Pipe Network:
- Check the plant geometry and report how many nodes and outlets have
a position and which pipes have a route
- Verify the network and compare the margins with the ones of
fire_water_network.dwxmz, which has no routes
- Check the hose reach on the west access road
- Produce the document set and list the documents with their numbers
Exercises
- Move H-02 to (-45, 20). Is the whole access road still reached, and which points are lost?
- Add an obstacle area (kind Obstacle) across the access road from (-55, -20) to (-40, -15). How does the reach along the hose path change, compared with the reach radius?
- Change the route of RING-2 so that it runs 20 m further north. Which margins change, and why so little?
- Fill in the title block with your own project data and produce the document set again. Where do the fields appear on the P&ID?
Further Reading¶
- Corpo de Bombeiros da Polícia Militar do Estado de São Paulo, Instrução Técnica 22/2019 (reach of the hydrants)
- ISO 16739-1:2018, Industry Foundation Classes (IFC) for data sharing in the construction and facility management industries
- ISO 10628-2:2012, Diagrams for the chemical and petrochemical industry, graphical symbols
- DWSIM User Guide: the Pipe Network unit operation (plant geometry and drawings)
Next Steps¶
You now know how to put a fire water network on the plant, check the hose reach and produce its documents. Continue with Water Hammer in the Fire Water Network, where the same network goes through its transients.