I haven't quite understand how to use the "Physical" command to define the volumes after extrusion as described in example t3.geo.<br>My problem is as follows.<br>I have two surfaces and I extrude them both and then I create the mesh.<br>
Now, I am looking for a systematic way to find which of the extruded surfaces belong to original surface 1 and which to surface 2.<br>Please note, that printing the surfaces in console doesn't help me since I want to use the created mesh as input to a custom solver.<br>
Thus I want this info to be written somewhere inside the mesh file in order to read it from C and convert it appropriately. <br><br>Below is my geo file<br><br>Thank you in advance<br>Giorgos<br><br>----------------------MY GEO FILE---------------------<br>
<br>lc = 0.9;<br><br>Point(1) = {0,0,0,lc};<br>Point(2) = {1,0,0,lc};<br>Point(3) = {1,10,0,lc};<br>Point(4) = {0,10,0,lc};<br><br>Point(5) = {5,0,0,lc};<br>Point(6) = {7,0,0,lc};<br>Point(7) = {7,10,0,lc};<br>Point(8) = {5,10,0,lc};<br>
<br>Line(1) = {1,2} ;<br>Line(2) = {2,3} ;<br>Line(3) = {3,4} ;<br>Line(4) = {4,1} ;<br>Line(5) = {5,6} ;<br>Line(6) = {6,7} ;<br>Line(7) = {7,8} ;<br>Line(8) = {8,5} ;<br><br>Line Loop(10) = {1,2,3,4} ;<br>Line Loop(11) = {5,6,7,8} ;<br>
<br>Plane Surface(20) = {10} ;<br>Plane Surface(21) = {11} ;<br>out[]= Extrude {0, 0, 1} { Surface{20}; }; //can't figure out how it works :(<br>Extrude {0, 0, 1} { Surface{21}; }<br> <br>