[Gmsh] Option file options for batch

Christophe Geuzaine cgeuzaine at uliege.be
Tue Jun 19 12:34:56 CEST 2018



> On 19 Jun 2018, at 11:15, Zuheyr Alsalihi <zuheyr at gmail.com> wrote:
> 
> Hello,
> 
> I would like to use the option file to generate meshes in batch mode. 
> 
> a) How do I find out the complete list of configuration options?
> For instance I came across with this from the gmsh list, an email from Fabrice Pepin, dated : Tue, Jan 24, 2017 at 8:22 AM
> > 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.
> >
> Where do I find this info!? I am c++ literate and downloaded the code but fail to find it.

Help->Current options and workspace

or File->Export and choose a file with the ".opt" extension.


> b) Can I give options to get output in several different formats, such as abaqus and gmesh formats, in the same opt file?

Sure:

// construct your geometry
// ...
Mesh 3; // mesh it
Save "file.inp"; // save in abaqus format
Save "file.msh"; // save in gmsh format



> Thank you very much for reading.
> 
> Best,
> Zuheyr Alsalihi
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180619/a2c7b43e/attachment.html>


More information about the gmsh mailing list