Thanks. That worked. <div><br></div><div>I have a problem with areas. I am using the circle grid with deal.II. Its a 2-d problem so I generate only mesh in z=0. deal.II is saying that areas are negative.</div><div><br></div>
<div>In the attached grid, Ruled Surface 1 is oriented ccw but the other Ruled Surface 5, 10 are cw. I think this is causing the problem. Is there a way to fix this ?</div><div><br></div><div>praveen</div><div><br></div><div>
<br><br><div class="gmail_quote">On Sat, Mar 19, 2011 at 6:07 AM, Geordie McBain <span dir="ltr"><<a href="mailto:gdmcbain@freeshell.org">gdmcbain@freeshell.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/3/19 <<a href="mailto:gmsh@praveen.e4ward.com">gmsh@praveen.e4ward.com</a>>:<br>
<div><div></div><div class="h5">> Hi all,<br>
> I have attached below a simple script to generate grid for a full circle. I<br>
> create it for half a circle and use Symmetry to reflect it, so it becomes a<br>
> full circle.<br>
> But Symmetry is not working. Can you point out the mistake in my script.<br>
> Thanks<br>
> praveen<br>
><br>
> r = 1.0; // cylinder radius<br>
> R = 10.0; // outer boundary radius<br>
> n1 = 10;<br>
> n2 = 10;<br>
> Point(1) = { 0, 0, 0};<br>
> Point(2) = {-r, 0, 0};<br>
> Point(3) = { r, 0, 0};<br>
> Point(4) = {-R, 0, 0};<br>
> Point(5) = { R, 0, 0};<br>
> Circle(1) = {3,1,2};<br>
> Circle(2) = {5,1,4};<br>
> Line(3) = {5,3};<br>
> Line(4) = {2,4};<br>
> Line Loop(1) = {3, 1, 4, -2};<br>
> Ruled Surface(1) = {1};<br>
> Transfinite Surface(1) = {3,5,4,2};<br>
> Recombine Surface(1);<br>
> Transfinite Line {3,4} = n1;<br>
> Transfinite Line {1,2} = n2;<br>
> Symmetry {0.0, 1.0, 0.0, 0.0} { Duplicata{Surface{1};} }<br>
</div></div>> _______________________________________________<br>
<br>
I see that this doesn't work they way you expected. Note that Circle<br>
`creates a circle arc (strictly) smaller than Pi.'<br>
<<a href="http://geuz.org/gmsh/doc/texinfo/gmsh.html#Lines" target="_blank">http://geuz.org/gmsh/doc/texinfo/gmsh.html#Lines</a>>.<br>
<br>
In the attached modified input file, the arcs subtend right angles,<br>
and Symmetry does work as expected. (The resulting mesh probably<br>
isn't what you're after, but I'll leave the further modifications<br>
required to fix that to you.)<br>
</blockquote></div><br></div>