load OOMMF .ovf file to matlab
Version 1.0.1 (3.21 KB) by
CJ Wang
The function imports vector file (.ovf) from micromagnetic simulation output (OOMMF, mumax3 or Boris) into Matlab arrays
The file is inspired by N. Khokhlov and his function omf2matlab.m
https://ww2.mathworks.cn/matlabcentral/fileexchange/129674-load-oommf-file-to-matlab-array
https://math.nist.gov/oommf/doc/userguide20b0/userguidexml/sec_ovfdatablock.html
ChatGPT was used also.
Work with mumax3.
The main modification: Oommf vector files must be writen with the default "binary 4" option.
And the type of grid must be rectangular.
Cite As
CJ Wang (2024). load OOMMF .ovf file to matlab (https://www.mathworks.com/matlabcentral/fileexchange/163101-load-oommf-ovf-file-to-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Load OOMMF file to Matlab array
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.