<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<br>
<div>
<div>Le 17 oct. 2017 à 03:26, Alejandro Pina <<a href="mailto:ajpina@gmail.com">ajpina@gmail.com</a>> a écrit :</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Hi List,</div>
<div>Hope you can help me with the following issue: I have a motor geometry 'Motor0.geo' that is apparently meshed with Gmsh without any issues, however when I open ‘Motor0.pro’, it triggers an error during GetDP check. The error is shown below,</div>
<div><br>
</div>
<div>Info    : -------------------------------------------------------</div>
<div>Info    : Gmsh version   : 3.0.5</div>
<div>Info    : Build OS       : MacOSX</div>
<div>Info    : Build options  : Ann Bamg Bfgs Blas(Custom) Blossom C++11 Chaco DIntegration Dlopen Fltk Gmm Jpeg(Fltk) Kbipack Lapack(Custom) MathEx Med Mesh Metis Mmg3d Mpeg NativeFileChooser Netgen ONELAB ONELABMetamodel OpenCASCADE OpenGL OptHom PETSc Parser
 Plugins Png(Fltk) Post SLEPc Solver Taucs TetGen/BR Tetgen1.5 Voro3D Zlib</div>
<div>Info    : Build date     : 20170906</div>
<div>Info    : Build host     : Admins-Mac.local</div>
<div>Info    : Packager       : geuzaine</div>
<div>Info    : Executable     : /Applications/Gmsh.app/Contents/MacOS/gmsh</div>
<div>Info    : Home directory : /Users/ajpina/</div>
<div>Info    : Launch date    : Mon Oct 16 21:04:44 2017</div>
<div>Info    : Command line   : /Applications/Gmsh.app/Contents/MacOS/gmsh</div>
<div>Info    : -------------------------------------------------------</div>
<div>Info    : Reading '/Volumes/Share/Linux/gmsh-files/Motor0.pro'...</div>
<div>Info    : Calling '"/Volumes/Share/Linux/getdp-2.11.2-MacOSX/bin/getdp"  -onelab "GetDP" /Users/ajpina/.gmshsock2 &'</div>
<div>Info    : Running 'GetDP'…</div>
<div>Info    : GetDP - Performing ONELAB 'initialize'</div>
<div>Info    : Done running 'GetDP'</div>
<div>Info    : Done</div>
<div>Info    : Resetting database</div>
<div>Info    : Reading '/Volumes/Share/Linux/gmsh-files/Motor0.geo'...</div>
<div>Info    : Done reading '/Volumes/Share/Linux/gmsh-files/Motor0.geo'</div>
<div>Info    : Reading '/Volumes/Share/Linux/gmsh-files/Motor0.geo.opt'...</div>
<div>Info    : Done reading '/Volumes/Share/Linux/gmsh-files/Motor0.geo.opt'</div>
<div>Info    : Calling '"/Volumes/Share/Linux/getdp-2.11.2-MacOSX/bin/getdp"   "/Volumes/Share/Linux/gmsh-files/Motor0.pro"    -onelab "GetDP" /Users/ajpina/.gmshsock2 &'</div>
<div>Info    : Running 'GetDP'...</div>
<div>Info    : GetDP - Performing ONELAB 'check'</div>
<div>Info    : GetDP - Running '/Volumes/Share/Linux/getdp-2.11.2-MacOSX/bin/getdp /Volumes/Share/Linux/gmsh-files/Motor0.pro -onelab GetDP /Users/ajpina/.gmshsock2' [GetDP 2.11.2, 1 node]</div>
<div>Info    : GetDP - Started (Mon Oct 16 21:04:44 2017, Wall = 0.0333641s, CPU = 0.03193s, Mem = 6.71094Mb, Recv/Send = 6.67572e-05/0.000526428Mb)</div>
<div>Info    : GetDP - Got mesh name from Onelab: '/Volumes/Share/Linux/gmsh-files/Motor0.msh'</div>
<div>Info    : GetDP - Initializing Gmsh</div>
<div>Info    : GetDP - Loading problem definition '/Volumes/Share/Linux/gmsh-files/Motor0.pro'</div>
<div>Info    : GetDP - Loading problem definition '/Volumes/Share/Linux/gmsh-files/Motor0.geo'</div>
<div>Error   : GetDP - '/Volumes/Share/Linux/gmsh-files/Motor0.geo', line 30 : syntax error (()</div>
<div>Info    : Done running 'GetDP'</div>
<div>Info    : Done</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>The line 30 in file ‘Motor0.geo’ is the following (by the way, all parameters have been previously initialized):</div>
<div><br>
</div>
<div>M_aai = ( 2/beta )*Asin( M_w / ( 2*oRr ) ) ;</div>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>From </div>
<div><br>
</div>
<div><a href="http://getdp.info/doc/texinfo/getdp.html">http://getdp.info/doc/texinfo/getdp.html</a></div>
<div><br>
</div>
<div>one sees that the correct syntax for functions is with square brackets</div>
<div><br>
</div>
<div><dt style="line-height: 1.35; font-family: helvetica, sans-serif; font-size: 15px;">
<code style="line-height: 1.35; font-size: 12px;">Asin</code></dt><dt style="line-height: 1.35; font-family: helvetica, sans-serif; font-size: 15px;">
<span style="font-size: 12px; line-height: 1.35;"><span class="Apple-tab-span" style="white-space:pre"></span>[</span><var style="font-size: 12px; line-height: 1.35;">expression</var><span style="font-size: 12px; line-height: 1.35;">]</span></dt><dt style="line-height: 1.35; font-family: helvetica, sans-serif; font-size: 15px;">
<span style="line-height: 1.35;"><span class="Apple-tab-span" style="white-space:pre"></span>Arc sine (inverse sine) of</span><span style="line-height: 1.35;"> </span><var style="line-height: 1.35;">expression</var><span style="line-height: 1.35;"> </span><span style="line-height: 1.35;">in
 [-Pi/2,Pi/2],</span><span style="line-height: 1.35;"> </span><var style="line-height: 1.35;">expression</var><span style="line-height: 1.35;"> </span><span style="line-height: 1.35;">in [-1,1] (real valued only).</span>
<div><br>
</div>
<div>
<div>So, </div>
<div><br>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;">
M_aai = ( 2/beta )*Asin[ M_w / ( 2*oRr ) ] ;</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;">
<br>
</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;">
Regards,</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;">
Fr. </div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;">
<br>
</div>
</div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
</dt></div>
<br>
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div>I wonder why no error is shown when open 'Motor0.geo’ instead of ‘Motor0.pro’. Hope you can give a clue, also I can send more information on what the files have in them if required.</div>
<div>Thanks,</div>
<div>Alejandro</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
_______________________________________________<br>
getdp mailing list<br>
<a href="mailto:getdp@onelab.info">getdp@onelab.info</a><br>
http://onelab.info/mailman/listinfo/getdp<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="orphans: 2; widows: 2;">
<div>
<div>--</div>
<div>François Henrotte Dr Ir - <span style="text-align: -webkit-auto;"><a href="mailto:francois.henrotte@uclouvain.be">francois.henrotte@uclouvain.be</a></span><span style="text-align: -webkit-auto;"> - </span><span style="text-align: -webkit-auto;"><a href="mailto:francois.henrotte@ulg.ac.be">francois.henrotte@ulg.ac.be</a> </span></div>
<div>UCL - Bât. Euler a.217 - Av. G. Lemaître 4-6 , <span style="text-align: -webkit-auto;">B-1348 Louvain-la-Neuve - </span><span style="text-align: -webkit-auto;">+32(0)10 47 23 64 </span></div>
<div><span style="text-align: -webkit-auto;">ULg - Institut Montefiore I154 - Allée de la Découverte 10, B-4000 Liège - +32(0)4 366 37 36 </span></div>
</div>
<div><span style="text-align: -webkit-auto;"><br>
</span></div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</body>
</html>