Design and optimisation of propulsion systems by dynamic numerical simulation