Read txt file in mumax

157 views
Skip to first unread message

Felipe Brevis

unread,
Feb 24, 2021, 10:40:03 AM2/24/21
to mum...@googlegroups.com
Dear all,
Is there any way to read a txt file, like a vector or a 3 columns table, in order to create a given array of nanostructures?

Thanks

La información contenida en este correo electrónico y cualquier anexo o respuesta relacionada puede contener datos e información confidencial y no puede ser usada o difundida por personas distintas a su(s) destinatario(s). Si usted no es el destinatario de esta comunicación, le informamos que cualquier divulgación, distribución o copia de esta información constituye un delito conforme a la ley chilena. Si lo ha recibido por error, por favor borre el mensaje y todos sus anexos y notifique al remitente.

Las opiniones vertidas en este correo, no contenidas en un documento oficial de la Universidad, son responsabilidad de quien las emite o de quien solicitó su envío, en el ejercicio de su libertad de opinión y de expresión que, como miembro de la comunidad universitaria se le reconoce, y no representan, necesariamente, el pensamiento de la Universidad de La Frontera y de sus directivos.

chris

unread,
Feb 24, 2021, 11:10:04 AM2/24/21
to mum...@googlegroups.com
Hello Felipe
If you want to open the table.txt file which is the result file you can use the origin pro . Open origin pro and then drag the txt file over there and you see all the results to columns. Alternative you can use Microsoft Excel.

--
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/CAC7FtKa%3DKk5-5s9MnU_7PPpwq3X4Vm7bE%3DHS7horT0-UJJnGeg%40mail.gmail.com.

Felipe Brevis

unread,
Feb 24, 2021, 11:13:59 AM2/24/21
to mum...@googlegroups.com
Thanks Chris, but I want to do the inverse. I have some data and I want mumax to read it to create an array of nanostructures.



--
Felipe Brevis Garrido
Docente
Departamento de Ciencias Físicas
Universidad de La Frontera

Felipe Garcia

unread,
Feb 24, 2021, 12:59:15 PM2/24/21
to mumax2
Hi Felipe,

You can use another script in python or similar to read the file. Then one can use that python script to print the mumax3 script. One can even use python to execute the generated script.
That way one can produce the structure using a file as a source.

Best regards,
Felipe

Felipe Brevis

unread,
Feb 24, 2021, 1:06:39 PM2/24/21
to mum...@googlegroups.com
Yes!!! thanks, I was thinking about that idea, it seems that is the best.

Reply all
Reply to author
Forward
0 new messages