co2piping.com

Pipe routing on a floor plan

Load a floor plan, place unit, gas cooler/condenser and evaporators or loads – the app routes the pipes at right angles and sizes them (CO2 in copper or steel, HFC/HFO, HC, water and brine).

Project

.html
File
Share and print

The file is a link file: double-click it to open the project in your browser, or choose it with Open. Older .json files can still be opened. Like the project file, it contains all project data – share it only with people who may see it.

Floor plan

Choose file
× m

The drawing is read and shown only in your browser. It is never uploaded anywhere; it is saved only in the project file you download.

Scale

Systems

Country, view and units

Floor plan with pipes

In the box:

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

One row per pipe piece and line (P = number on the drawing, ↕ = riser). Click a piece on the drawing to choose its size.
Show calculation

Calculation per pipe piece

Piece · line · sizeMass flow [kg/s]Density [kg/m³]Inner diameter [mm]Velocity [m/s]RefLength (+ 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

Flow diagram

100 % Click a pipe, an evaporator, the unit or a gas cooler to change it.

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.

Try it in the tool above ↑

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.

Try it in the tool above ↑

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.

Try it in the tool above ↑

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.

Knowledge base: laws and rules →

Assumptions: Pipes: copper (ACR sizes) for every refrigerant, steel (EN 10220 DN sizes, P265NL or 316L) for CO2, and for water and brine the pipes of the Heating & cooling calculator. Pipe lengths from the scaled drawing plus risers; the parallel lines are drawn apart but have the same length. One size per piece and line. Properties: the CO2, HFC, HC and Heating & cooling calculators' tables.

Disclaimer: A design aid for a preliminary layout. Check sizes, pressures, routes and the codes of your country before you build. No liability for the results.

New feature – please report any errors: Report a bug

Help

Draw the pipes of one or more refrigeration systems on your floor plan. The app routes and sizes them; you place the equipment and steer the routing.

1. Drawing and scale

  • Load a PDF (choose the page), PNG/JPG or DXF. DWG cannot be read: save as PDF or DXF in your CAD program.
  • Set the scale: click Calibrate: click two points, two points and type their real distance. A DXF with units ($INSUNITS) and a PDF with a known drawing scale (1:50, 1:100) set it by themselves.
  • The drawing stays in your browser – it is never uploaded.

2. Systems and equipment

  • Each system has its own colour, name and refrigerant (CO2 by default, HFC/HFO, HC). Add one with + System.
  • Place the unit, the gas cooler/condenser and the evaporators with the tools above the drawing. Click an object to change its name, load and circuit (CO2: MT or LT).

3. Steering the routing

  • Pass here: the pipes go through these points in order.
  • Areas: forbidden (never), pipe corridor (preferred), escape route, stairwell, lift shaft, public space (avoided, warned about), shaft and occupied room (information).
  • Riser: click on a pipe and give the height (+ up, − down). It counts in length, static head and oil return.
  • Placement: click a pipe and choose ceiling, wall, floor or ground (each with a height); the system's default is under the system. The vertical pipes between different heights are added by themselves.
  • Ball valves: place them with the tool, or let “Add ball valves” put one on every evaporator, at the branch from the main or next to the evaporator. The material list counts them by size.

4. Editing by hand

  • Drag a pipe sideways or a tee (□): everything stays at right angles and lengths, bends and sizes follow at once.
  • Click a piece to see every line and choose a size by hand.
  • Route again (alternatives) throws away the hand edits and routes again.

5. Results, files and print

  • Pipe list, material list, warnings with the code of the chosen country and a flow diagram.
  • Save stores the project with the drawing; Open opens it again.
  • Export to calculator writes the active system in the file format of the CO2, HFC or HC calculator.
  • Print: the plan fills a whole page in the paper size you choose (A4, A3, A1), then the report and the flow diagram on its own page.