Hi Theodore, I'm afraid that currently I cannot share the software (internal use only), but the idea is simple. First I go to the $Nodes section, and read all coordinates. Then I go the $Element section, and for each line I split into tokens. The first one is the element type, and I only look at tetrahedral (4 for 1st order tetra and 11 for 2nd order). The rest I ignore. I read according to the mesh file format:
elm-number elm-type number-of-tags < tag > ... node-number-list so basically I skip the tags and only read the conenctivity information. That's about it. Cheers, Serban From: Ted Kord [mailto:[email protected]] Sent: 07 July 2011 20:57 To: Serban Georgescu Cc: [email protected] Subject: Re: [Gmsh] MSH Format Hi Serban, It does, thanks. You couldn't possibly send me the converter could you. Regards Theodore On 7 July 2011 20:41, <[email protected]<mailto:[email protected]>> wrote: Hi Theodore, I am currently doing exactly what you are saying. I have a converter that reads only the tetrahedral elements from the mesh file and outputs a mesh format specific to the FEM solver that I am using. I then set the boundary conditions using the Pre-Post tool that comes with the solver. So I am ignoring all non-tetrahedral elements in the Gmsh mesh file. Hope that answers you question. Cheers, Serban From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Ted Kord Sent: 07 July 2011 20:28 To: [email protected]<mailto:[email protected]> Subject: [Gmsh] MSH Format This may be a naive question but humour me. I've meshed my geometry using Gmsh and the mesh file has the usual format. In the $Elements section, there's connectivity for triangles and tetrahedra. Am I correct in saying that: a) the triangles are surface/boundary elements and b) I can ignore the triangles (if for the moment, I'm not concerned with boundary conditions, etc) and only use the connectivity information for the tetrahedra and still have the mesh and its nodes correctly represented? If the answers to these are 'NO', is there a way for me to generate a mesh with only nodes and connectivity information for tetrahedral elements only? .. $MeshFormat 2.2 0 8 $EndMeshFormat $Nodes 241401 1 2.848267 -65.8432 2.187612 .. .. $EndNodes $Elements 1379514 1 1 2 0 7 1102 1101 .. .. 210000 4 2 0 9 189345 47114 189340 189339 210001 4 2 0 9 189345 47114 48392 189340 $EndElements -- Best regards, Theodore ______________________________________________________________________ Fujitsu Laboratories of Europe Limited Hayes Park Central, Hayes End Road, Hayes, Middlesex, UB4 8FE Registered No. 4153469 This e-mail and any attachments are for the sole use of addressee(s) and may contain information which is privileged and confidential. Unauthorised use or copying for disclosure is strictly prohibited. The fact that this e-mail has been scanned by Trendmicro Interscan does not guarantee that it has not been intercepted or amended nor that it is virus-free. -- Best regards, Theodore ______________________________________________________________________ Fujitsu Laboratories of Europe Limited Hayes Park Central, Hayes End Road, Hayes, Middlesex, UB4 8FE Registered No. 4153469 This e-mail and any attachments are for the sole use of addressee(s) and may contain information which is privileged and confidential. Unauthorised use or copying for disclosure is strictly prohibited. The fact that this e-mail has been scanned by Trendmicro Interscan does not guarantee that it has not been intercepted or amended nor that it is virus-free.
_______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
