<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Roboto Slab">Someone <font face="Roboto Slab">gave me a
response to this email shortly after posting this and I think I
acc<font face="Roboto Slab">ident<font face="Roboto Slab">ally<font
face="Roboto Slab"> deleted their answer. Could this
person respond again<font face="Roboto Slab">?<br>
<br>
<font face="Roboto Slab">Best,<br>
<br>
<font face="Roboto Slab">Nick<br>
<br>
</font></font></font></font></font></font></font></font>
<div class="moz-cite-prefix">On 6/12/2017 4:34 PM, Nicholas Danes
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:488e85e6-9eae-4186-d7f1-b2713f98655c@mymail.mines.edu">I
currently have a grid that works fine with the unstructured
algorithms in Gmsh to build a "H" shaped grid.
<br>
<br>
I know the transfinite algorithm does not work with a grid with
more than 4 corners, but is there a way to make this grid
structured (with triangular elements)?
<br>
<br>
I have tried extracting out grids as well as piecing 3 rectangular
grids together without much success.
<br>
<br>
The source code for my grid is given below.
<br>
<br>
Thanks,
<br>
<br>
Nick
<br>
<br>
<br>
// Inputs
<br>
xchar = 3.0;
<br>
l_injury = 100.0;
<br>
w_injury = 20.0;
<br>
boxdimx = (200+l_injury)/xchar;
<br>
boxdimy = (150+w_injury)/xchar;
<br>
gridsize = 1.8/xchar;
<br>
gridsize2 = 1.8/(1.0*xchar);
<br>
<br>
//Create "H" mesh basis points
<br>
Point(1) = {0,0,0,gridsize};
<br>
Point(2) = {0,boxdimy,0,gridsize};
<br>
Point(3) = {100.0/xchar,boxdimy,0,gridsize};
<br>
Point(4) = {100.0/xchar,(boxdimy/2.0) +
w_injury/(2.0*xchar),0,gridsize2};
<br>
Point(5) = {(100.0+l_injury)/xchar,(boxdimy/2.0) +
w_injury/(2.0*xchar),0,gridsize2};
<br>
Point(6) = {(100.0+l_injury)/xchar,boxdimy,0,gridsize2};
<br>
Point(7) = {boxdimx,boxdimy,0,gridsize2};
<br>
Point(8) = {boxdimx,0.0,0,gridsize};
<br>
Point(9) = {boxdimx-100.0/xchar,0.0,0,gridsize2};
<br>
Point(10) = {boxdimx-100.0/xchar,(boxdimy/2.0) -
w_injury/(2.0*xchar),0,gridsize2};
<br>
Point(11) = {100/xchar,(boxdimy/2.0) -
w_injury/(2.0*xchar),0,gridsize2};
<br>
Point(12) = {100/xchar,0.0,0,gridsize2};
<br>
<br>
Line(71) = {1,2};
<br>
Line(72) = {2,3};
<br>
Line(73) = {3,4};
<br>
Line(74) = {4,5};
<br>
Line(75) = {5,6};
<br>
Line(76) = {6,7};
<br>
Line(77) = {7,8};
<br>
Line(78) = {8,9};
<br>
Line(79) = {9,10};
<br>
Line(80) = {10,11};
<br>
Line(81) = {11,12};
<br>
Line(82) = {12,1};
<br>
<br>
// Connect lines into a loop
<br>
Line Loop(100) = {71,72,73,74,75,76,77,78,79,80,81,82};
<br>
Plane Surface(101) = 100;
<br>
<br>
// Boundaries
<br>
Physical Line(1) = {71,73,74,75,77,79,80,81}; // no-slip
boundaries
<br>
Physical Line(2) = {72};
<br>
Physical Line(3) = {76};
<br>
Physical Line(4) = {82};
<br>
Physical Line(5) = {78};
<br>
Physical Surface(102) = {101};
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Thank you,
Nicholas A. Danes
PhD Candidate | Computational & Applied Math | Colorado School of Mines
<a class="moz-txt-link-abbreviated" href="mailto:me@nicholasdanes.com">me@nicholasdanes.com</a> | <a class="moz-txt-link-abbreviated" href="http://www.nicholasdanes.com">www.nicholasdanes.com</a>
</pre>
</body>
</html>