Error in converting ovf file to vtk file

441 views
Skip to first unread message

Payal Bhattacharjee

unread,
Apr 29, 2022, 3:24:23 AM4/29/22
to mumax2
Dear all,
I am facing problem while converting .ovf files to vtk files. Once I use the command to convert to vtk files using mumax3-convert it is showing an error message which goes like this: 
The term 'mumax3-convert' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Can anyone please suggest what is the exact command to convert ovf files to vtk file?

Thanks in advance


With regards
Payal

Arindam Samanta

unread,
Apr 29, 2022, 6:54:48 AM4/29/22
to mum...@googlegroups.com
Hi Payal,

Try using “mumax3-convert.exe” to do that- this might work, provided the “mumax3-convert.exe” file is in the same directory where the *.ovf files are stored.

I think one possible reason is that “Mumax3” folder is not added to the “Path” in “Environment Variables” section. Please add the “Mumax3” folder in “Path” and restart the system; Then try the same, hope it will work.

Steps to add the environment variables (ignore if you already know): Settings > Environment Variables > Path > Edit > New > Enter the folder location (e.g., C:\Mumax3)

Thanks and best regards,
Arindam


--
You received this message because you are subscribed to the Google Groups "mumax2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mumax2+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mumax2/8b33b9bf-edb9-4420-97f1-88588fa92423n%40googlegroups.com.

Payal Bhattacharjee

unread,
Apr 29, 2022, 7:27:54 AM4/29/22
to mum...@googlegroups.com
The problem persists even after doing this. 

Josh Lauzier

unread,
Apr 29, 2022, 5:00:48 PM4/29/22
to mumax2
Hello,

Something like (on windows)

mumax3-convert -vtk="ascii" filename.ovf

should work.

As Arindam mentioned, that error message is a path error. For example, if your mumax3-convert is located in C:\Mumax3\, but your data is in C:\Mumax3\Data, if you try to run the command while inside the Data folder, Windows won't be able to find the exe, and will give that error. You would need to be in the Mumax3 folder, and run it as

mumax3-convert -vtk="ascii" C:\Mumax3\Data\filename.ovf

Where, since we're in the Mumax3 folder, I am giving it the full path to the ovf (you can also do just \Data\filanename.ovf, since it's a subfolder of Mumax3). You can also give the full mumax3-convert path. So

C:\Mumax3\mumax3-convert -vtk="ascii" C:\Mumax3\Data\filename.ovf

This version should work regardless of what folders anything is in, because it's giving the full absolute paths to everything.

Or add mumax3-convert to the path variable. When adding to the path variable, make sure you add the folder, not the executable itself. So for example, if the full executable is C:\Mumax3\mumax3-convert.exe, you want to add just "C:\Mumax3" to the path. This will tell windows to look in "C:\Mumax3\" for the mumax3-convert executable, regardless of what folder you are currently in. (Also note, when adding it in windows, there are 2 PATHs- one under user variables, another under system variables. In case that matters)

Usually the .exe part is not needed, but you can also add that. So it'd be

C:\Mumax3\mumax3-convert.exe -vtk="ascii" C:\Mumax3\Data\filename.ovf

It shouldn't matter, but it doesn't hurt to have it

Best regards,
Josh L.

SAROJ KUMAR MISHRA

unread,
Oct 11, 2022, 5:46:04 AM10/11/22
to mumax2
Dear Josh,
I have tried the above method for converting ovf files to vtk files, but it will not work. I have attached the image for your reference. Can you suggest any other method for converting the ovf files to vtk?

Regards,
Saroj

Screenshot (290).png

Payal Bhattacharjee

unread,
May 4, 2023, 8:25:14 AM5/4/23
to mumax2
Dear Josh,

I am getting the same error message as mentioned by Mr. Saroj in the previous message. Can you please suggest a solution to this?
For your reference, I have given here the command that I typed to convert .ovf file to .vtk file.
.\mumax3-convert.exe -vtk="ascii" D:\Mumax3\Data\a11.ovf

Thanks in advance.

Regards,
Payal

Payal Bhattacharjee

unread,
May 5, 2023, 6:49:54 AM5/5/23
to mum...@googlegroups.com
Dear Josh,

I am getting the same error message as mentioned by Mr. Saroj in the previous message. Can you please suggest a solution to this?
For your reference, I have given here two commands that I typed to convert the .ovf file to .vtk file.

.\mumax3-convert.exe -vtk=binary D:\Mumax3\Data\skyrmion.out\m*.ovf
.\mumax3-convert.exe -vtk="ascii" D:\Mumax3\Data\ skyrmion.out \m*.ovf

The error message is also attached below.


error.png

Josh Lauzier

unread,
May 12, 2023, 3:42:42 AM5/12/23
to mumax2
Hi,

When it says "0 files converted, 0 skipped, 0 failed", that generally means that it's not finding any files that fit the naming convention. 

One thing I'm noticing, you're both using a drive other than C:\. By chance, is it a system that has both a C:\ drive and a D:\ drive (or in Saroj's case, an E:\ drive, a third drive)? Sometimes you can get strange issues with PATH variables if you're running on a secondary (typically D:\ is a secondary drive, like an HDD for storage) drive. You could try copying (probably best to copy both the mumax-convert executable as well as the folder with your .ovf files) to a folder on your C:\ drive, and see if it fixes the issue?

I am able to replicate your error if I move my files to my D:\ drive, but it's fine on C:\ drive. I would guess something in the mumax-convert code is unable to handle things being on a secondary drive, for some reason, even if you explicitly tell it when things are located on that secondary drive in the path.

Best,
Josh L.

Payal Bhattacharjee

unread,
May 12, 2023, 6:11:34 AM5/12/23
to mum...@googlegroups.com
Dear Josh L.
Thanks for the clarification. I shall definitely check it out.

Reply all
Reply to author
Forward
0 new messages