[Getdp] Error : GetDP - '/.../Motor0.geo', line 30 : syntax error (()

François Henrotte francois.henrotte at uclouvain.be
Tue Oct 17 07:45:12 CEST 2017


Le 17 oct. 2017 à 03:26, Alejandro Pina <ajpina at gmail.com<mailto:ajpina at gmail.com>> a écrit :

Hi List,
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,

Info    : -------------------------------------------------------
Info    : Gmsh version   : 3.0.5
Info    : Build OS       : MacOSX
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
Info    : Build date     : 20170906
Info    : Build host     : Admins-Mac.local
Info    : Packager       : geuzaine
Info    : Executable     : /Applications/Gmsh.app/Contents/MacOS/gmsh
Info    : Home directory : /Users/ajpina/
Info    : Launch date    : Mon Oct 16 21:04:44 2017
Info    : Command line   : /Applications/Gmsh.app/Contents/MacOS/gmsh
Info    : -------------------------------------------------------
Info    : Reading '/Volumes/Share/Linux/gmsh-files/Motor0.pro'...
Info    : Calling '"/Volumes/Share/Linux/getdp-2.11.2-MacOSX/bin/getdp"  -onelab "GetDP" /Users/ajpina/.gmshsock2 &'
Info    : Running 'GetDP'…
Info    : GetDP - Performing ONELAB 'initialize'
Info    : Done running 'GetDP'
Info    : Done
Info    : Resetting database
Info    : Reading '/Volumes/Share/Linux/gmsh-files/Motor0.geo'...
Info    : Done reading '/Volumes/Share/Linux/gmsh-files/Motor0.geo'
Info    : Reading '/Volumes/Share/Linux/gmsh-files/Motor0.geo.opt'...
Info    : Done reading '/Volumes/Share/Linux/gmsh-files/Motor0.geo.opt'
Info    : Calling '"/Volumes/Share/Linux/getdp-2.11.2-MacOSX/bin/getdp"   "/Volumes/Share/Linux/gmsh-files/Motor0.pro"    -onelab "GetDP" /Users/ajpina/.gmshsock2 &'
Info    : Running 'GetDP'...
Info    : GetDP - Performing ONELAB 'check'
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]
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)
Info    : GetDP - Got mesh name from Onelab: '/Volumes/Share/Linux/gmsh-files/Motor0.msh'
Info    : GetDP - Initializing Gmsh
Info    : GetDP - Loading problem definition '/Volumes/Share/Linux/gmsh-files/Motor0.pro'
Info    : GetDP - Loading problem definition '/Volumes/Share/Linux/gmsh-files/Motor0.geo'
Error   : GetDP - '/Volumes/Share/Linux/gmsh-files/Motor0.geo', line 30 : syntax error (()
Info    : Done running 'GetDP'
Info    : Done


The line 30 in file ‘Motor0.geo’ is the following (by the way, all parameters have been previously initialized):

M_aai = ( 2/beta )*Asin( M_w / ( 2*oRr ) ) ;


From

http://getdp.info/doc/texinfo/getdp.html

one sees that the correct syntax for functions is with square brackets

Asin
[expression]
Arc sine (inverse sine) of expression in [-Pi/2,Pi/2], expression in [-1,1] (real valued only).

So,

M_aai = ( 2/beta )*Asin[ M_w / ( 2*oRr ) ] ;

Regards,
Fr.





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.
Thanks,
Alejandro




_______________________________________________
getdp mailing list
getdp at onelab.info<mailto:getdp at onelab.info>
http://onelab.info/mailman/listinfo/getdp

--
François Henrotte Dr Ir - francois.henrotte at uclouvain.be<mailto:francois.henrotte at uclouvain.be> - francois.henrotte at ulg.ac.be<mailto:francois.henrotte at ulg.ac.be>
UCL - Bât. Euler a.217 - Av. G. Lemaître 4-6 , B-1348 Louvain-la-Neuve - +32(0)10 47 23 64
ULg - Institut Montefiore I154 - Allée de la Découverte 10, B-4000 Liège - +32(0)4 366 37 36




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/getdp/attachments/20171017/2c711e77/attachment-0001.html>


More information about the getdp mailing list