<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Douglas,<br>
<br>
I found a problem with the definition of your surface PS7, point P11 is
in fact P10.<br>
Transfinite Surface{PS7}  = {P02, P09, P10, P03};<br>
<br>
Once this problem solved, the transfinite volume is still not ok, the
order of the corners is not correct.<br>
You can use:<br>
Transfinite Volume '*';<br>
so that Gmsh will do it for you.<br>
<br>
By the way, once you have the transfinite lines, you can use the same
shortcut for generating the transfinite surfaces:<br>
Transfinite Surface '*';<br>
<br>
See attached file.<br>
Regards, <br>
Ruth<br>
<br>
<br>
<br>
Douglas P Enright wrote:
<blockquote
 cite="mid:OF97EE5248.7EF47817-ON88257556.000845C1-88257556.0008CFF1@notes.aero.org"
 type="cite"><br>
  <font face="sans-serif" size="2">Hi,</font>
  <br>
  <br>
  <font face="sans-serif" size="2">I am getting an </font>
  <br>
  <br>
  <font face="sans-serif" size="2">Error   : Incompatible surface
21 in transfinite volume 26 </font>
  <br>
  <br>
  <font face="sans-serif" size="2">when trying to mesh a simple cube
geometry.
 Any assistance about how to resolve this error</font>
  <br>
  <font face="sans-serif" size="2">would be appreciated.  The .geo
and error log are below.</font>
  <br>
  <br>
  <font face="sans-serif" size="2">Thanks,</font>
  <br>
  <br>
  <font face="sans-serif" size="2">Doug</font>
  <br>
  <br>
  <font face="sans-serif" size="2">===========================</font>
  <br>
  <font face="sans-serif" size="2"><a class="moz-txt-link-abbreviated" href="mailto:Douglas.P.Enright@aero.org">Douglas.P.Enright@aero.org</a></font>
  <br>
  <br>
  <font face="sans-serif" size="2">===========================================================================================</font>
  <br>
  <br>
  <font face="sans-serif" size="2">error log:</font>
  <br>
  <br>
  <font face="sans-serif" size="2">Info    : Read
'/Users/denright/projects/solar_cell_defect/projects/gmsh-2.2.6/refined_mesh/cube_mesh_bottom.geo'</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing 1D...</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 1
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 2
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 3
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 4
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 5
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 6
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 7
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 8
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 9
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 10
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 11
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing curve 12
(Line)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Mesh 1D complete
(0.041759 s)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing 2D...</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing surface
19 (transfinite)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing surface
20 (transfinite)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing surface
21 (transfinite)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing surface
22 (transfinite)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing surface
23 (transfinite)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing surface
24 (transfinite)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Mesh 2D complete
(0.022251 s)</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing 3D...</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing volume 26
(transfinite)</font>
  <br>
  <font face="sans-serif" size="2">Error   : Incompatible surface
21 in transfinite volume 26</font>
  <br>
  <font face="sans-serif" size="2">Info    : Meshing volume 26
(Tetgen+Delaunay)</font>
  <br>
  <font face="sans-serif" size="2">Info    : 44 points 38 edges
and 84 faces in the final mesh</font>
  <br>
  <font face="sans-serif" size="2">Info    : 44 points created
-- Worst tet radius is 1.69973</font>
  <br>
  <font face="sans-serif" size="2">Info    : Gmsh 3D Delaunay
has generated 192 tets</font>
  <br>
  <font face="sans-serif" size="2">Info    : Mesh 3D complete
(0.025593 s)</font>
  <br>
  <font face="sans-serif" size="2">Info    : 59 vertices 308
elements</font>
  <br>
  <font face="sans-serif" size="2">Error   :
------------------------------</font>
  <br>
  <font face="sans-serif" size="2">Error   : Mesh generation error
summary</font>
  <br>
  <font face="sans-serif" size="2">Error   :     0 warnings</font>
  <br>
  <font face="sans-serif" size="2">Error   :     1 error</font>
  <br>
  <font face="sans-serif" size="2">Error   : Check the full log for
details</font>
  <br>
  <font face="sans-serif" size="2">Error   :
