Simulation of momentum and energy transfer in a porous medium nonsaturated by an incompressible fluid