The effect of rank and lithotype on coal wettability and its application to coal relative permeability models