← Back to team overview

dolfin team mailing list archive

Re: dolfin-convert: bug with conversion from gmsh?

 

Did you create a "physical" surface in gmsh? If you don't gmsh exports not just cells, but facets too (which the conversion script doesn't like).

Garth

angelo simone wrote:
Hi all,

I believe that there is a bug in dolfin-convert. It converts from gmsh to the old dolfin format (<=0.6.2). However, this is not a problem in itself as I can convert an old dolfin mesh to the current dolfin format. Unfortunately, there is a problem with the cell number produced with this second conversion. The problem is shown below.

Current conversion (not working):

    <cells size="12">
      <triangle index="6" v0="4" v1="6" v2="3"/>
      <triangle index="7" v0="0" v1="6" v2="5"/>
      <triangle index="8" v0="3" v1="6" v2="2"/>
      <triangle index="9" v0="1" v1="6" v2="0"/>
      <triangle index="10" v0="2" v1="6" v2="1"/>
      <triangle index="11" v0="5" v1="6" v2="4"/>
    </cells>


Version accepted by dolfin:

    <cells size="6">
      <triangle index="0" v0="4" v1="6" v2="3"/>
      <triangle index="1" v0="0" v1="6" v2="5"/>
      <triangle index="2" v0="3" v1="6" v2="2"/>
      <triangle index="3" v0="1" v1="6" v2="0"/>
      <triangle index="4" v0="2" v1="6" v2="1"/>
      <triangle index="5" v0="5" v1="6" v2="4"/>
    </cells>

Anyway, I have fixed the script so that it converts the Gmsh format to the current dolfin format in the correct way.

How do I post it?

Regards,
angelo
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev





References