------------------------------</font>
  <br>
  <br>
  <font face="sans-serif" size="2">.geo file:</font>
  <br>
  <br>
  <font face="sans-serif" size="2">/*********************************************************************
  </font>
  <br>
  <font face="sans-serif" size="2"> *</font>
  <br>
  <font face="sans-serif" size="2"> *  uniform cube_mesh example</font>
  <br>
  <font face="sans-serif" size="2"> * </font>
  <br>
  <font face="sans-serif" size="2"> *  based upon Gmsh tutorials</font>
  <br>
  <font face="sans-serif" size="2"> *</font>
  <br>
  <font face="sans-serif" size="2"> *  January 27, 2009</font>
  <br>
  <font face="sans-serif" size="2"> *  D.P. Enright</font>
  <br>
  <font face="sans-serif" size="2"> *********************************************************************/</font>
  <br>
  <br>
  <br>
  <font face="sans-serif" size="2">// characteristic length, size</font>
  <br>
  <font face="sans-serif" size="2">lc = .01;</font>
  <br>
  <font face="sans-serif" size="2">ls = .01;</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// front surface</font>
  <br>
  <font face="sans-serif" size="2">P01 = newp; Point(P01) = {0., 0.,
0.,
lc};</font>
  <br>
  <font face="sans-serif" size="2">P02 = newp; Point(P02) = {ls, 0.,
0.,
lc};</font>
  <br>
  <font face="sans-serif" size="2">P03 = newp; Point(P03) = {ls, ls/2.,
0., lc};</font>
  <br>
  <font face="sans-serif" size="2">P08 = newp; Point(P08) = {0., ls/2.,
0., lc};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// back surface</font>
  <br>
  <font face="sans-serif" size="2">P09 = newp; Point(P09) = {ls, 0.,
ls,
lc};</font>
  <br>
  <font face="sans-serif" size="2">P10 = newp; Point(P10) = {ls, ls/2,
ls, lc};</font>
  <br>
  <font face="sans-serif" size="2">P15 = newp; Point(P15)  = {0.,
ls/2., ls, lc};</font>
  <br>
  <font face="sans-serif" size="2">P16 = newp; Point(P16)  = {0.,
0., ls, lc};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">//reorder lines numbers in
increasing
consecutive order</font>
  <br>
  <font face="sans-serif" size="2">// front surface </font>
  <br>
  <font face="sans-serif" size="2">L01 = newl; Line(L01) = {P01, P02};</font>
  <br>
  <font face="sans-serif" size="2">L02 = newl; Line(L02) = {P02, P03};</font>
  <br>
  <font face="sans-serif" size="2">L08 = newl; Line(L08) = {P08, P01};</font>
  <br>
  <font face="sans-serif" size="2">L09 = newl; Line(L09) = {P03, P08};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// back surface</font>
  <br>
  <font face="sans-serif" size="2">L11 = newl; Line(L11) = {P09, P10};</font>
  <br>
  <font face="sans-serif" size="2">L17 = newl; Line(L17) = {P15, P16};</font>
  <br>
  <font face="sans-serif" size="2">L18 = newl; Line(L18) = {P16, P09};</font>
  <br>
  <font face="sans-serif" size="2">L19 = newl; Line(L19) = {P10, P15};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// right side surface</font>
  <br>
  <font face="sans-serif" size="2">L21 = newl; Line(L21) = {P02, P09};</font>
  <br>
  <font face="sans-serif" size="2">L22 = newl; Line(L22) = {P03, P10};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// left side surface</font>
  <br>
  <font face="sans-serif" size="2">L25 = newl; Line(L25) = {P01, P16};</font>
  <br>
  <font face="sans-serif" size="2">L26 = newl; Line(L26) = {P08, P15};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// number points per line</font>
  <br>
  <font face="sans-serif" size="2">nppl_bottom =  3;</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// uniform distribution, overrides
any
predefined characteristic length</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// bottom surface - LL01, LL04,
LL07,
LL10, LL13, LL15</font>
  <br>
  <font face="sans-serif" size="2">// LL01 - {L01, L02, -L09, L08};
LL04
- {L11, L19, L17, L18}</font>
  <br>
  <font face="sans-serif" size="2">// LL07 - {-L02, L21, L11, -L22};
LL10
- {L08, L25, -L17, -L26}</font>
  <br>
  <font face="sans-serif" size="2">// LL13 - {L01, L21, -L18, -L25};
LL15
- {-L09, L22, L19, -L26}</font>
  <br>
  <font face="sans-serif" size="2">// Distinct Lines: L01, L02, L08,
L09,
L11, L17, L18, L19, L21, </font>
  <br>
  <font face="sans-serif" size="2">//          
      L22, L25, L26</font>
  <br>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L01} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L02} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L08} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L09} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L11} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L17} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L18} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L19} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L21} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L22} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L25} = nppl_bottom;</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Line{L26} = nppl_bottom;</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// create line loops </font>
  <br>
  <font face="sans-serif" size="2">// counter clockwise orientation as
