Because the porous medium is an open system, we make use of the enthalpy balance instead of the energy balance equation.