A question regarding msh files to xml or directly as an argument to Mesh

7 views
Skip to first unread message

Lion Heart

unread,
Jul 27, 2023, 3:28:20 PM7/27/23
to fenics-support
Dear All,

Is there a way to parse .msh file into .xml file? Even more so, I know of the option 
mesh = Mesh(“file_name.xml.gz”), and hopeful that something alike work with .msh files.
The trivial replacement I just tried mesh=Mesh(“file_name.msh”) generated the following error:

 -------------------------------------------------------------------------

*** Error:   Unable to open file.

*** Reason:  Unknown file type (".msh") for file "test2.1.msh".

*** Where:   This error was encountered inside File.cpp.

*** Process: 0

*** 

*** DOLFIN version: 2019.1.0

*** Git changeset:  



The rest of the file is as in demo_eigenvalue.py taken from the DOLFIN page (https://fenicsproject.org/olddocs/dolfin/2019.1.0/python/demos/eigenvalue/demo_eigenvalue.py.html)

Thanks so much in advance!

Saar
Reply all
Reply to author
Forward
0 new messages