<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="+1">I am new to Gmsh and trying to reproduce the
following but still seeing triangles on the surface.</font></p>
<p><font size="+1">Can I check that when it mentions sphere demo it
is talking about sphere-discrete.geo</font></p>
<p>// merge a surface mesh (any format will work: .msh, .unv, etc.)<br>
<br>
Merge "sphere-surf.stl";<br>
<br>
// add a geometrical volume<br>
<br>
Surface Loop(1) = {1};<br>
Volume(1) = {1};<br>
Physical Volume('tets') = {2};<br>
<br>
// use this to force a coarse mesh inside<br>
//Mesh.CharacteristicLengthExtendFromBoundary = 0;<br>
//Mesh.CharacteristicLengthMax = 0.5;</p>
<p>I have also tried <br>
Physical Volume('tets') = {1};</p>
<p>Previous discussion
</p>
<p>Mark Starnes mark.starnes at fttech.co.uk <br>
Tue May 1 10:42:09 CEST 2012<br>
Previous message: [Gmsh] 3D volume as tetrahedra only<br>
Next message: [Gmsh] 3D electrostatic BEM solver<br>
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]<br>
<br>
Hi Bartek,<br>
<br>
Yes: use a Physical Group definition in your .geo<br>
file, like this:<br>
<br>
Physical Volume('tets') = {2};<br>
<br>
where `2' in this case would be the volume number<br>
assigned to your tetrahedra and 'tets' is a name I<br>
made up.<br>
<br>
Adding a `Physical Group' definition results in<br>
only the groups specified as being physical being<br>
exported.<br>
<br>
Search for, `Physical' in the manual:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.geuz.org/gmsh/doc/texinfo/gmsh.html">http://www.geuz.org/gmsh/doc/texinfo/gmsh.html</a><br>
<br>
Best regards,<br>
<br>
Mark.<br>
<br>
<br>
On Tue, May 01, 2012 at 09:15:31AM +0200, Bartek Grychtol wrote:<br>
> Hi,<br>
> <br>
> I'm new to gmsh, just seeing if it can do what I need.<br>
> I have a surface mesh in an stl file. I need to create a nice<br>
> tetrahedral volume mesh,<br>
> but without changing anything on the surface.<br>
> The sphere demo does exactly that.<br>
> However, the generated .msh file contains both triangles (for
the<br>
> surface) and<br>
> tetrahedra (for the volume inside).<br>
> Is there a way (a command or file format) to have the
complete mesh<br>
> represented as tetrahedra only?<br>
> <br>
> Best wishes,<br>
> <br>
> Bartek<br>
> <br>
> _______________________________________________<br>
> gmsh mailing list<br>
> gmsh at geuz.org<br>
> <a class="moz-txt-link-freetext" href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<br>
-- <br>
Dr. Mark Starnes<br>
Principal Physicist<br>
FT Technologies<br>
Church Lane<br>
Teddington<br>
TW11 8PA<br>
<br>
web: <a class="moz-txt-link-abbreviated" href="http://www.fttech.co.uk">www.fttech.co.uk</a><br>
DDI: 0208 614 2730<br>
</p>
<br>
<p><br>
</p>
</body>
</html>