Modeling Vacuum Systems for Particle Accelerators