A model for selective adsoprtion with a localized adsorption energy