A diesel engine model for real-time ship propulsion simulations