This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Use of dolphin-convert

0 votes

I have installed FEniCS 1.6.0 (Mac OS X 10.11 binary) and wish to test a code using a 3D mesh of a sphere. I created a sphere mesh using gmsh called sphere.msh (the geo file has no Physical Surface or other labels). Then I tried this in a FEniCS created window:

python
Python 2.7.10 (default, Aug 22 2015, 20:33:39)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import os
import dolfin
os.system('dolfin-convert sphere.msh mesh.xml')
Converting from Gmsh format (.msh, .gmsh) to DOLFIN XML format
*** DOLFIN must be installed to handle Gmsh boundary regions

The error message makes no sense since I successfully imported dolfin....

I tried googling about for answers but didn't see anything. In any case I apologize if this is "well known"

Peter

asked Dec 2, 2015 by pbmonk FEniCS Novice (120 points)

Have you tried to run the command directly in a terminal instead of using os.system in python? Like this:

dolfin-convert sphere.msh mesh.xml
...