A valve is a mechanical device that regulates the flow of fluids (either gases, fluidised solids, slurries or liquids) by opening, closing, or partially obstructing various passageways. Valves are used in a myriad of industrial, military, commercial, and residential applications.