<div dir="ltr"><div class="gmail_default" style="font-size:small">I am glad it helped a bit.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For extrusion hints you can see the tutorial of openfoam and gmsh</div><div class="gmail_default" style="font-size:small"><a href="https://openfoamwiki.net/index.php/2D_Mesh_Tutorial_using_GMSH">https://openfoamwiki.net/index.php/2D_Mesh_Tutorial_using_GMSH</a></div><div class="gmail_default" style="font-size:small">It gives some info for the extrusion vectors.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you change the function in my files you can create functions for a few elementary geometrical entities. Unfortunately selecting elements according to geometry is a bit tricky in gmsh.</div><div class="gmail_default" style="font-size:small">You can get the elements in an array and sweep in the array. This way you can select the elements according to their coordinates with any criteria you like.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For example in my file it goes</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For PlaneFilter_jj In {0:#PlaneFilter_Surfaces[]-1} <------- SWEEP SURFACES<br> PlaneFilter_n[]=PointsOf{Surface{PlaneFilter_Surfaces[PlaneFilter_jj]};}; <----------- GET ALL POINTS OF SURFACE<br> PlaneFilter_nn=#PlaneFilter_n[];<br> PlaneFilter_cc=0;</div><div class="gmail_default" style="font-size:small"> For PlaneFilter_kk In {0:#PlaneFilter_n[]-1} <span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:13.33px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent"><--------- SWEEP POINTS IN SURFACE</span><br> PlaneFilter_pn[]=Point{PlaneFilter_n[PlaneFilter_kk]};<br> PlaneFilter_px=PlaneFilter_pn[0]; <------- COORDINATES<br> PlaneFilter_py=PlaneFilter_pn[1];<br> PlaneFilter_pz=PlaneFilter_pn[2];</div><div class="gmail_default" style="font-size:small">.......</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">the two nested loops are for getting the points and their coordinates. After that you can filter them any way you like...</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-13 16:40 GMT+02:00 Shamsul Arefin <span dir="ltr"><<a href="mailto:mail.shanto@gmail.com" target="_blank">mail.shanto@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div id="m_-7003731387490544679__MailbirdStyleContent" style="font-size:10pt;font-family:georgia;color:#000000">
This is a nice trick. Thanks Andrew.<div><br></div><div>However, this is only for selecting plane surfaces. I may have to tweak the code for Cylindrical Surfaces and also for more control over the <span style="font-size:13.3333px;line-height:1.5">shape of the </span><span style="font-size:10pt;line-height:1.5">geometry. </span></div><div><br></div><div># It would have been better if I could know how entities are stored in an array. Say I extrude a surface to create a block. If this extrusion command is saved in an array, what would be the sequence of IDs <span style="font-size:13.3333px;line-height:1.5">in the array, </span><span style="font-size:10pt;line-height:1.5">of generated surfaces of the block. </span></div><span><div><br></div><div class="m_-7003731387490544679mb_sig"><span style="font-family:georgia,serif"><div class="gmail_default" style="font-size:10pt;display:inline"></div>Regards,<br>Shamsul Arefin<br></span><span style="font-family:georgia,serif"><font face="IcoFont" size="2"><span style="font-family:icofont">ph: 017655441319</span></font></span></div></span><div><div class="h5"><blockquote class="m_-7003731387490544679history_container" style="border-left-style:solid;border-width:1px;margin-top:20px;margin-left:0px;padding-left:10px" type="cite">
<p style="color:#aaaaaa;margin-top:10px">On Tue 12 Dec 3:46:59 pm, andrew <<a href="mailto:armitatz@gmail.com" target="_blank">armitatz@gmail.com</a>> wrote:</p><div dir="ltr"><div class="gmail_default" style="font-size:10pt">I thought it was together with the other files !</div><div class="gmail_default" style="font-size:10pt"><br></div><div class="gmail_default" style="font-size:10pt"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-12 11:43 GMT+02:00 Shamsul Arefin <span dir="ltr"><<a href="mailto:mail.shanto@gmail.com" target="_blank">mail.shanto@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id="m_-7003731387490544679m_2993440638062896327__MailbirdStyleContent" style="font-size:10pt;font-family:georgia;color:#000000">
Is there no other selection by location option? Say I want to select the areas at 'z=0', or volumes between -10<x<+10 and <span style="font-size:13.3333px">-10<y<+10.</span><div><span style="font-size:13.3333px;line-height:19.9999px"><br></span></div><div><span style="font-size:13.3333px;line-height:19.9999px">The purpose is to select nodes from a particular geometric entity and define name for those nodes i.e. a nodal set. </span></div><div><br></div><div><span style="font-size:13.3333px;line-height:19.9999px">Usually when I know the ID of a surface (for example), i can define a "physical surface" and get the nodes and elements in the output-file grouped together. Problem is, I would not know surface ID's while working in the batch. <br></span><div><br></div><div><span style="font-size:13.3333px;line-height:19.9999px">Or anyone has a better idea for doing this with gmsh?</span><span><br><div><br></div><div class="m_-7003731387490544679m_2993440638062896327mb_sig"><span style="font-family:georgia,serif"><div class="gmail_default" style="font-size:10pt;display:inline"></div>Regards,<br>Shamsul Arefin<br></span><span style="font-family:georgia,serif"><span style="font-family:icofont;font-size:10pt"><span style="font-family:icofont">ph: 017655441319</span></span></span></div>
</span></div></div><div><div class="m_-7003731387490544679h5"><blockquote class="m_-7003731387490544679m_2993440638062896327history_container" style="border-left-style:solid;border-width:1px;margin-top:20px;margin-left:0px;padding-left:10px;min-width:500px" type="cite">
<p style="color:#aaaaaa;margin-top:10px">On Mon 11 Dec 8:26:36 pm, andrew <<a href="mailto:armitatz@gmail.com" target="_blank">armitatz@gmail.com</a>> wrote:</p><div dir="ltr"><div class="gmail_default" style="font-size:10pt">perhaps this could help you. It selects a face that belongs to a plane</div><div class="gmail_default" style="font-size:10pt"><br></div><div class="gmail_default" style="font-size:10pt"></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-11 18:28 GMT+02:00 Shamsul Arefin <span dir="ltr"><<a href="mailto:mail.shanto@gmail.com" target="_blank">mail.shanto@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;min-width:500px"><div id="m_-7003731387490544679m_2993440638062896327m_-1518354551298902037__MailbirdStyleContent" style="font-size:10pt;font-family:georgia;color:#000000">Hello, <div><br></div><div>Lets say I have a box modeled in gmsh. I want to select different faces of the box just by - selection through location coordinate. So far have not find anything in the documentation! Can anyone help?<br><div><br></div><div class="m_-7003731387490544679m_2993440638062896327m_-1518354551298902037mb_sig"><span style="font-family:georgia,serif"><div class="gmail_default" style="font-size:10pt;display:inline"></div>Regards,<br>Shamsul Arefin<br></span><span style="font-family:georgia,serif"><span style="font-family:icofont;font-size:10pt"><span style="font-family:icofont">ph: 017655441319</span></span></span></div></div></div><br>______________________________<wbr>_________________<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" target="_blank" rel="noreferrer">http://onelab.info/mailman/lis<wbr>tinfo/gmsh</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div><br>______________________________<wbr>_________________<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" target="_blank" rel="noreferrer">http://onelab.info/mailman/lis<wbr>tinfo/gmsh</a><br>
<br></blockquote></div><br></div>
</blockquote>
</div></div></div></div></blockquote></div><br></div>