<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Dear Penny,<br>
      <br>
      gmsh2triangle is a script that comes with fluidity so I'm cc'ing
      the fludiity e-mail list on this reply.<br>
      <br>
      In this case gmsh2triangle is failing because of a problem in your
      .geo file (so it's not really a problem with gmsh2triangle or
      fluidity).  You should replace:<br>
      <br>
      <span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
        Surface(20) = {13,14,15};<br>
        <br>
      </span>with:<br>
      <br>
      <span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
        Surface(20) = {16,17,18};<br>
      </span><br>
      as the ids in the expression-list on the lhs should be to the
      elementary surfaces not the line loops (see
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a href="http://www.manpagez.com/info/gmsh/gmsh-2.4.0/gmsh_34.php">http://www.manpagez.com/info/gmsh/gmsh-2.4.0/gmsh_34.php</a>).<br>
      <br>
      I also believe your:<br>
      <br>
      <span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line
        Loop(19) = {1,2,3,-12,8,9,10,6,-11,5};</span><br>
      <br>
      is superfluous.  Removing it and making the changes above both
      gmsh and gmsh2triangle work for me locally.<br>
      <br>
      Hope this helps,<br>
      Cian<br>
      <br>
      --<br>
      Cian Wilson<br>
      Postdoctoral Research Scientist<br>
      Lamont-Doherty Earth Observatory, Columbia University<br>
      <br>
      On 06/25/2012 05:53 AM, Jackson Penelope A wrote:<br>
    </div>
    <blockquote
cite="mid:EF02C9F47C71364E9D45F847F2B726D404E5C407D7@PTNRWSVMAIL020.rnet.dstl.gov.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">I
            am trying to do a simple example for Fluidity which first
            requires me to set up a mesh in Gmsh, but it's not working
            and I can't see why. I am using the following .geo file:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(1)
            = {5.0, 0.0, 0.0, 0.1};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(2)
            = {35.0, 0.0, 0.0, 0.1};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(3)
            = {35.0, 2.0, 0.0, 0.1};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(4)
            = {30.0, 2.0, 0.0, 0.05};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(5)
            = {30.0, 4.05, 0.0, 0.1};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(6)
            = {0.0, 4.05, 0.0, 0.1};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(7)
            = {0.0, 2.05, 0.0, 0.1};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(8)
            = {5.0, 2.0, 0.0, 0.05};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(9)
            = {5.0, 2.05, 0.0, 0.05};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Point(10)
            = {30.0, 2.05, 0.0, 0.05};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(1)
            = {1,2};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(2)
            = {2,3};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(3)
            = {3,4};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(4)
            = {4,8};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(5)
            = {8,1};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(6)
            = {7,9};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(7)
            = {9,10};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(8)
            = {10,5};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(9)
            = {5,6};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(10)
            = {6,7};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(11)
            = {8,9};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line(12)
            = {10,4};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line
            Loop(13) = {1,2,3,4,5};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line
            Loop(14) = {6,7,8,9,10};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line
            Loop(15) = {4,11,7,12};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Plane
            Surface(16) = {13};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Plane
            Surface(17) = {14};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Plane
            Surface(18) = {15};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Line
            Loop(19) = {1,2,3,-12,8,9,10,6,-11,5};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
            Surface(20) = {13,14,15};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">//Inflows<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
            Line(21) = {2};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
            Line(22) = {10};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">//Outlets<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
            Line(23) = {5};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
            Line(24) = {8};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">//Top
            and bottom<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
            Line(25) = {9};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
            Line(26) = {1};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">//Less
            sure about these<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
            Line(27) = {6,11};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Physical
            Line(28) = {3,12};<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">The
            commands "gmsh -2 -v 0 a2wayflow.geo" and "gmsh -2 -v 0
            a2wayflow.geo" both seem to work fine. The problem occurs
            when I do "gmsh2triangle -2 a2wayflow.msh" for use in
            Fluidity, I get the error "Unable to determine dimension of
            problem". Using the GUI, pretty much the same thing happens.
            Mesh generates no problem, looks OK, saves without
            complaining, then running the gmsh2triangle command gets the
            same error message.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">I've
            thoroughly looked at it several times and a colleague who is
            much more experienced with it than me can't spot the problem
            either, can you tell me where I'm going wrong? Or is the
            problem at the Fluidity end?<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Penny
            Jackson.<o:p></o:p></span></p>
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">Penelope
            Jackson<o:p></o:p></span></p>
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">Scientist</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif""><o:p></o:p></span></p>
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:gray">[</span></b><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">dstl</span></b><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:gray">]</span></b><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif""> </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">Sensors
            & Countermeasures Department</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif""> <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">Rm
            101, iSAT-C, Bldg 5</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif""> <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">Dstl
            Porton Down </span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif""><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">T 
            9 6801 8413</span><o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <div>
        <div>"This e-mail and any attachment(s) is intended for the
          recipient only.   Its unauthorised use, disclosure, storage or
          copying is not permitted.  Communications with Dstl are
          monitored and/or recorded for system efficiency and other
          lawful purposes, including business intelligence, business
          metrics and training.  Any views or opinions expressed in this
          e-mail do not necessarily reflect Dstl policy."</div>
        <div> </div>
        <div>"If you are not the intended recipient, please remove it
          from your system and notify the author of the email and <a
            moz-do-not-send="true" href="mailto:centralenq@dstl.gov.uk">centralenq@dstl.gov.uk</a>"</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
  </body>
</html>