<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">This simple script should draw a circle (2D surface) and when meshed it should be refined on the boundary, but I am not getting that. I have done the same without Open Cascade and it works.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>cx = 0.0 ;<br>
cy = 0.0 ;<br>
cz = 0.0 ;</div>
<span>D = 1.0 ;</span>
<p></p>
<p style="margin-top:0;margin-bottom:0"><span>R = D/2;</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span><span>SetFactory("OpenCASCADE");</span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span></span><span>Disk(1) = {cx,cy,cz,R} ; // creates a circle surface</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Field[1] = MathEval ;</span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>//Field[1].F = "0.15 - 0.13*((x^2)/(0.5^2))" ; // works 2D, 617 elements: 0.02 to 0.15</span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Field[1].F = "0.15 - 0.13*(x^2 + y^2)/(0.5^2)" ; // doesnt work 2D</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span>Background Field = 1 ;</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">What I am doing wrong?<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;">
Sincerely,<br>
<br>
Héctor<br>
</div>
</div>
</div>
</body>
</html>