Heat conduction with heat generation in slab
Pressure head is given by
Velocity head is given by
The direction of the flow is dictated by