<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr" style="text-align:left; direction:ltr;"><div>RT(F)M, section F.5 question 3 in <a href="http://gmsh.info/doc/texinfo/gmsh.html#Mesh-module-questions">http://gmsh.info/doc/texinfo/gmsh.html#Mesh-module-questions</a></div><div><br></div><div><b>How can I only save tetrahedral elements (not triangles and lines)?</b>

<p>By default, if physical groups are defined, the output mesh only
contains those elements that belong to physical entities. So to save
only 3D elements, simply define one (or more) physical volume(s) and
don’t define any physical surfaces, physical curves or physical points.
</p></div><div><br></div><div>Also, section 6.2 <a href="http://gmsh.info/doc/texinfo/gmsh.html#Elementary-entities-vs-physical-groups">http://gmsh.info/doc/texinfo/gmsh.html#Elementary-entities-vs-physical-groups</a> is relevant:</div><div><br></div><div>To save all mesh elements wether or not physical groups are defined, use
the <code>Mesh.SaveAll</code> option (see <a href="http://gmsh.info/doc/texinfo/gmsh.html#Mesh-options-list">Mesh options list</a>) or specify
<code>-save_all</code> on the command line. In some formats (e.g. MSH2),
setting <code>Mesh.SaveAll=1</code> will however discard all physical group
definitions.
</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Regards</div><div>--</div><div>Jeremy Theler</div><div><a href="http://www.seamplex.com">www.seamplex.com</a></div><div><br></div><div><br></div><div><br></div><div>On Fri, 2020-07-24 at 03:18 +0000, SAHA, SUDIPTA wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello I am trying mesh a .geo filecommand line. I have added following line in the script to create 3D mesh  ( 2D meshing algorithm Automatic, 3D meshing algorithm Frontal, and Element size factor 0.02)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">Mesh.Algorithm = 2;</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>Mesh.Algorithm3D = 4;</div>
Mesh.CharacteristicLengthFactor = 0.02;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Mesh 3;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Save "SNF_02_cmd.msh";<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
When I check the mesh file in GUI I do not see existence of 3D mesh. I also confirmed in by importing into OpenFoam and Openfoam also does not find any volume mesh. But the log file clearly says </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Info    : Success !
<div>Info    : 238335 points, 1157220 elements </div>
Info    : Done meshing 3D (Wall 1233.26s, CPU 1222.82s)<br>
<div></div>
<br>
Why I am not seeing and 3D mesh in the mesh file? The log file is attached.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div id="divtagdefaultwrapper" style="background-color:rgb(255,255,255)">
<p style="margin-top: 0px; margin-bottom: 0px;color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; margin-top:0px; margin-bottom:0px">
<span dir="ltr"><font face="Calibri,Arial,Helvetica,sans-serif" color="black" size="3"><span style="font-size:12pt; background-color:white"></span></font></span></p>
<div id="Signature" style="">__</div>
<div id="Signature" style=""><br>
</div>
<div id="Signature" style=""><span style="font-size:12pt"><font face="Calibri,Arial,Helvetica,sans-serif" color="black" size="3"></font></span><font color="#000000" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-family:Arial,Helvetica,sans-serif">Best
 Regards</span></font><br>
<font style=""><span style="font-family:"Times New Roman",Times,serif"></span><span style="font-family:Arial,Helvetica,sans-serif"></span>
<div style=""><font style="">
<div style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:13px; margin:0px">
<span style="font-family:Arial,Helvetica,sans-serif"></span><span style="font-family:"Times New Roman",Times,serif"></span><font face="Helvetica" color="#333399" size="2"><span style="font-size:12pt; font-family:Arial,Helvetica,sans-serif; color:rgb(134,17,6)"><b>Sudipta
 Saha, MS, EIT</b></span></font></div>
<div style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:13px; margin:0px">
<span style="font-family:Arial,Helvetica,sans-serif"></span><span style="font-family:Arial,Helvetica,sans-serif"><b style="font-size:11pt; font-style:inherit; font-variant-ligatures:inherit; font-variant-caps:inherit">Spent Fuel Modeling Intern, Idaho National
 Laboratory</b></span><span style="font-family:Arial,Helvetica,sans-serif"><b style="color:inherit; font-size:12pt; font-style:inherit; font-variant-ligatures:inherit; font-variant-caps:inherit"> </b></span></div>
