FFT-Based Visualization and Animation of Magnetization Dynamics in Micromagnetic OVF Data
收藏资源简介:
This Python code is designed for the analysis and visualization of magnetization dynamics obtained from micromagnetic simulations stored in OVF (OOMMF Vector Field) format. The script processes time-dependent magnetization data generated by MuMax3 simulations and produces animated visualizations of spin-wave and skyrmion dynamic modes at a selected excitation frequency. The program loads a series of cropped OVF files corresponding to a chosen magnetization component (mxm_xmx, mym_ymy, or mzm_zmz) and verifies mesh consistency across all simulation frames. Using the discretisedfield library, the script reconstructs the spatial coordinates of the magnetic system and extracts the temporal evolution of the magnetization. A Fourier transform (FFT) is then applied along the time axis to identify the complex dynamical mode corresponding to a specified microwave excitation frequency. The code calculates both the amplitude and phase distributions of the selected mode and reconstructs its harmonic time evolution. The resulting dynamical mode is visualized as a two-dimensional animated scatter plot, where the color scale represents the oscillating magnetization amplitude. The animation illustrates the GHz-frequency dynamics of skyrmions, vortices, or spin-wave excitations in multilayer magnetic nanostructures. The script supports manual or automatic amplitude scaling and exports the animation as an MP4 video using FFmpeg. The code is intended for the investigation of dipolarly stabilized magnetic textures, including skyrmions and vortices in DMI-free multilayer systems, and can be applied to studies of magnonics, spin-wave propagation, and magnetization dynamics in nanoscale magnetic devices.



