Collections of MATLAB scripts and functions for the design of systems comprising cylindrically magnetized objects.
Capability of the functions present in the repository:
- Computation of Magnetic Field and Magnetic Field Gradient for cylindrical and ring permanent magnets with arbitrary and uniform magnetization (e.g., Axially and Diametrically magnetized cylinders as special cases), or equivalently of axial solenoids. These functions can be used for the computation of the Torques and Forces (Field and Field Gradient, respectively) applied by a permanent magnet cylinder to a magnetic dipole.
- Computation of Forces and Torques between coaxial permanent magnets cylinders with axial or diametric magnetization.
- Visualization functions for the magnetic field and field gradient.
Notes: The expressions implemented in this library are based on the fundamental assumption of uniform magnetization, that is an excellent approximations for magnets made up of modern, high-grade magnetic materials, like SmCo, NdFeB or ferrites with susceptibilities
Repo description at a glance:
- directory "00 - Older Versions": contains functions of the first repo version. They can compute the field of axial magnets and rings
- directory "01 - Permanent Magnet Cylinders and Rings": contains functions for force and torque between coaxial cylinders (having same magnetization direction)
- directory "04 - Graphics": contains functions to visualize field components of cylindrical magnets with arbitrary magnetization
- directory "05 - Numerical Recipes": is a convenient folder containing useful functions from Elfun18 library for numerical computation of special functions
- directory "11 - Parallel Library": contains functions to compute field and gradient using vector operations only (for speed up).
The present code computes of the magnetic field
Last equation and its derivatives (up to second order) were solved to obtain all the components of
The code provides also analytical models for force and torque between two coaxial cylinders, namely C1 (radius
Additional information on the models will be provided soon ...