CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] syntax error in opening *geo file in gmsh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2012, 02: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, 14 views)
summer8 is offline   Reply With Quote

Old   September 14, 2012, 23:22
Default
  #2
Member
 
Jason Eason
Join Date: Jan 2010
Location: Portage, Michigan
Posts: 45
Rep Power: 16
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, 16: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 21, 2012, 00:10
Default
  #4
Member
 
Jason Eason
Join Date: Jan 2010
Location: Portage, Michigan
Posts: 45
Rep Power: 16
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 04:50
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
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 00:23.