The measurement sensor of the partially-filled pipe electromagnetic flowmeter must be installed where the fluid is fully developed. For partially-filled pipe electromagnetic flowmeters, the boundary conditions vary with the fullness of the pipe, and the distance from the pipe inlet to the fully developed is not the same as the distance of the full-filled pipe flowmeter. Therefore, in the partially-filled pipe state, the mounting position of the electrode sensor is also different from the mounting position at full-filled pipe state. Based on the measurement principle of electromagnetic flowmeter, the finite element simulation method is used to simulate the flow field development of partially-filled pipe electromagnetic flowmeter. First, according to the knowledge of hydraulics, the variable boundary constraint is established, and then the simulation model of flowmeter fluid development process is established. Second, the Comsol Multiphysics finite element simulation software is adopted to solve the fluid development process, and the required distance for the full development of the partially-filled pipe fluid is obtained. Finally, the optimal installation position of the partially-filled pipe electromagnetic flowmeter sensor was determined based on the distance. The simulation results prove the feasibility of the proposed method, which can provide powerful theoretical support for the fabrication of partially-filled pipe electromagnetic flowmeters.