[Gmsh] MSH Format

Ted Kord teddy.kord at gmail.com
Thu Jul 7 22:25:51 CEST 2011


Hi Serban

Ah, That's what I've done. I was thinking there might be some extra
processing for the ignored elements. Thanks.

Regards

Theodore

On 7 July 2011 21:14, <Serban.Georgescu at uk.fujitsu.com> wrote:

>  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:teddy.kord at gmail.com]
> *Sent:* 07 July 2011 20:57
> *To:* Serban Georgescu
> *Cc:* gmsh at geuz.org
> *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, <Serban.Georgescu at uk.fujitsu.com> 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:* gmsh-bounces at ace20.montefiore.ulg.ac.be [mailto:
> gmsh-bounces at ace20.montefiore.ulg.ac.be] *On Behalf Of *Ted Kord
> *Sent:* 07 July 2011 20:28
> *To:* gmsh at geuz.org
> *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.
>
>


-- 
Best regards,

Theodore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20110707/e4f43b02/attachment.html>