# [Gmsh] Transfinite volume

Joao Pina joao_pina at yahoo.com
Mon Feb 24 21:08:01 CET 2003

```Hi,

I'm trying to mesh a cube build by 5 square surfaces
and 3 rectangular surfaces on one of the sides. If I
use the GUI, when I try to transfinite the volume, it
will generate the command "Transfinite volume {1} =
...", although 1 is not the volume number. If I
substitute the number 1 by the volume number, in the
ascii file, then it simply just doesn't transfinite. I
would appreciate a lot if you could help me.

Thank you very much,

Joao

PS: The ascii file is as follows

Point(1) = {0,0,0,2};
Point(2) = {8,0,0,2};
Point(3) = {8,8,0,2};
Point(4) = {0,8,0,2};
Point(5) = {0,0,8,2};
Point(6) = {8,0,8,2};
Point(7) = {8,8,8,2};
Point(8) = {0,8,8,2};
Point(9) = {0,2,0,2};
Point(10) = {0,6,0,2};
Point(11) = {8,2,0,2};
Point(12) = {8,6,0,2};
Line(1) = {1,2};
Line(2) = {2,11};
Line(3) = {11,12};
Line(4) = {12,3};
Line(5) = {3,4};
Line(6) = {4,10};
Line(7) = {10,9};
Line(8) = {9,1};
Line(9) = {5,6};

Line(10) = {6,7};
Line(11) = {7,8};
Line(12) = {8,5};
Line(13) = {5,1};
Line(14) = {6,2};
Line(15) = {7,3};
Line(16) = {8,4};
Line(17) = {9,11};
Line(18) = {10,12};
Line Loop(19) = {2,-17,8,1};
Plane Surface(20) = {19};
Line Loop(21) = {17,3,-18,7};
Plane Surface(22) = {21};
Line Loop(23) = {18,4,5,6};
Plane Surface(24) = {23};
Line Loop(25) = {15,-4,-3,-2,-14,10};
Plane Surface(26) = {25};
Line Loop(27) = {-8,-7,-6,-16,12,13};
Plane Surface(28) = {27};
Line Loop(29) = {9,10,11,12};
Plane Surface(30) = {29};
Line Loop(31) = {-14,-9,13,1};
Plane Surface(32) = {31};
Line Loop(33) = {-16,-11,15,5};
Plane Surface(34) = {33};
Surface Loop(35) = {22,20,26,34,28,24,30,32};
Volume(36) = {35};
Transfinite Line {2,4,6,8} = 2;
Transfinite Line {3,7} = 3;
Transfinite Line {1,14,9,13,5,15,11,16,12,10,17,18} =
5;

Transfinite Surface {20} = {2,1,9,11};
Transfinite Surface {22} = {11,9,10,12};
Transfinite Surface {24} = {12,10,4,3};
Transfinite Surface {26} = {2,6,7,3};
Transfinite Surface {32} = {2,1,5,6};
Transfinite Surface {28} = {1,5,8,4};
Transfinite Surface {34} = {3,4,8,7};
Transfinite Surface {30} = {6,5,8,7};

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
```