<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hello:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I am using transfinite algorithm to mesh many surfaces of heterogeneous size.<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Right now, the transfinite algorithm is specified as:</p>
<p style="margin-top:0;margin-bottom:0"><span>Transfinite Line {lineid} = n_divisions ;</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>As lines have varied lenghts, one way to do it can be:</span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>h_mesh = 0.1;</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>line_length = 2.0; // non-automatic</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><span>n_divisions = Ceil(line_lenght/h_mesh);</span></span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><span></span></span></span><span>Transfinite Line {lineid} = n_divisions ;</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">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.<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">But still there is a non-automatic part of the code which is the lenght of the line/curve.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Is there a command in gmsh to get the length of a line/curve?<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>Thanks in advance,<br>
</p>
<p><br>
</p>
<p>Ing. Héctor Espinoza, MSc, PhD</p>
<p>Profesor Titular</p>
<p>Ingeniería Mecánica</p>
<p>Universidad Tecnológica de Bolívar<br>
</p>
</div>
</div>
</div>
</body>
</html>