Anna,
The first four entries with "15" under the column refer to the geometric vertices.
The next 28 with "1' under the second column refer to the mesh straight lines aligning under the geometric straight lines connecting the aforementioned points
The quadruplet information is described per the link Lawrence pointed to.
----
So I see that your mesh has no physical IDs (the "0" under the fourth column), which is needed for imposing boundary conditions. If this were done entirely with GMSH, they order the physical ID's based on the order you create them. If you don't do any of this, GMSH spits out every single geometric and mesh entity with a 0 ID. That's why you see some useless element entries like the four "15" vertices.
Thanks,Justin
On Wed, Dec 16, 2015 at 7:45 AM, Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> wrote:
Dear Anna,
On 16/12/15 15:17, Anna Kalogirou wrote:
> Dear all,
>
> I need to import my own mesh which was not created using Gmsh, so I am
> trying to convert it to Gmsh format. I have some questions and I didn't
> find any documentation on this on the Gmsh website.
Before you try and do this conversion, where does the mesh come from?
PETSc (and therefore we) claim to support the following formats read
from file:
- gmsh (extension .msh)
- exodus (extension .e or .exo)
- cgns (extension .cgns) Although boundary markers aren't supported
- triangle (extension .node)
We also, although it's not a public API, support building a mesh from
a list of cells and their vertex coordinates.
Would any of these suit you?
> For example, in the sample msh file attached there should be 40 elements
> and not 72. I don't understand what the first 32 lines (i.e. lines 64-95
> in the file) under "Elements" actually are. Also, in the actual elements
> (lines 96-135), what is the first quadruplet {3 2 0 5} after the global
> element number?
The documentation for the gmsh file format is
http://www.geuz.org/gmsh/doc/texinfo/gmsh.html#MSH-ASCII-file-format
Note that not all "elements" in the file are what you think of as
elements, some of them will be lines and points I think.
Lawrence
_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake
-- Dr Anna Kalogirou Research Fellow School of Mathematics University of Leeds http://www1.maths.leeds.ac.uk/~matak/