Computer simulation of vapor deposition