<div dir="ltr"><div><span style="font-size:12pt">Dear,</span><br></div><div><span style="font-size:12pt">I am a Phd student and I started use GMSH for few months.<br>I want to generate four different domains for a  2D experiment.<br>But I only managed to generate a single mesh in the full geometry or superimposed meshes.<br>Is there any way to define the 4 domains separated by lines in the following code?<br></span><br><span style="font-size:12pt"><span id="result_box" class="" lang="en"><span class="hps">I</span> <span class="hps">much</span> <span class="hps">appreciate any</span> <span class="hps">help or</span> <span class="hps">example to</span> <span class="hps">answer this question</span> <span class="hps">and</span> <span class="hps">to use</span> <span class="hps">gmsh</span> <span class="hps">practice</span> <span class="hps">in the future.</span></span></span><br><font size="2"><span style="font-family: arial,sans-serif;"><br>// Gmsh project created on Thu Nov 21 12:43:48 2013<br>lc = 1;<br>ld = 20;<br><br>Dt=1;<br>Db=2;<br>R1=10;<br>R2=R1+Dt;<br>R3=R1+Dt+Db;<br>XY=25;<br>Z=50;<br>Zt=20;<br>Zba=Zt+2*Dt;<br>Zb=Zt+2*Dt+Db;<br><br><br>Point(1) = {0.0,0.0,0.0,lc};<br>Point(2) = {R2,0.0,0.0,lc};<br>Point(3) = {R3,0,0.0,lc};<br>Point(4) = {XY,0,0.0,ld};<br><br>Point(5) = {0.0,(-Dt),0.0,lc};<br>Point(6) = {R1,(-Dt),0.0,lc};<br><br>Point(7) = {0.0,-(Zt+Dt),0.0,lc};<br>Point(8) = {R1,-(Zt+Dt),0.0,lc};<br><br>Point(9) = {0.0,-Zba,0.0,lc};<br>Point(10) = {R2,-Zba,0.0,lc};<br><br>Point(11) = {0.0,-Zb,0.0,lc};<br>Point(12) = {R3,-Zb,0.0,lc};<br><br>Point(13) = {0.0,-Z,0.0,ld};<br>Point(14) = {XY,-Z,0.0,ld};<br><br><br>Line(1) = {1,2};<br>Line(2) = {2,3};<br>Line(3) = {3,4};<br>Line(4) = {4,14};<br>Line(5) = {14,13};<br>Line(6) = {13,11};<br>Line(7) = {11,9};<br>Line(8) = {9,7};<br>Line(9) = {7,5};<br>Line(10) = {5,1};<br><br><br>Line(11) = {3,12};<br>Line(12) = {12,11};<br><br><br>Line(13) = {2,10};<br>Line(14) = {10,9};<br><br><br>Line(15) = {5,6};<br>Line(16) = {6,8};<br>Line(17) = {8,7};<br>///<br><br>// define the domains<br><br>// fluid[]={15,-16,17,9};<br><br>//  casing[]={1,-13,14,8,17,16,15,10}<br><br>//  backfill[]={2,-11,12,7,14,13}<br><br>//  bedrock[]={3,-4,5,6,12,11}<br><br>Line Loop(19)={15,16,17,9};<br>Plane Surface(21) = {19};<br><br><br>Line Loop(22) = {1,2,3,4,5,6,7,8,9,10};<br>Plane Surface(23) = {22};<br><br><br>Best regards,<br><br><br>-- <br>Edmundo Santolaria Canales<br><span>PalMA Research Group</span> ( <a href="http://www.palma-ucm.es/" target="_blank">http://www.palma-ucm.es/ </a> )<br><span>Dpt. of Earth Sciences,</span><br><span>Astronomy and Astrophysics</span><br><span>Faculty of Physical Sciences</span><br><span>Universidad Complutense de Madrid</span><br><span>Ciudad Universitaria</span><br><span>28040, Madrid, Spain</span><br><span>tel:    </span><a value="+34913944827">+34 913945195</a><span>  </span><br><span>email:  </span><a href="mailto:vrath@fis.ucm.es" target="_blank">edmundo.santolaria@fis.ucm.es</a><br><span>skype:  edmundo_santolaria_canales</span><br><span>mobile  </span><a value="+34692864002">+34 617283133</a><br><br><br><br><br></span></font></div><br></div>