<div dir="ltr"><div dir="ltr"><div>Hello Adil, <br></div><div><br></div><div>As far as I can see, your labels are correct! <br></div><div><br></div><div>Here is a picture of the labels after using Tools -> Options -> Geometry [left sidebar] -> Volume labels [checkbox]. Yellow is a little hard to see but they all look OK. You can also see the Physical Surface by clicking the Surface checkbox in the same menu, although it is hard to distinguish from all the other surfaces. <br></div><div><br></div><div> You can also use the visibility settings to check this (Tools -> Visibility -> Physical groups [dropdown menu at the bottom]. The four physical groups will then be shown as in the picture. <br></div><div><br></div><div>As far as volume boundaries go, you could use the Boundary function in a geo file like so: <br></div><div>
<pre class="gmail-verbatim">// example usage taken from t14.geo<br></pre><pre class="gmail-verbatim">bnd[] = Boundary{ Volume{1}; };
Physical Surface(80) = bnd[];
</pre>

</div><div><a href="http://gmsh.info/doc/texinfo/gmsh.html#t14_002egeo">http://gmsh.info/doc/texinfo/gmsh.html#t14_002egeo</a> is the link to the full script <br></div><div><br></div><div>or try looking at the getBoundary function in the API. <br></div><div><br></div><div><div><img src="cid:ii_jv162roh0" alt="image.png" width="425" height="244"></div><div><br></div><div>Sincerely, <br></div><div>Max <br></div></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 28, 2019 at 1:24 AM Abiti Adili <<a href="mailto:aadili1@lsu.edu">aadili1@lsu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I am a  new learner of Gmsh. I have  the above attached geometry.geo and omnibus.geo files that  are supposed to create a box mesh with two balls inside. A  cross section of  the box and the labels of the regions is attached above in pdf file.<br>
<br>
I am trying to  have 4 different  physical entities which are<br>
<br>
1. The first  ball denoted by R.<br>
2. The second ball denoted by P.<br>
3. The complement of  union(R,P) in the box which is  denoted by H.<br>
4. The physical surface which is the boundary of  R.<br>
<br>
Upon checking the coordinates of nodes supposedly on the boundary of R, I found that a lot of them are  outside the ball R.<br>
<br>
I was wondering if  anyone could help me take a look at the geometry.geo and omnibus.geo and tell me if I have  labelled them correctly so that they correspond to the above 4 entities that I want to have.<br>
<br>
Also, how can I extract the indices of nodes on the boundary of R once I have  their coordinates?<br>
<br>
Thank you very much.<br>
<br>
Adil_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Max Orok</div><div>Contractor<br></div></div><div dir="ltr"><a href="http://www.mevex.com" target="_blank">www.mevex.com</a><br><br><img src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ" width="164" height="42"><br></div></div></div></div></div></div>