Mathematical modelling of membrane gas separation using the finite difference method