In plumbing, a trap is a U-shaped portion of pipe designed to trap liquid or gas to prevent unwanted flow; most notably sewer gases from entering buildings while allowing waste materials to pass through. In oil refineries, traps are used to prevent hydrocarbons and other dangerous gases and chemical fumes from escaping through drains. In heating systems, the same feature is used to prevent thermo-siphoning which would allow heat to escape to locations where it is not wanted. Similarly, some pressure gauges are connected to systems using U bends to maintain a local gas while the system uses liquid. For decorative effect, they can be disguised as complete loops of pipe, creating more than one U for added efficacy.
Water seal in drain pipe under a sink. Water enters at right, fills the trap, and continues left. Inverted siphoning occurs below the line "A".
A bottle trap, which can be unscrewed for cleaning
Wash-out closet, manufactured by Myers Sanitary Depot, New York, 1890
Trap with copper drain pipe at underside of firestop packing in two-hour fire-resistance rated concrete floor slab
A pipe is a tubular section or hollow cylinder, usually but not necessarily of circular cross-section, used mainly to convey substances which can flow — liquids and gases (fluids), slurries, powders and masses of small solids. It can also be used for structural applications; hollow pipe is far stiffer per unit weight than solid members.
Drain pipe of the Louvre
Pipe installation on a street in Belo Horizonte, Brazil
Historic water mains from Philadelphia included wooden pipes
Carbon Steel Pipe in a storage yard