Accurate particle-based simulation of adsorption, desorption and partial transmission