[Gmsh] Create mesh using command line

Thomas Charles Reading Moore thoamsm at student.unimelb.edu.au
Mon Jan 23 23:29:12 CET 2017


Ahh, fantastic, thanks. I realise my problem: in my .bash_profile I had:

alias  gmsh="open -a gmsh"

which was silly :) Fixing this to

alias gmsh="/Applications/Gmsh.app/Contents/MacOS/gmsh"

solved my problems.

Thanks for your help!
Tom

On Tue, Jan 24, 2017 at 8:22 AM, Fabrice Pepin <fa_201 at yahoo.fr> wrote:

> 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 format
> Mesh 2; // for 2D
> Save "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
>
> 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/20170124/1f45782a/attachment-0001.html>


More information about the gmsh mailing list