<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Dear Gmsh user,<br data-mce-bogus="1"></div><div class="oSioSc"><div id="tw-target"><div id="kAz1tf" class="g9WsWb"><div class="tw-ta-container tw-nfl" id="tw-target-text-container" data-mce-tabindex="0"><pre class="tw-data-text tw-text-large tw-ta" data-placeholder="Traduction" style="text-align: left;" dir="ltr" data-mce-style="text-align: left;"><span lang="en">I have a problem with the use of "Compound functions". <br><br>So, I have 4 sub-squares making up a larger square (I get this square by double translation from one of the sub-square).<br></span><span lang="en">Now, I would like to create a mesh on the largest square while keeping the physical names I gave to the 4 sub-squares.<br><br>I follow the tutorial 12 (</span>Cross-patch meshing with compounds) but I cannot make it work on my case.<br><br>Thank you in advance for your help<br><br>/////////////////////////<br>//geo.file<br>/////////////////////////<br><br>SetFactory("OpenCASCADE");<br><br>Lx = 10;<br>Ly = 10;<br>Nx = 2;<br>Ny = 2;<br><br>Point(1) ={0, 10, 0, 10};<br>Point(2) ={5, 10, 0, 10};<br>Point(3) ={0, 5, 0, 10};<br>Point(4) ={5, 5, 0, 10};<br><br>Line(1) = {1, 2};<br>Line(2) = {2, 4};<br>Line(3) = {4, 3};<br>Line(4) = {3, 1};<br>Curve Loop(1) = {1, 2, 3, 4};<br>Plane Surface(1) = {1};<br><br>For j In {1:1}<br>Translate {0, -5*j, 0} {Duplicata { Surface{1}; }}<br>EndFor<br><br>all_surfaces[] = Surface "*";<br><br>For i In {1:1}<br>Translate {5*i, 0, 0} {Duplicata { Surface{all_surfaces[]}; }}<br>EndFor<br><br>For k In {1:4}<br>Physical Surface(k) = {k};<br>EndFor<br><br>Compound Curve{1,17};<br>Compound Curve{18,22};<br>Compound Curve{23,7};<br>Compound Curve{4,8};<br><br>Compound Surface{1,2};<br><br><br></pre><pre class="tw-data-text tw-text-large tw-ta" data-placeholder="Traduction" style="text-align: left;" dir="ltr" data-mce-style="text-align: left;"><span lang="en"><br><br></span><span lang="en"></span></pre><pre class="tw-data-text tw-text-large tw-ta" data-placeholder="Traduction" id="tw-target-text" style="text-align: left;" dir="ltr" data-mce-style="text-align: left;"><span lang="en"><br></span></pre></div></div></div></div><div><br></div></div></body></html>