<span style="font-family:"Times New Roman",Times,serif"></span>
<div style="margin:0px"><font color="#333399" face="Helvetica" size="2"><span style="color:rgb(0,0,0); font-family:"Times New Roman",Times,serif"><b><br>
</b></span></font></div>
<div style="margin:0px"><font color="#333399" face="Helvetica" size="2"><span style="color:rgb(0,0,0); font-family:Arial,Helvetica,sans-serif; font-size:10pt"><b>PhD Candidate in Mechanical Engineering</b></span></font></div>
<div style="margin:0px"><span style="color:rgb(0,0,0); font-family:Arial,Helvetica,sans-serif; font-size:10pt">Reacting System and Advanced Energy Research Lab</span></div>
<div style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:13px; margin:0px">
<font face="Helvetica" color="#333399" size="2" style=""><span style="font-size:10pt; color:rgb(0,0,0); font-family:Arial,Helvetica,sans-serif"><font style="color:rgb(96,94,92); font-size:16px; background-color:rgb(255,255,255)">
<div style="margin:0px"><font color="#570606" face="Times New Roman, Times, serif"><span style="margin:0px; font-size:10pt; font-family:Arial,Helvetica,sans-serif; color:rgb(200,38,19)"><b>Graduate Council Representative, Graduate Student Association</b></span></font></div>
<div style="margin:0px"><font color="#570606" face="Times New Roman, Times, serif"><span style="margin:0px; font-size:10pt; font-family:Arial,Helvetica,sans-serif; color:rgb(200,38,19)"><a href="https://www.linkedin.com/in/sudipta-saha-usc/" title="https://www.linkedin.com/in/sudipta-saha-usc/" style="margin:0px; font-family:Helvetica; background-color:rgb(255,255,255)"><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)">LinkedIn</span></a><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192); background-color:rgb(255,255,255)"> | </span><a href="https://www.researchgate.net/profile/Sudipta_Saha13" title="https://www.researchgate.net/profile/Sudipta_Saha13" style="margin:0px; font-family:Helvetica; background-color:rgb(255,255,255)"><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)">ResearchGate</span></a><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192); background-color:rgb(255,255,255)"> | </span><span style="margin:0px; font-family:"Times New Roman",Times,serif; color:rgb(81,167,249); background-color:rgb(255,255,255)"><a href="https://scholar.google.com/citations?user=xDVKlBcAAAAJ&hl=en" title="https://scholar.google.com/citations?user=xDVKlBcAAAAJ&hl=en" style="margin:0px"><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)">GoogleScholar</span></a></span><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192); background-color:rgb(255,255,255)"> </span><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192); background-color:rgb(255,255,255)">|</span><span style="margin:0px; font-family:"Times New Roman",Times,serif; color:rgb(81,167,249); background-color:rgb(255,255,255)"><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)"> </span><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)"><a href="https://sudiptasaha.weebly.com/" title="https://sudiptasaha.weebly.com/" style="margin:0px"><span style="color:rgb(12,100,192)">Website</span></a></span></span><br>
</span></font></div>
</font></span></font></div>
</font><font face="Tahoma" size="1" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-size:13px">
<div style="margin:0"><font face="Helvetica" color="#333399" size="2"><span style="font-size:10pt"><font color="#bd1398"><span style="font-family:"Times New Roman",Times,serif; color:rgb(0,0,0)"><img class="EmojiInsert" style="width:170px" data-outlook-trace="F:1|T:1" src="cid:b1e7c5e9844000e7a4b05516a22e70cbd79ddf42.camel@seamplex.com" data-inline="" data-name="Outlook-il1dffsz.jpg"><br>
</span></font></span></font></div>
<div style="margin:0"><font face="Helvetica" color="#333399" size="2"><span style="font-size:10pt"><font color="#bd1398"><span style="font-family:"Times New Roman",Times,serif; color:rgb(0,0,0)"><br>
</span></font></span></font></div>
<div style="margin:0"><font face="Helvetica" color="#333399" size="2"><span style="font-size:10pt"><font color="#bd1398"><br>
</font></span></font></div>
</span></font></div>
</font></div>
<p style="margin-top: 0px; margin-bottom: 0px;color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; margin-top:0px; margin-bottom:0px">
</p>
</div>
</div>
</div>
</div>


<pre>_______________________________________________</pre><pre>gmsh mailing list</pre><a href="mailto:gmsh@onelab.info"><pre>gmsh@onelab.info</pre></a><pre><br></pre><a href="http://onelab.info/mailman/listinfo/gmsh"><pre>http://onelab.info/mailman/listinfo/gmsh</pre></a><pre><br></pre></blockquote></body></html>