I dug out my plumbing textbook: R.D.Treloar Plumbing and gas installations, Oxford, 2nd ed, 2000.
PP.158-161 "Pipe Sizing of Domestic Gas Pipework"
"Relevant British Standard BS 6891"
"When pipe sizing hot or cold water pipework, if the pipework is undersized, the worst that can happen is that an appliance becomes starved of water flow, which results in inconvenience and inefficient usage. There is no dange rto the occupier of the building. With gas supply pipework on the other hand, undersized pipework may result in a dangerous situation. If the pressure is insufficent at the burner, not enough primary air will be drawn in to achieve complete combustion, which may result in the production of carbon monoxide. In very bad cases a flash-back into the pipework may occur which could lead to an explosion. The maximum pressure drop between the meter and the furthest applicance, under maximum flow conditions, must not exceed 1 mbar."
"An allowance must be made for frictional resistance through fittings. Each time the gas passes round an elbow or tee fitting, 0.5m should be allowed, and 0.3m in the case of pulled 90deg. bends."
The required flow rate "is found by adding the total kW rating for all appliances being supplied and undertaking the following calculation:
kW x 3.6 divided by Calorific value
(Note C.V. = 38.5 MJ/m3)"
Basically you use the total gas consumption of all applicances in the property from the meter to the first junction in the pipework, then the consumption of the appliances on each leg of pipework thereafter.
As an example, Chez Gears is a smallish three-bed semi with a ground floor extension; our appliances are:
Cooker 14.5kW = 1.356 m3/hr
Combi boiler 30.5 kW = 2.852 m3/hr (22mm inlet fitting ; the manufacturer, Baxi, stated "Ensure that the pipework from the meter to the appliance is of adequate size. Do not use pipes of a smaller diameter than the boiler gas connection, 22mm")
Fire 3.0kw = 0.281 m3/hr
The maximum lengths of copper pipe for the above flows are:
15mm diam pipe:
0.281 m3/hr = 30.0m
1.356 m3/hr = 11.0m
22mm diam pipe:
1.356 m3/hr = 30.0m
2.852 m3/hr = 21.0m
Cooker + boiler 4.208 m3/hr = 10.5m
All three appliances 4.489 m3/hr = 9.5m
28mm diam pipe:
Cooker + boiler 4.208 m3/hr = 30.0m
So you measure the length of the supply pipework (the "gas carcass"), and add on an allowance of 0.5m for each elbow or tee, and add on an allowance of 0.3m for every pulled 90 deg. bend, and then use the following table:
"Flow discharge of natural gas in m3/h from Table X (BS 2871) copper tube with a 1.0mbar pressure differential between each end.
Pipe diam (mm) 15: length of pipe in metres / discharge flow rate (m3/h) 3 / 1.5 6 / 1.9 9 / 1.5 12 / 1.3 15 / 1.1 20 / 0.95 25 / 0.92 30 / 0.88
Pipe diam (mm) 22: length of pipe in metres / discharge flow rate (m3/h) 3 / 8.7 6 / 5.8 9 / 4.6 12 / 3.9 15 / 3.4 20 / 2.9 25 / 2.5 30 / 2.3
Pipe diam (mm) 28: length of pipe in metres / discharge flow rate (m3/h) 3 / 18.0 6 / 12.0 9 / 9.4 12 / 8.0 15 / 7.0 20 / 5.9 25 / 5.2 30 / 4.7
"The progressive pressure loss is the sum total of the pressure losses for each section preceding the section in question."
"In conclusion, one estimates a suggested pipe diamter and completes the table for the section to prove its suitablity for use. If it proves undersized one simply goes back to ... choose a larger pipe diameter. It may be that one has to increase the diameter of the first section [of the gas carcase]... Sometimes one opts for large rpipework to allow for possible extensions to the gas pipework in future years, e.g. a larger boiler or extra gas fire."
Hope this is useful!