text: In domestic applications, traps are typically U, S, Q, or J-shaped pipe located below or within a plumbing fixture. An S-shaped trap is also known as an S-bend.  It was invented by Alexander Cumming in 1775 but became known as the U-bend following the introduction of the U-shaped trap by Thomas Crapper in 1880. The U-bend could not jam, so, unlike the S-bend, it did not need an overflow. In the United States, traps are commonly referred to as P-traps. It is the addition of a 90 degree fitting on the outlet side of a U-bend, thereby creating a P-like shape (oriented horizontally). It is also referred to as a sink trap because it is installed under most sinks.
  Because of its shape, the trap retains some water after the fixture's use. This water creates an air seal that prevents sewer gas from passing from the drain pipes back into the building. Essentially all plumbing fixtures including sinks, bathtubs, and showers must be equipped with either an internal or external trap.  Toilets almost always have an internal trap.
  Because it is a localized low-point in the plumbing, sink traps also tend to capture small and heavy objects (such as jewellery or coins) accidentally dropped down the sink. Traps also tend to collect hair, sand, food waste and other debris and limit the size of objects that enter the plumbing system, thereby catching oversized objects. For all of these reasons, most traps may be disassembled for cleaning or provide a cleanout feature.
  Where a volume of water may be rapidly discharged through the trap, a vertical vented pipe called a standpipe may be attached to the trap to prevent the disruption of the seal in other nearby traps. The most common use of standpipes in houses is for clothes washing machines, which rapidly dispense a large volume of wastewater while draining the wash and rinse cycles.
  In chemical engineering applications, a trap may be known as a lute.