<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">So I missed something :-(<br>
Sorry for disturbing, I remember now that I already saw this
option in the past.<br>
<br>
Thanks a lot,<br>
Gregory<br>
<br>
Le 22/11/2014 00:01, Jean-François Remacle a écrit :<br>
</div>
<blockquote
cite="mid:2B8DBAC0-F592-40CB-B52C-621B22A94754@uclouvain.be"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
Hello,
<div><br>
</div>
<div>Just put</div>
<div>Mesh.CharacteristicLengthExtendFromBoundary = 0;</div>
<div><br>
</div>
<div>in the geo file.</div>
<div><br>
</div>
<div>JF</div>
<div>
<div>
<div><br>
</div>
<div><br>
</div>
<div>Le 21 nov. 2014 à 03:34, Grégory LEGRAIN <<a
moz-do-not-send="true"
href="mailto:gregory.legrain@ec-nantes.fr">gregory.legrain@ec-nantes.fr</a>>
a écrit :</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Dear gmsh developers/users,<br>
I am playing with size fields, and I experienced some
strange results...<br>
<br>
Consider the folllwing geo file :<br>
lc = 1.e-2;<br>
<br>
Point(1) = {0.0,0.0,0.0,lc};<br>
Point(2) = {1,0.0,0.0,lc};<br>
Point(3) = {1,1,0.0,lc};<br>
Point(4) = {0,1,0.0,lc};<br>
Line(1) = {4,3};<br>
Line(2) = {3,2};<br>
Line(3) = {2,1};<br>
Line(4) = {1,4};<br>
Line Loop(5) = {2,3,4,1};<br>
Plane Surface(6) = {5};<br>
<br>
<br>
Field[1] = MathEval;<br>
Field[1].F = "0.1";<br>
Background Field = 1;<br>
<br>
As you can see, I should get a mesh with elements of size
0.1.<br>
<br>
Unfortunately, I obtain a mesh with size 1.e-2 which was my
initial characteristic length (see isoKO.png). Now, if I set
lc=1. I get a correct mesh (see isoOK.png).<br>
<br>
So my question is : did I miss something ? Is it normal that
the size field is only taken into account when it is smaller
than the initial characteristic length ? (i.e. no coarsening
possible)<br>
<br>
Best regards,<br>
Gregory<br>
<br>
PS : I played also with anisotropic meshing, and in this
case the metric is taken into account everywhere except on
the boundaries.<br>
<br>
-- <br>
-------------------------------<br>
Grégory LEGRAIN<br>
Maître de Conférences - Assistant Professor<br>
Responsable de l'option Modélisation et Simulation Mécanique
(MSM)<br>
GeM Institut de Recherche en Génie Civil et Mécanique - UMR
CNRS 6183<br>
Equipe structure et simulation<br>
<br>
Ecole Centrale de Nantes<br>
1 Rue de la Noe, 44321 Nantes, France<br>
Email : <a moz-do-not-send="true"
href="mailto:gregory.legrain@ec-nantes.fr">gregory.legrain@ec-nantes.fr</a><br>
Tel : 02.40.37.16.41.<br>
Fax : 02.40.37.25.73.<br>
<br>
<span><isoOK.png></span><span><isoKO.png></span>_______________________________________________<br>
gmsh mailing list<br>
<a moz-do-not-send="true" href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
<a class="moz-txt-link-freetext" href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: medium; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: 2; text-align: -webkit-auto; text-indent:
0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; word-wrap: break-word;
-webkit-nbsp-mode: space; -webkit-line-break:
after-white-space; ">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: medium; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space; ">
<div>
<div>/*</div>
<div><br>
</div>
<div>Professor Jean-François Remacle
<div>Department of Computational and Applied
Mathematics<br>
Rice University<br>
<br>
+1 713 348 6160</div>
<div><a moz-do-not-send="true"
href="http://www.geuz.org/gmsh">http://www.geuz.org/gmsh</a></div>
</div>
</div>
<div><br>
</div>
</div>
*/</div>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
-------------------------------
Grégory LEGRAIN
Maître de Conférences - Assistant Professor
Responsable de l'option Modélisation et Simulation Mécanique (MSM)
GeM Institut de Recherche en Génie Civil et Mécanique - UMR CNRS 6183
Equipe structure et simulation
Ecole Centrale de Nantes
1 Rue de la Noe, 44321 Nantes, France
Email : <a class="moz-txt-link-abbreviated" href="mailto:gregory.legrain@ec-nantes.fr">gregory.legrain@ec-nantes.fr</a>
Tel : 02.40.37.16.41.
Fax : 02.40.37.25.73.
</pre>
</body>
</html>