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

[Gmsh] Save mesh from command line in gmsh

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By Jefferson_dhv

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2014, 20:58
Default Save mesh from command line in gmsh
  #1
New Member
 
Jefferson Vieira
Join Date: Jul 2014
Location: Brazil/Scotland
Posts: 12
Rep Power: 12
Jefferson_dhv is on a distinguished road
Hi all,

I need to read a stl file and save it as geo from the command line. Does anyone know how to do it?

Thanks in advance,
Jefferson
Jefferson_dhv is offline   Reply With Quote

Old   August 5, 2014, 11:24
Default
  #2
New Member
 
Jefferson Vieira
Join Date: Jul 2014
Location: Brazil/Scotland
Posts: 12
Rep Power: 12
Jefferson_dhv is on a distinguished road
I just solved it.

Actually the output file didn't need to be .geo, it could be .msh, so I just used th following code:
Code:
gmsh <input file> -1 -o <output file>.msh
I've put the -1 so gmsh has a mesh to output, but in my case it does not make any changes.
Jefferson_dhv is offline   Reply With Quote

Reply

Tags
geo, gmsh, mesh, save, stl


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
GMSH extrude a boundary layer from an unstructured Mesh Hillie Mesh Generation & Pre-Processing 2 July 7, 2017 04:38
Star CCM Overset Mesh Error (Rotating Turbine) thezack Siemens 7 October 12, 2016 12:14
[Gmsh] STL on Gmsh + Mesh on Snappy adrieno OpenFOAM Meshing & Mesh Conversion 3 May 20, 2016 13:22
[Gmsh] background mesh in gmsh Nick_J OpenFOAM Meshing & Mesh Conversion 1 March 20, 2013 05:20
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 11:04.