When using multiple magnets on an oil filter, there common orientation is a N-S-N-S-N pattern. The magnets don't repel each other that way, and the magnetic field strength is somewhat higher than if you managed to install them with the poles facing the same direction. But there is an interesting arrangement called a Halbach array that can do even better. The Wikipedia page has plenty of information and illustrations: https://en.wikipedia.org/wiki/Halbach_array
I made a quick model of my filter using five .5"x.5"x1" N42SH magnets I have lying around.
Here is the legend for the plots below:
Here is the magnetic field strength with poles oriented the same direction:
Here is the plot for them installed with alternating poles:
Here is the plot for a Halbach array:
The magnetic field strength with the Halbach array is significantly stronger using the same materials, although installation is a bit trickier.
I made a quick model of my filter using five .5"x.5"x1" N42SH magnets I have lying around.
Here is the legend for the plots below:
Here is the magnetic field strength with poles oriented the same direction:
Here is the plot for them installed with alternating poles:
Here is the plot for a Halbach array:
The magnetic field strength with the Halbach array is significantly stronger using the same materials, although installation is a bit trickier.