Numerical simulation of defogging conditions