We are concerned with physical models involving exchange of components between phases, capilarry effects and Fickian diffusion. It allows any (dis)appearance of one of the phases. Modeling and numerical aspects of the problem are considered, the keywords for our approach being "complementarity problem" and "mixed-hybrid elements". Possible applications are modeling hydrogen flow processes in nuclear waste storage sites and CO2-sequestration.