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
7 Downloads
Updated 24 Apr 2024

View License

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 Linux
Tags Add Tags
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!
Version Published Release Notes
1.0.1

Specify file encoding

1.0.0