Floor plan with pipes
Start with a plan drawing (PDF, PNG, JPG or DXF), an empty drawing of your own size, or the example.
Tip: place the unit first (water and brine: the supply point), then the load farthest away, then the others – the main then runs the right way.
Warnings and rules
System data
Pipe list
Show calculation
Calculation per pipe piece
| Piece · line · size | Mass flow [kg/s] | Density [kg/m³] | Inner diameter [mm] | Velocity [m/s] | Re | f | Length (+ equivalent) [m] | Δp [kPa] | Friction Δp/m [Pa/m] | Note |
|---|
Basis of calculation
- Method
- Every pipe piece (between tees, ends and risers) is sized for each line it carries: the mass flow of the loads downstream, the smallest size of the pipe type that keeps the target velocity (water: velocity and pressure loss per metre) and is rated for PS, then Darcy–Weisbach over the piece's length plus the equivalent length of its fittings. The rows are the same pieces and the same Δp as the pipe list.
- Equations
v = ṁ / (ρ · π d² / 4)Re = ρ · v · d / μL_eq = L · fittings % + 30 d · elbows + 20 d (tee, run) / 60 d (tee, branch)Δp = f · (L + L_eq) / d · ρ v² / 2
- Fluid data
- CoolProp (Bell et al. 2014; CO2 Span–Wagner 1996), tables of the CO2, HFC/HFO, HC and Heating & cooling calculators 8.0.0
- Standards and pipe types
- Crane TP-410
- Notes
- Equivalent length (Crane TP-410): the fittings allowance of the system plus 30·d per 90° elbow and 20·d (straight through) or 60·d (branch) per tee; ball valves are listed but not counted.
- Units: mass flow kg/s, density kg/m³, diameter mm, velocity m/s, length m, Δp kPa, friction Δp/m in Pa/m (over length + equivalent length).
Material list
Valves
Balancing and pump
Insulation
Flow diagram
How the app works
Routing: the plan is covered by a grid (about 200 steps across, plus every coordinate that matters, so pipes end exactly on their objects). The cost of a step is its length – blocked in a forbidden area, 40 % in a pipe corridor, 15 times in an escape route, stairwell, lift shaft or public space – plus a penalty for every bend. A* search with the direction in the state finds the cheapest right-angle path.
Shared mains: the pipes of a system form a tree (a rectilinear Steiner tree, heuristic): first the unit through the pass-here points in their order, then always the evaporator that is cheapest to reach from the pipes already laid, then one round where every evaporator is joined again where it is cheapest. A new pipe never starts on a terminal, a riser or a tee that already has three pipes, so every tee is a plain 90° tee on the pipe it sits on. Traditional layout (chosen per system): one straight main along the row or column with the lowest cost for the main and the branches, through the middle of the evaporators and spanning all of them and the unit; the unit is piped to the main and every evaporator gets its own branch from it. Pipes of other kinds (another system, the gas cooler/condenser lines) are followed: the grid lines beside an existing route cost less, so new pipes run in the same run on the same supports, side by side. In the traditional layout a branch may become a sub-main for nearby evaporators of the same kind (MT with MT, LT with LT). "Route again" varies the costs and the bend penalty (and, for the traditional main, the row or column) to give other alternatives.
Lines, in the colours of the calculators' flow diagrams (CO2: MT suction green, LT suction blue, high pressure red; HFC/HC: low-pressure side blue, high-pressure side red): liquid and suction (CO2: MT and LT suction; HFC/HC: suction) run along the same route with a fixed distance on the drawing; the hot gas and condensate lines (CO2: to and from the gas cooler) have their own route. A dragged pipe or tee keeps every piece horizontal or vertical; a fixed end gets a short jog.
Sizing: each piece between two tees, terminals or risers gets one size per line, with the physics of the CO2 calculator (R744: the same property tables, velocity sizing, Darcy–Weisbach with Swamee–Jain) or of the HFC/HC calculators (CoolProp tables, superheat counted as cooling effect, gas expanding along the line). Elbows and tees count by their equivalent length (Crane TP-410: elbow 30 D, tee run 20 D, branch 60 D); the allowance covers valves and the like.
Heights: every piece is mounted in/at the ceiling, on a wall, in the floor or in the ground, each at its height above the floor (the line's dash shows which). Where the unit, a piece and the next, or a piece and an evaporator are at different heights, the vertical pipe is added with two elbows, its static head and – for gas going up – the oil return check. A riser marked by hand is a change of storey. Ball valves are listed but not counted in the pressure drop.
Risers: a riser adds its vertical length and two elbows. A liquid riser adds its static head; a gas riser (suction going up to the unit, hot gas going up to the condenser) is checked for oil return with j*g = v·√(ρg/(g·D·(ρl−ρg))) ≥ 0.85 and sized down until it carries the oil, as in the HFC calculator.
Water and brine: the flow of each load is its power / (cp × (supply − return)) at the mean temperature (the Heating & cooling calculator's property tables); each pipe gets the smallest size within the highest velocity and pressure drop (Darcy–Weisbach, Colebrook–White), fittings as a percentage of the length. Every load is balanced to the worst one (at least 3 kPa over its valve, Kv = Q/√Δp); the pump head is the worst path, its valve, the source and a margin. Insulation and heat loss per pipe (EN ISO 12241 model, as the Heating & cooling calculator), with a dew-point check for cold pipes.
Export: each system is written as a project file of its calculator (CO2 copper, HFC or HC): every line as a main with the evaporators tapped on it and further evaporators teed into an evaporator's own branch (from every tee the farthest evaporator owns the branch), the real lengths, and an allowance that gives the same friction length as the counted bends here.
Sources
- ASHRAE Handbook – Refrigeration, ch. 1–3: refrigerant line sizing, velocities, oil return in risers.
- Crane Technical Paper No. 410: Flow of Fluids – equivalent length L/D of elbows and tees.
- Swamee & Jain (1976), friction factor; Darcy–Weisbach.
- Wallis (1969), Jacobs et al. (1976): flooding criterion for oil return, j*g ≥ 0.85.
- CoolProp 8 (Bell et al. 2014) and Span & Wagner (1996): refrigerant properties of the CO2, HFC and HC calculators.
- EN 378-1:2016+A1:2020 annex C and E (charge limits, LFL), EN 378-2:2016 (installation; read from excerpts – clause numbers not verified).
- ISO 5149-1/-2, AS/NZS 5149.1:2016, JIS B 8620: the same kind of requirements outside Europe (not verified clause by clause).
- ASHRAE 15-2013 8.10.1, 8.10.2 and interpretation IC 15-2001-4; addendum e to ASHRAE 15-2019 (9.12.1.5); IMC 1107.2. Checked 2026-10-25.
- Hart, Nilsson & Raphael (1968): A* search; Hanan (1966) and Hwang, Richards & Winter (1992): rectilinear Steiner trees.
- pdf.js 3.11.174 (Mozilla, Apache 2.0) reads PDF drawings in the browser.
Frequently asked questions
Is my drawing uploaded anywhere?
No. The PDF, image or DXF is read and shown in your browser only. It is stored only in the project file you save yourself; nothing is sent to a server.
Which file formats can I use?
PDF (any page), PNG, JPG and ASCII DXF with lines, arcs, polylines, circles, text and blocks. DWG cannot be read in the browser: save the drawing as PDF or DXF in your CAD program first.
How does the app route the pipes?
On a grid over the plan it searches the cheapest right-angle path (A* with a cost for every bend), around forbidden areas and preferably along pipe corridors. The evaporators are joined one by one to the pipes already laid, so the system gets shared mains with branches like a tree, and every tee is a 90° tee on its main.
Can I change the routing?
Yes. Place pass-here points before routing, or drag a main or a tee afterwards: every piece stays horizontal or vertical, and lengths, bends and sizes are recalculated at once. Route again automatically starts over.
How are the pipes sized?
With the same physics as the site's CO2, HFC and HC calculators: target velocities, design pressure per pipe type, Darcy–Weisbach pressure drop with the elbows and tees counted, the static head of risers and oil return in gas risers. The results can be exported to those calculators.
Try it in the tool above ↑CO2 (R744) pipe sizing – copper →HFC/HFO refrigerant pipe sizing →HC (A3) refrigerant pipe sizing →
Does the app check the building codes?
It warns when a pipe passes an escape route, stairwell, lift shaft, public space or shaft that you have marked, with the reference for the chosen country (EN 378, ISO 5149, ASHRAE 15). It is a design aid – a competent designer must check the layout against the applicable codes.