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 <[email protected]> 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 <[email protected]>
> *À :* Thomas Charles Reading Moore <[email protected]>; "
> [email protected]" <[email protected]>
> *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:[email protected]] *De la part
> de* Thomas Charles Reading Moore
> *Envoyé :* lundi 23 janvier 2017 08:15
> *À :* [email protected]
> *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
> [email protected]
> http://onelab.info/mailman/listinfo/gmsh
>
>
>
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to