Computational modeling of cavitated injector flows