Electrostatic velocity filtering is a technique for the production of continuous guided beams of slow polar molecules from a thermal gas. We extended this technique to produce pulses of slow molecules with a narrow velocity distribution around a tunable velocity. The pulses are generated by sequentially switching the voltages on adjacent segments of an electric quadrupole guide synchronously with the molecules propagating at the desired velocity. This technique is demonstrated for deuterated ammonia (ND
3), delivering pulses with a velocity in the range of $20\ensuremath{-}100$ m/s and a relative velocity spread of $(16\ifmmode\pm\else\textpm\fi{}2)%$ at full width at half maximum. At velocities around
60 m/s, the pulses contain up to
106 molecules each. The data are well reproduced by Monte Carlo simulations, which provide useful insight into the mechanisms of velocity selection.
We propose a scheme of a surface electrostatic velocity filter capable of preparing cold polar molecules on the surface of a substrate by selecting a low-velocity component of an effusive beam from a thermal gas reservoir. Using ND3 as a molecular sample, the dependence of the performance of the filter on the parameters of both the filter setup and the incident molecular beam is investigated by using a theoretical model and Monte Carlo simulations. A detailed study of the guiding process of molecules, including the evolution of phase space density of the packet in the filter, is carried out and shows that the beam selection process is mainly completed in the front part of the filter.