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, petrophysics, hydrology, earth sciences, soil mechanics, rock mechanics, and engineering.
Void fraction in two-phase flow 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).
Porosity in earth sciences and construction 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:
ϕ=VVVT where VV is the volume of void-space (such as fluids) and VT is the total or bulk volume of material, including the solid and void components. Both the mathematical symbols ϕ and n are used to denote porosity. Porosity is a fraction between 0 and 1, typically ranging from less than 0.005 for solid granite to more than 0.5 for peat and clay. The porosity of a rock, or sedimentary layer, is an important consideration when attempting to evaluate the potential volume of water or hydrocarbons it may contain. Sedimentary porosity is a complicated function of many factors, including but not limited to: rate of burial, depth of burial, the nature of the connate fluids, the nature of overlying sediments (which may impede fluid expulsion). One commonly used relationship between porosity and depth is the decreasing exponential function given by the Athy (1930) equation:
ϕ(z)=ϕ0e−kz where, ϕ(z) is the porosity of the sediment at a given depth (z) (m), ϕ0 is the initial porosity of the sediment at the surface of soil (before its burial), and k is the compaction coefficient (m−1). The letter e with a negative exponent denotes the decreasing exponential function. The porosity of the sediment exponentially decreases with depth, as a function of its compaction. A value for porosity can alternatively be calculated from the bulk density ρbulk, saturating fluid density ρfluid and particle density ρparticle:
ϕ=ρparticle−ρbulkρparticle−ρfluid If the void space is filled with air, the following simpler form may be used:
ϕ=1−ρbulkρparticle A mean normal particle density can be taken as approximately 2.65 g/cm3 (silica, siliceous sediments or aggregates), or 2.70 g/cm3 (calcite, carbonate sediments or aggregates), although a better estimation can be obtained by examining the lithology of the particles.
Porosity and hydraulic conductivity Porosity can be proportional to hydraulic conductivity; for two similar sandy aquifers, the one with a higher porosity will typically have a higher hydraulic conductivity (more open area for the flow of water), but there are many complications to this relationship. The principal complication is that there is not a direct proportionality between porosity and hydraulic conductivity but rather an inferred proportionality. There is a clear proportionality between pore throat radii and hydraulic conductivity. Also, there tends to be a proportionality between pore throat radii and pore volume. If the proportionality between pore throat radii and porosity exists then a proportionality between porosity and hydraulic conductivity may exist. However, as grain size or sorting decreases the proportionality between pore throat radii and porosity begins to fail and therefore so does the proportionality between porosity and hydraulic conductivity. For example: clays typically have very low hydraulic conductivity (due to their small pore throat radii) but also have very high porosities (due to the structured nature of clay minerals), which means clays can hold a large volume of water per volume of bulk material, but they do not release water rapidly and therefore have low hydraulic conductivity.
Sorting and porosity
Well sorted (grains of approximately all one size) materials have higher porosity than similarly sized poorly sorted materials (where smaller particles fill the gaps between larger particles). The graphic illustrates how some smaller grains can effectively fill the pores (where all water flow takes place), drastically reducing porosity and hydraulic conductivity, while only being a small fraction of the total volume of the material. For tables of common porosity values for earth materials, see the "further reading" section in the Hydrogeology article.
Porosity of rocks Consolidated rocks (e.g., sandstone, shale, granite or limestone) potentially have more complex "dual" porosities, as compared with alluvial sediment. This can be split into connected and unconnected porosity. Connected porosity is more easily measured through the volume of gas or liquid that can flow into the rock, whereas fluids cannot access unconnected pores. Porosity is the ratio of pore volume to its total volume. Porosity is controlled by: rock type, pore distribution, cementation, diagenetic history and composition. Porosity is not controlled by grain size, as the volume of between-grain space is related only to the method of grain packing. Rocks normally decrease in porosity with age and depth of burial. Tertiary age Gulf Coast sandstones are in general more porous than Cambrian age sandstones. There are exceptions to this rule, usually because of the depth of burial and thermal history.
Porosity of soil
… excerpt ends here. Continue reading the full article.

