[Gmsh] Random mesh

Mikhail Artemyev artemiev.mikhail at gmail.com
Tue Jan 27 18:11:40 CET 2015


Hi,

Try this out


cl = 0.1;
Point(1) = {0, 0, 0, cl};
Point(2) = {1, 0, 0, cl};
Point(3) = {1, 1, 0, cl};
Point(4) = {0, 1, 0, cl};
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
Line Loop(5) = {1, 2, 3, 4};
Plane Surface(1) = {5};

Recombine Surface{1};

Mesh.Algorithm = 5;



Best,
Mikhail


> Hello, I would like to generate a random mesh similar to that of the
> picture. I'm a beginner, and to do this the only way I found is introducing
> some( undesired) geometric features in the mesh so that the mesh it
> unstructured in some places. I would like to have a square boundary, with
> random quadrilaterals inside and no other geometric feature on it. Is there
> a way to do this, both in the graphical interface and scripting? Thank you.
>
>
> <https://lh6.googleusercontent.com/-yF3F1x0vY30/VMe1m1fvFiI/AAAAAAAAAAs/kyiAStVzQhE/s1600/mesh.png>





More information about the gmsh mailing list