Porosity or void fraction is a measure of the void (i.e. « empty ») spaces in a material, and is a fraction of the volume of voids over the total volume, between 0 and 1, or as a percentage between 0 and 100%. Strictly speaking, some tests measure the « accessible void », the total amount of void space accessible from the surface (cf. closed-cell foam). There are many ways to test porosity in a substance or part, such as industrial CT scanning. The term porosity is used in multiple fields including pharmaceutics, ceramics, metallurgy, materials, manufacturing, earth sciences, soil mechanics and engineering.
In gas-liquid two-phase flow, the void fraction is defined as the fraction of the flow-channel volume that is occupied by the gas phase or, alternatively, as the fraction of the cross-sectional area of the channel that is occupied by the gas phase. Void fraction usually varies from location to location in the flow channel (depending on the two-phase flow pattern). It fluctuates with time and its value is usually time averaged. In separated (i.e., non-homogeneous) flow, it is related to volumetric flow rates of the gas and the liquid phase, and to the ratio of the velocity of the two phases (called slip ratio).
Used in geology, hydrogeology, soil science, and building science, the porosity of a porous medium (such as rock or sediment) describes the fraction of void space in the material, where the void may contain, for example, air or water. It is defined by the ratio: