armantekinalp / MagnetoPyElastica

MagnetoPyElastica, an extension of PyElastica, is an open-source project for simulating magnetic Cosserat rods interacting with external magnetic environments.
MIT License
10 stars 5 forks source link

Force induced by non-uniform magnetic field #8

Open Junang-Wang opened 1 year ago

Junang-Wang commented 1 year ago

Hi there,

I am wondering if MagnetoPyElastica only consider magnetic torque $\tau = m \times B$, where $m$ represents magnetization and $B$ is the externel magnetic field, or if it also accounts for the force induced by non-uniform magnetic field $F = \nabla (m\cdot B)$? I noticed that in magnetic_forces.py, the MagneticForces class only applies torque to the rod.

Thank you in advance for your response.

armantekinalp commented 1 year ago

Hi @Junang-Wang

Currently we only have implementation for uniform magnetic field.

best

Junang-Wang commented 1 year ago

Hi @armantekinalp, thank you for your response. Does MagnetoPyElastica plan to deal with non-uniform magnetic field?

armantekinalp commented 1 year ago

Hi @Junang-Wang

Currently we don't have the man power the man power to implement. However, It shouldn't be too difficult to implement. If you are planning to work on non-uniform magnetic fields, we appreciate your contribution. Let us know if you have further questions.

Best,