Any tutorials to achieve magnetic sand animation

Hello everyone,
I’m trying to achieve a result like the image I posted—that is, to create a magnetic sand animation. I know my way around shaders, but I was wondering if you have any tutorials or recommendations to help me achieve this result.

other reference: https://pin.it/1FLayYJ6u

I think you need to use geometry nodes.
However, it is uncertain whether it will be possible to achieve the desired level.

Houdini may be required.

Make a fluid sim but crank the resolution low so it voxelizes

Had a go at it and… kind of?

This is using curves and then curve to points so shaping the “magnetic field” is fairly simple but requires a lot of steps

The main issue is performance, this is as far as I dared to push it on my PC but for a realistic result you would probably need at least twice the amount of “magnetic field lines”

Fairly easy to animate though