Hello, Just put Mesh.CharacteristicLengthExtendFromBoundary = 0;
in the geo file. JF Le 21 nov. 2014 à 03:34, Grégory LEGRAIN <[email protected]> a écrit : > Dear gmsh developers/users, > I am playing with size fields, and I experienced some strange results... > > Consider the folllwing geo file : > lc = 1.e-2; > > Point(1) = {0.0,0.0,0.0,lc}; > Point(2) = {1,0.0,0.0,lc}; > Point(3) = {1,1,0.0,lc}; > Point(4) = {0,1,0.0,lc}; > Line(1) = {4,3}; > Line(2) = {3,2}; > Line(3) = {2,1}; > Line(4) = {1,4}; > Line Loop(5) = {2,3,4,1}; > Plane Surface(6) = {5}; > > > Field[1] = MathEval; > Field[1].F = "0.1"; > Background Field = 1; > > As you can see, I should get a mesh with elements of size 0.1. > > 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). > > 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) > > Best regards, > Gregory > > PS : I played also with anisotropic meshing, and in this case the metric is > taken into account everywhere except on the boundaries. > > -- > ------------------------------- > 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 : [email protected] > Tel : 02.40.37.16.41. > Fax : 02.40.37.25.73. > > <isoOK.png><isoKO.png>_______________________________________________ > gmsh mailing list > [email protected] > http://www.geuz.org/mailman/listinfo/gmsh /* Professor Jean-François Remacle Department of Computational and Applied Mathematics Rice University +1 713 348 6160 http://www.geuz.org/gmsh */
_______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
