[Gmsh] Mesh Statistics
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Wed Jan 13 17:52:18 CET 2016
> On 11 Jan 2016, at 11:56, Paul Comino <pcomino18 at gmail.com> wrote:
>
> Hi there,
>
> Simple question: Is it possible to export the mesh statistics (File -> Save As -> Post-Processing - Mesh Statistics (.pos)) through the command line or in the .geo file after meshing?
>
Sure; for example:
lc = 1e-2;
Point(1) = {0, 0, 0, lc};
Point(2) = {.1, 0, 0, lc} ;
Point(3) = {.1, .3, 0, lc} ;
Point(4) = {0, .3, 0, lc} ;
Line(1) = {1,2} ;
Line(2) = {3,2} ;
Line(3) = {3,4} ;
Line(4) = {4,1} ;
Line Loop(5) = {4,1,-2,3} ;
Plane Surface(6) = {5} ;
// mesh
Mesh 2;
// what to print:
Print.PostElementary = 1;
Print.PostElement = 0;
Print.PostGamma = 0;
Print.PostEta = 0;
Print.PostRho = 1;
Print.PostDisto = 0;
// save (using automatic format detection using the extension)
Save "aa.pos";
> If it is possible how can it be done? If not is it possible to print Gamma, Rho, Eta to a file using printf?
>
> Thank you.
> _______________________________________________
> 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
Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
Free software: http://gmsh.info | http://getdp.info | http://onelab.info
More information about the gmsh
mailing list