[Gmsh] Transfinite meshing with Curve Lenght

Hector Gabriel Espinoza Román hespinoza at utb.edu.co
Mon Jul 30 17:49:46 CEST 2018


Hello:


I am using transfinite algorithm to mesh many surfaces of heterogeneous size.


Right now, the transfinite algorithm is specified as:

Transfinite Line {lineid} = n_divisions ;


As lines have varied lenghts, one way to do it can be:

h_mesh = 0.1;

line_length = 2.0; // non-automatic

n_divisions = Ceil(line_lenght/h_mesh);

Transfinite Line {lineid} = n_divisions ;


Of course there should be some code (easy to implement) to be sure that the opposite sides of a surface have the same n_divisions.


But still there is a non-automatic part of the code which is the lenght of the line/curve.


Is there a command in gmsh to get the length of a line/curve?


Thanks in advance,


Ing. Héctor Espinoza, MSc, PhD

Profesor Titular

Ingeniería Mecánica

Universidad Tecnológica de Bolívar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180730/afe58059/attachment.html>


More information about the gmsh mailing list