[Gmsh] Apply "refine by splitting" to a single transfinite surface

Aaron Matthew Baier-Reinio ambaierreinio at edu.uwaterloo.ca
Tue Mar 5 22:04:13 CET 2019


Hello,

In the following toy example I have two adjacent squares, which are meshed using the transfinite algorithm:

Point(1) = {0, 0, 0, 1.0};
Point(2) = {1, -0, 0, 1.0};
Point(3) = {1, 1, 0, 1.0};
Point(4) = {0, 2, 0, 1.0};
Point(5) = {0, 1, 0, 1.0};
Point(6) = {1, 2, 0, 1.0};

Line(1) = {4, 5};
Line(2) = {5, 1};
Line(3) = {1, 2};
Line(4) = {3, 2};
Line(5) = {3, 6};
Line(6) = {6, 4};
Line(7) = {5, 3};

Curve Loop(1) = {1, 7, 5, 6};
Plane Surface(1) = {1};
Curve Loop(2) = {7, 4, -3, -2};
Plane Surface(2) = {2};

Transfinite Curve {6, 5, 7, 1, 4, 3, 2} = 10 Using Progression 1;
Transfinite Surface {1};
Transfinite Surface {2};

When I press "refine by splitting", the number of elements in each square is doubled. I was wondering if there is a way to apply "refine by splitting" to the top square only, so that the number of elements in the top square is doubled, while the number of elements in the bottom square doesn't change. How might I go about doing this?


Thanks for the help,
Aaron


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190305/bd3ae7d7/attachment.html>


More information about the gmsh mailing list