[Gmsh] Meshing 1-d element
David Colignon
David.Colignon at ulg.ac.be
Fri Jul 3 12:08:34 CEST 2009
Hi,
see http://www.geuz.org/gmsh/doc/texinfo/gmsh-full.html#SEC42
...
...
In the MSH file format (see section 9. File formats), if physical entities are defined, the output mesh only contains
those elements that belong to physical entities. Other file formats each treat physical entities in slightly different
ways, depending on their capability to define groups.
...
...
Cheers,
Dave
--
David Colignon, Ph.D.
Collaborateur Logistique du F.R.S.-FNRS
CÉCI - Consortium des Équipements de Calcul Intensif
ACE - Applied & Computational Electromagnetics
Sart-Tilman B28
Université de Liège
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
Fax: +32 (0)4 366 29 10
WWW: http://hpc.montefiore.ulg.ac.be/
Agenda: http://www.google.com/calendar/embed?src=david.colignon%40gmail.com
LUK ShunTim wrote:
> Hi,
>
> I tried using 1-d elements to mesh a simple portal frame. Here's the
> .geo file.
>
> <geo-file>
> // Portal frame example .geo file
>
> lc = 1.0;
>
> Point(1) = {0, 0, 0, lc};
> Point(2) = {0.0, 10.0, 0.0, lc};
> Point(3) = {8.0, 13.0, 0.0, lc};
> Point(4) = {12.0, 13.0, 0.0, lc};
> Point(5) = {20.0, 10.0, 0.0, lc};
> Point(6) = {20.0, 5.0, 0.0, lc};
>
> Line(1) = {1,2};
> Line(2) = {2,3};
> Line(3) = {3,4};
> Line(4) = {4,5};
> Line(5) = {5,6};
>
> Physical Point("Left support") = {1};
> Physical Point("Right support") = {6};
> </geo-file>
>
> Here's the .msh file that I got by doing "Mesh |1 D"
> <msh-file>
> $MeshFormat
> 2 0 8
> $EndMeshFormat
> $PhysicalNames
> 2
> 1 "Left support"
> 2 "Right support"
> $EndPhysicalNames
> $Nodes
> 2
> 1 0 0 0
> 2 20 5 0
> $EndNodes
> $Elements
> 2
> 1 15 3 1 1 0 1
> 2 15 3 2 6 0 2
> $EndElements
> </msh-file>
>
> I'd expected the .msh file will have the same 5 1-d line elements as in
> the geometry file but no. :-(
>
> And if I removed the all Line() commands (that's in fact what I stared
> with) I still get the same mesh file. I guess I don't quite understand
> the commands and would be grateful for any help.
>
> Regards,
> ST
> --
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh