[Gmsh] Create mesh using command line

Fabrice Pepin fa_201 at yahoo.fr
Mon Jan 23 22:22:20 CET 2017


Hello,
meshing and exporting the mesh can also be requested in the geo file.Look at meshing command and meshing options. I use some the command below :Mesh.ElementOrder = 2;
Mesh.SecondOrderIncomplete = 1;
Mesh.Format = 39;         // Abaqus formatMesh 2; // for 2DSave "file_name.inp"; // export in the same directory as geo file
Fabrice.

      De : DILASSER Guillaume <Guillaume.DILASSER at cea.fr>
 À : Thomas Charles Reading Moore <thoamsm at student.unimelb.edu.au>; "gmsh at geuz.org" <gmsh at geuz.org> 
 Envoyé le : Lundi 23 janvier 2017 9h50
 Objet : Re: [Gmsh] Create mesh using command line
   
#yiv0900542766 #yiv0900542766 -- _filtered #yiv0900542766 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv0900542766 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv0900542766 #yiv0900542766 p.yiv0900542766MsoNormal, #yiv0900542766 li.yiv0900542766MsoNormal, #yiv0900542766 div.yiv0900542766MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}#yiv0900542766 a:link, #yiv0900542766 span.yiv0900542766MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv0900542766 a:visited, #yiv0900542766 span.yiv0900542766MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv0900542766 span.yiv0900542766EmailStyle17 {color:#1F497D;}#yiv0900542766 .yiv0900542766MsoChpDefault {} _filtered #yiv0900542766 {margin:70.85pt 70.85pt 70.85pt 70.85pt;}#yiv0900542766 div.yiv0900542766WordSection1 {}#yiv0900542766 Hello Thomas,    You can use the following command line : gmsh <name_of_your_geo_file.geo> -2 <-o name_of_the_output_file>. “-2” is equivalent to using the Mesh 2D command from the UI, additionnaly you can specify the desired .msh output file name with the –o switch.    Hope this was helpful,    Guillaume Dilasser    De : gmsh [mailto:gmsh-bounces at ace20.montefiore.ulg.ac.be]De la part de Thomas Charles Reading Moore
Envoyé : lundi 23 janvier 2017 08:15
À : gmsh at geuz.org
Objet : [Gmsh] Create mesh using command line    I have a .geo file which I'd like to create a .msh file from. My current procedure is      - open the .geo file using the termianl  - Select 2D mesh in the GUI  - save the .msh file.    Is there a way to do this (tedious) process via the command line? I'm using a Macbook Pro if that's relevant.     Thanks 
_______________________________________________
gmsh mailing list
gmsh at onelab.info
http://onelab.info/mailman/listinfo/gmsh


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20170123/252eb69d/attachment-0001.html>


More information about the gmsh mailing list