A magnetic-separating system is designed to produce polarized molecular high-density beams of H2/D2. The distribution of the magnetic field inside the aperture of the multipole magnet was calculated using the Mermaid software package. The calculation showed that the characteristic value of the magnetic field is 40 kGs, the field gradient is about 60 kGs/cm. A numerical calculation of the trajectories of the motion of molecules with different spin projections in this magnetic system is performed. The article discusses the possibility of using the magnetic system designed for the creation of a high-intensity source of polarized molecules. The expected intensity of this source is calculated. The expected flux of molecules focused in the receiver tube is 3.5•1016 mol/s for the hydrogen molecule and 2.0•1015 mol/s for the deuterium molecule.