We study magnetohydrodynamic flow of a liquid metal in a straight duct. The magnetic field is produced by an exterior magnetic dipole. This basic configuration is of fundamental interest for Lorentz force velocimetry (LFV), where the Lorentz force opposing the relative motion of conducting medium and magnetic field is measured to determine the flow velocity. The Lorentz force acts in equal strength but opposite direction on the flow as well as on the dipole. We are interested in the dependence of the velocity on the flow rate and on strength of the magnetic field as well as on geometric parameters such as distance and position of the dipole relative to the duct. To this end, we perform numerical simulations with an accurate finite-difference method in the limit of small magnetic Reynolds number, whereby the induced magnetic field is assumed to be small compared with the external applied field. The hydrodynamic Reynolds number is also assumed to be small so that the flow remains laminar. The simulations allow us to quantify the magnetic obstacle effect as a potential complication for local flow measurement with LFV. Lorentz force velocimetry (LFV) is a contactless method for velocity measurement in conducting bodies based on Lenz' rule of electromagnetic induction [1]. The braking force on the conductor moving through a stationary field of an external magnet system is accompanied by an opposite drag force of equal magnitude on the magnet system itself. This force depends on the magnitudes and spatial distributions of the velocity and magnetic induction. By measuring this force one can therefore determine the velocity of the conducting body. Potential applications of LFV include liquid metal flows in casting and other metallurgical processes, where direct contact between the sensor and the liquid metal should be avoided. The method can also be used for weakly conducting media such as hot glass melts or electrolytes.LFV offers not only the possibility to measure the mean flow velocity but also to determine local velocity information when the magnetic field is suitably localized. However, the Lorentz force will also modify the flow field. This mutual dependence of Lorentz force and flow field must be taken into account to obtain a profound understanding of LFV, which is also necessary for practical applications. From this perspective, LFV is also related to fundamental problems of magnetohydrodynamics such as the transformation of flow in ducts or channels under the influence of inhomogeneous magnetic fields. Currently, our interest in LFV is motivated by such fundamental aspects. For this reason, we focus on generic configurations for the flow and the magnetic field as a foundation for subsequent investigations of more realistic cases. Specifically, we choose a single dipole as the simplest model for a localized field, and a laminar inside a straight duct of square cross-section and infinite extent as conducting medium. We consider the geometry represented in Fig. 1. The dipole with magnetic moment m at distance h ...