Help on magnetostatic problem

Hello,

I would like to model a ferrofluid droplet as it deforms in a magnetic field. I know the equations, but I was wondering how to get a shape to dynamically change in free-fem, or if this is something more appropriate in a different solver.

Also, is something like the interaction between two magnetic dipoles already done? I feel like it should be but I cant find code like that that includes dynamic anywhere.

Thank you for the help

They is a lot of way to make moving domain in freefem++

for examples:

https://github.com/FreeFem/FreeFem-sources/blob/master/examples/tutorial/fluidStruct.edp
https://github.com/FreeFem/FreeFem-sources/blob/master/examples/tutorial/freeboundary.edp

NSFallingEllipse.edp (4.4 KB)

Best regards, F. Hecht.