[Gmsh] Refine the mesh around the line
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Wed Nov 16 09:32:05 CET 2016
> On 4 Nov 2016, at 14:28, Gladiator Gladiator <gladiator_gray at yahoo.com> wrote:
>
> Hello Gmsh users,
>
> Would you please some one kindly inform me how I can refine the mesh around a specefic line in 2D and 3D meshes?
> For instance I want to refine a Square or Cube with unstructured quad or triangular mesh around its diameter (two gmsh files have been attached).
For a basic refinement, just change the mesh size associated with the points:
l=6;
h=6;
w=1;
c=0.5;
Point(1) = {0, 0, 0, c/10};
Point(2) = {l, 0, 0, c/10};
Point(3) = {0, h, 0, c};
Point(4) = {l, h, 0, c};
Line(1) = {1, 2};
Line(2) = {2, 4};
Line(3) = {4, 3};
Line(4) = {3, 1};
Line Loop(5) = {3, 4, 1, 2};
Plane Surface(6) = {5};
Physical Surface(7) = {6};
Recombine Surface {6};
For more advanced options (using "Fields"), see tutorial/t10.geo
> Thanks for your considerations,
> Look forward to your kind response,
>
>
> Best,
>
> Glad
> <Square.geo><Cube.geo>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
Free software: http://gmsh.info | http://getdp.info | http://onelab.info
More information about the gmsh
mailing list