In this paper, we prove the existence of weak solutions for mathematical mo
dels of miscible and immiscible flow through porous medium. An important di
fficulty comes from the modelization of the wells, which does not allow us
to use classical variational formulations of the equations.