A numerical model for the simulation of external gear pumps