CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

syntax error in opening *geo file in gmsh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 14, 2012, 01:21
Default syntax error in opening *geo file in gmsh
  #1
New Member
 
summer
Join Date: Sep 2012
Posts: 2
Rep Power: 0
summer8 is on a distinguished road
hi there,

i am intending to export a *geo file containing geometry with solid meshing from solidworks to gmsh. however, gmsh reports syntax error (*) in line 1 of the file and doesn't open. what does this mean? could anyone please kindly let me know what exactly is the problem here?

thank you!
Attached Files
File Type: zip curve.zip (52.2 KB, 6 views)
summer8 is offline   Reply With Quote

Old   September 14, 2012, 22:22
Default
  #2
Member
 
Jason Eason
Join Date: Jan 2010
Location: Portage, Michigan
Posts: 44
Rep Power: 7
JulytoNovember is on a distinguished road
The .geo file for Solidworks has a different format than Gmsh, from what I see. Open your file in a file editor, and do the same with a Gmsh .geo file and you will see the difference. Export your file as a .step or .brep file, then load it into Gmsh and see if that helps.
__________________
Debian Squeeze - OpenFOAM-2.1.x, Paraview-3.12.0
JulytoNovember is offline   Reply With Quote

Old   September 16, 2012, 15:49
Default
  #3
New Member
 
summer
Join Date: Sep 2012
Posts: 2
Rep Power: 0
summer8 is on a distinguished road
but if i were to save it as a STEP file in solidworks and export to gmsh, i would only be left with the surface geometry and i would have to mesh again in gmsh, wouldn't i?
I was wondering whether there is any way that i can retain the mesh from solidworks in gmsh and then be able to export it as a *msh file for FE pre-processer. Is it possible?

Thank you for your time and reply!
summer8 is offline   Reply With Quote

Old   September 20, 2012, 23:10
Default
  #4
Member
 
Jason Eason
Join Date: Jan 2010
Location: Portage, Michigan
Posts: 44
Rep Power: 7
JulytoNovember is on a distinguished road
Try .stl format, that way your file is still a mesh. Import the .stl file into Gmsh, then save the file in the .msh format. I've never used Solidworks, but I'm guessing .geo file for Solidworks is a mesh. However; .geo file for Gmsh is a geometry. I wonder can Solidworks read Gmsh .geo file, do you know?
__________________
Debian Squeeze - OpenFOAM-2.1.x, Paraview-3.12.0
JulytoNovember is offline   Reply With Quote

Reply

Tags
geo file, gmsh, syntax error

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
OpenFOAM Install Script ljsh OpenFOAM Installation 82 October 12, 2009 11:47
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 09:46.