A computational magnetohydrodynamic model of a marine propulsion system