<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi, <div><br></div><div><br></div><div>I would like to structure the mesh non uniformly along the line.</div><div>But the "Transfinite line" works only for the lines (not the nurbs).</div><div>Could you advise me a way to do it?</div><div><br></div><div><br></div><div><br></div><div>Thank you</div><div><br></div><div><br></div><div>Manar</div><div><br></div><div><br></div><div>Here is my code:</div><div><div>g=40; </div><div>l=6; </div><div>dg=3; </div><div>h=2; </div><div>k=0.3; </div><div>r=0.5; </div><div><br></div><div>xa=8; </div><div>xc=5;</div><div>xb=5;</div><div>yb=8;</div><div><br></div><div>Point(6)={g+dg,h,0};</div><div>Point(26)={g+(dg/2),h,0};</div><div>Point(65)={g+dg, 0+k,0};</div><div>Point(66)={g+(dg/2),0+k,0};</div><div><br></div><div>Point(800)= {(g+(dg/2)+r),h,0,10};</div><div>Point(1200)= {(g+(dg/2)+dg/4),h,0,10};</div><div><br></div><div>//Point(801)= {(g+(dg/2)+r),k,0,10};</div><div>//Point(1201)= {(g+(dg/2)+dg/4),k,0,10};</div><div><br></div><div>Line(36)={6,65};</div><div>Line(218)={65, 66};</div><div>Line(55)={26,66};</div><div>Line(45)={6,26};</div><div><br></div><div><br></div><div>rList[0] = 6;</div><div>For i In {1 : xa}</div><div>rList[i] = newp;</div><div>Point(rList[i]) ={g+dg-(i*(dg/4)/xa),h,0};</div><div>EndFor</div><div>rList[xa+1] = 1200;</div><div>Spline(newl) = rList[];</div><div><br></div><div>vList[0] = 1200; </div><div>For i In {1 : xb}</div><div>vList[i] = newp;</div><div>Point(vList[i]) ={(g+dg-dg/4)-(i*((dg/4)-r)/xb),h,0};</div><div>EndFor</div><div>vList[xb+1] = 800;</div><div>Spline(newl) = vList[];</div><div><br></div><div>aList[0] = 800; </div><div>For i In {1 : xc}</div><div>aList[i] = newp;</div><div>Point(aList[i]) ={g+dg-(dg/2)+r-(i*r/xc),h,0};</div><div>EndFor</div><div>aList[xc+1] = 26;</div><div>Spline(newl) = aList[];</div><div><br></div><div><br></div><div>bbList[0] = 65;</div><div>For i In {1 : yb}</div><div>bbList[i] = newp;</div><div>Point(bbList[i]) ={g+dg,k+i*(h-k)/yb, 0};</div><div>EndFor</div><div>bbList[yb] = 6;</div><div>Spline(newl) = bbList[];</div><div><br></div><div>// surface</div><div><br></div><div>Line Loop(221) = {45, 55, -218, -36};</div><div>Plane Surface(222) = {221};</div><div><br></div><div>Transfinite Line {55, 36} = yb+1 ;</div><div>Transfinite Line {45, 218} = xa+1;</div><div><br></div><div><br></div><div>//Transfinite Line {220, 223} = xb+1;</div><div>//Transfinite Line {222, 219} = xc+1;</div><div><br></div><div>Transfinite Surface "*";</div><div>Recombine Surface "*";</div><div><br></div></div> </div></body>
</html>