Dirichlet boundary conditions, where the total concentrations and pressure is given on selected external faces.
Injection fluxes, where sources are included at given cells. We have thus not included well models in this tutorial.
The controls locations have been hard coded here, but they can be changed. We have chosen a set of four cells on the western side for the injection and a face on the eastern side where we impose pressure.
We assume the output fluid is only composed of liquid (typically same composition as initial state). This assumption should actually not be used if there is only outflow on this faces. Indeed, in this case, the boundary values of the concentrations are not used due to upwinding face evaluation.