Modeling and simulation of a biofilter