<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:inherit;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;
        mso-fareast-language:FR;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1740980283;
        mso-list-template-ids:-1261507368;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Vincent,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I think you can simply add the statement
<i>“Mesh.CharacteristicLengthFromBoundary = 0 ;”</i> somewhere in the script of your first model to solve the issue. This will force Gmsh not to use the characteristic length of the surface mesh when computing the volume mesh, but instead only rely on the fields
 you provide. Let me know if it worked,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Sincerely Yours,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#000099">Guillaume DILASSER</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#000099"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099">Doctorant SACM / LEAS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099">CEA - Centre de Saclay - Bât.123 - PC 319c</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#000099"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099">91191 Gif sur Yvette Cedex - France -</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#000099"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099"><a href="mailto:guillaume.dilasser@cea.fr"><span style="color:blue">guillaume.dilasser@cea.fr</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">De :</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> gmsh [mailto:gmsh-bounces@ace20.montefiore.ulg.ac.be]
<b>De la part de</b> Vincent HUBER<br>
<b>Envoyé :</b> mercredi 14 juin 2017 15:26<br>
<b>À :</b> gmsh@onelab.info<br>
<b>Objet :</b> [Gmsh] Fields and Volume<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p><span style="font-family:"Courier New"">Hello everyone,<o:p></o:p></span></p>
<p style="margin:0px!important"><span style="font-family:"Courier New"">I work with Gmsh 3.0.2<o:p></o:p></span></p>
<p style="margin:0px!important"><span style="font-family:"Courier New"">I have a cylinder inside a cube.<br>
I want to refine the boundary of the cylinder.<o:p></o:p></span></p>
<p style="margin:0px!important"><span style="font-family:"Courier New"">To do so, I use a combination of MathEval fields.<br>
If I declare the cylinder as a volume, it is meshed with very small elements.<br>
If I do not declare the cylinder as a volume, only the region near the interface is correctly meshed.<o:p></o:p></span></p>
<p style="margin:0px!important"><span style="font-family:"Courier New"">How can I have both :<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:2.4pt;margin-right:0cm;margin-bottom:2.4pt;margin-left:0cm;text-indent:-18.0pt;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="font-size:10.0pt;font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]><span style="font-family:"Courier New"">the cylinder as a volume<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:2.4pt;margin-right:0cm;margin-bottom:2.4pt;margin-left:0cm;text-indent:-18.0pt;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="font-size:10.0pt;font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]><span style="font-family:"Courier New"">the reffinement near the interface ?<o:p></o:p></span></p>
<p style="margin:0px!important"><span style="font-family:"Courier New"">With the cylinder as a volume<o:p></o:p></span></p>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">h=0.1;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">x=1;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">y=1;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">z=1;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">ratio = 3.;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">radius=Sqrt(2.*(x/ratio)^2);<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">distance=h;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p0 = newp; Point(p0) = {0,0,0,50*h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">pc = newp; Point(pc) = {0,0,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p1 = newp; Point(p1) = {-x,-y,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p2 = newp; Point(p2) = {-x, y,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p3 = newp; Point(p3) = { x, y,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p4 = newp; Point(p4) = { x,-y,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">r1 = newp; Point(r1) = {      0,  radius, -z, h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">r2 = newp; Point(r2) = { radius,       0, -z, h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">r3 = newp; Point(r3) = {      0, -radius, -z, h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">r4 = newp; Point(r4) = {-radius,       0, -z, h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">l1 = newl; Line(l1) = {p1,p2};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">l2 = newl; Line(l2) = {p2,p3};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">l3 = newl; Line(l3) = {p3,p4};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">l4 = newl; Line(l4) = {p4,p1};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">c1 = newl; Circle(c1) = {r1,pc,r2};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">c2 = newl; Circle(c2) = {r2,pc,r3};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">c3 = newl; Circle(c3) = {r3,pc,r4};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">c4 = newl; Circle(c4) = {r4,pc,r1};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">outer = newll; Line Loop(outer) = {l1,l2,l3,l4};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">inner = newll; Line Loop(inner) = {c1,c2,c3,c4};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">s1 = news; Plane Surface(s1) = {outer,-inner};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">s2 = news; Plane Surface(s2) = {inner};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">extruded[] = Extrude{0,0,2.*z} { <o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Surface{s1,s2};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Physical Point("center") = {p0};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Physical Volume("Omega1") = {extruded[1]};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Physical Volume("Omega2") = {extruded[11]};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[1] = MathEval;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[1].F = Sprintf("(Fabs(%g-Sqrt(x*x+y*y)))+%g/5",radius,h);<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[2] = MathEval;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[2].F = "0.1";<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[3] = Min;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[3].FieldsList = {1,2};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Background Field = 3;<o:p></o:p></span></code></pre>
<p style="margin:0px!important"><span style="font-family:"Courier New"">With the reffinement I target<o:p></o:p></span></p>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">h=0.1;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">x=1;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">y=1;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">z=1;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">ratio = 3.;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">radius=Sqrt(2.*(x/ratio)^2);<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">distance=h;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p0 = newp; Point(p0) = {0,0,0,50*h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">pc = newp; Point(pc) = {0,0,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p1 = newp; Point(p1) = {-x,-y,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p2 = newp; Point(p2) = {-x, y,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p3 = newp; Point(p3) = { x, y,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">p4 = newp; Point(p4) = { x,-y,-z,h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">r1 = newp; Point(r1) = {      0,  radius, -z, h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">r2 = newp; Point(r2) = { radius,       0, -z, h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">r3 = newp; Point(r3) = {      0, -radius, -z, h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">r4 = newp; Point(r4) = {-radius,       0, -z, h};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">l1 = newl; Line(l1) = {p1,p2};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">l2 = newl; Line(l2) = {p2,p3};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">l3 = newl; Line(l3) = {p3,p4};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">l4 = newl; Line(l4) = {p4,p1};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">c1 = newl; Circle(c1) = {r1,pc,r2};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">c2 = newl; Circle(c2) = {r2,pc,r3};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">c3 = newl; Circle(c3) = {r3,pc,r4};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">c4 = newl; Circle(c4) = {r4,pc,r1};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">outer = newll; Line Loop(outer) = {l1,l2,l3,l4};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">inner = newll; Line Loop(inner) = {c1,c2,c3,c4};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">s1 = news; Plane Surface(s1) = {outer};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">//s2 = news; Plane Surface(s2) = {inner};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">extruded[] = Extrude{0,0,2.*z} { <o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Surface{s1};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Physical Point("center") = {p0};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Physical Volume("Omega1") = {extruded[1]};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">//Physical Volume("Omega2") = {extruded[11]};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8"><o:p> </o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[1] = MathEval;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[1].F = Sprintf("(Fabs(%g-Sqrt(x*x+y*y)))+%g/5",radius,h);<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[2] = MathEval;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[2].F = "0.1";<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[3] = Min;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Field[3].FieldsList = {1,2};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0cm;margin-right:1.8pt;margin-bottom:0cm;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt"><code><span style="font-family:"inherit",serif;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:#F8F8F8">Background Field = 3;<o:p></o:p></span></code></pre>
<p style="margin:0px!important"><span style="font-family:"Courier New"">All the best,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;font-family:"Cambria Math",serif">​</span><span style="font-size:1.0pt;font-family:"Courier New""><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">Vincent HUBER</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>