viewed from outside</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// front surfaces (bottom PS1,
middle
PS2, top PS3)</font>
  <br>
  <font face="sans-serif" size="2">LL01 = newll;</font>
  <br>
  <font face="sans-serif" size="2">Line Loop(LL01) = {L01, L02, L09,
L08};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// back surface (bottom PS4, middle
PS5, top PS6)</font>
  <br>
  <font face="sans-serif" size="2">LL04 = newll;</font>
  <br>
  <font face="sans-serif" size="2">Line Loop(LL04) = {L11, L19, L17,
L18};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// right side surface (bottom PS7,
middle
PS8, top PS9)</font>
  <br>
  <font face="sans-serif" size="2">LL07 = newll;</font>
  <br>
  <font face="sans-serif" size="2">Line Loop(LL07) = {-L02, L21, L11,
-L22};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// left side surface (bottom PS10,
middle
PS11, top PS12)</font>
  <br>
  <font face="sans-serif" size="2">LL10 = newll;</font>
  <br>
  <font face="sans-serif" size="2">Line Loop(LL10) = {L08, L25, -L17,
-L26};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// bottom side surface (PS13)</font>
  <br>
  <font face="sans-serif" size="2">LL13 = newll;</font>
  <br>
  <font face="sans-serif" size="2">Line Loop(LL13) = {L01, L21, -L18,
-L25};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// mid 1 surface (PS15)</font>
  <br>
  <font face="sans-serif" size="2">LL15 = newll;</font>
  <br>
  <font face="sans-serif" size="2">Line Loop(LL15) = {-L09, L22, L19,
-L26};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">//need to finish point distributions
and surface creation</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// create surfaces</font>
  <br>
  <font face="sans-serif" size="2">// bottom to top</font>
  <br>
  <font face="sans-serif" size="2">// front</font>
  <br>
  <font face="sans-serif" size="2">// bottom surface (PS1)</font>
  <br>
  <font face="sans-serif" size="2">PS1 = news; </font>
  <br>
  <font face="sans-serif" size="2">Plane Surface(PS1) = {LL01};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// back</font>
  <br>
  <font face="sans-serif" size="2">// bottom surface (PS4)</font>
  <br>
  <font face="sans-serif" size="2">PS4 = news;</font>
  <br>
  <font face="sans-serif" size="2">Plane Surface(PS4) = {LL04};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// right side</font>
  <br>
  <font face="sans-serif" size="2">// bottom surface (PS7)</font>
  <br>
  <font face="sans-serif" size="2">PS7 = news;</font>
  <br>
  <font face="sans-serif" size="2">Plane Surface(PS7) = {LL07};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// left side</font>
  <br>
  <font face="sans-serif" size="2">// bottom surface (PS10)</font>
  <br>
  <font face="sans-serif" size="2">PS10 = news;</font>
  <br>
  <font face="sans-serif" size="2">Plane Surface(PS10) = {LL10};</font>
  <br>
  <br>
  <br>
  <font face="sans-serif" size="2">// bottom surface (PS13)</font>
  <br>
  <font face="sans-serif" size="2">PS13 = news;</font>
  <br>
  <font face="sans-serif" size="2">Plane Surface(PS13) = {LL13};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// mid 1 surface (PS15)</font>
  <br>
  <font face="sans-serif" size="2">PS15 = news;</font>
  <br>
  <font face="sans-serif" size="2">Plane Surface(PS15) = {LL15};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">//define transfinite surfaces from
plane
surfaces</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Surface{PS1}  = {P01,
P02, P03, P08};</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Surface{PS4}  = {P09,
P16, P15, P10};</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Surface{PS7}  = {P02,
P09, P11, P03};</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Surface{PS10} = {P01,
P16,
P15, P08};</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Surface{PS13} = {P01,
P02,
P09, P16};</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Surface{PS15} = {P03,
P08,
P10, P15};</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// define surface loops</font>
  <br>
  <font face="sans-serif" size="2">SL1 = newsl;</font>
  <br>
  <font face="sans-serif" size="2">Surface Loop(SL1) = { PS1, PS7, PS4,
PS10, PS13, PS15 };</font>
  <br>
  <br>
  <font face="sans-serif" size="2">V1 = newv;</font>
  <br>
  <font face="sans-serif" size="2">Volume(V1) = { SL1 };</font>
  <br>
  <br>
  <font face="sans-serif" size="2">// define Transfinite Volume</font>
  <br>
  <font face="sans-serif" size="2">Transfinite Volume{V1} = {P01, P02,
P03, P08, P09, P10, P15, P16};</font>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
gmsh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gmsh@geuz.org">gmsh@geuz.org</a>
<a class="moz-txt-link-freetext" href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Dr. Ir. Ruth V. Sabariego
University of Liege, Institut Montefiore,
Dept. of Electrical Engineering & Computer Science, 
Applied & Computational Electromagnetics (ACE),
Sart Tilman Campus, Grande Traverse, 10 (B28), B-4000 LIEGE, Belgium
phone: +32-4-3663737 -- fax: +32-4-3662910 -- <a class="moz-txt-link-freetext" href="http://elap.montefiore.ulg.ac.be/">http://elap.montefiore.ulg.ac.be/</a></pre>
</body>
</html>