[Gmsh] ΗΕX element type only

Christophe Geuzaine cgeuzaine at ulg.ac.be
Fri Jul 19 07:34:21 CEST 2013


On 18 Jul 2013, at 09:49, Mazanakis george <gmazanakis at yahoo.com> wrote:

> Hi everyone
> I am new in gmsh and I am apologies for my simple question
> 
> I want to know How (if) I can create a model which has only HEX element (c3d20 in abaqus format) 
> For example I have create this simple model. So when I create the mesh except from the hex element (c3d8)  threre are and quadrangles element. 
> 
> In conclusion How I can use only one type of element (c3d20)? 
> ps
> There is and another similar question but I canot understand what I have to do.
> 

Add a physical volume:

Physical Volume(1) = 1;


> I hope for your Help
> M.G.
> 
> cl__1 = 0.1;
> Point(1) = {0, 0, 0, 0.1};
> Point(2) = {1, 0, 0, 0.1};
> Point(3) = {1, 1, 0, 0.1};
> Point(4) = {0, 1, 0, 0.1};
> Point(5) = {1, 1, 1, 0.1};
> Point(6) = {0, 1, 1, 0.1};
> Point(10) = {0, 0, 1, 0.1};
> Point(14) = {1, 0, 1, 0.1};
> 
> Line(1) = {1, 2};
> Transfinite Line {1} = 4Using Progression 1;
> Line(2) = {2, 3};
> Transfinite Line {2} = 4Using Progression 1;
> Line(3) = {3, 4};
> Transfinite Line {3} = 4Using Progression 1;
> Line(4) = {4, 1};
> Transfinite Line {4} = 4Using Progression 1;
> Line(8) = {5, 6};
> Transfinite Line {8} = 4Using Progression 1;
> Line(9) = {6, 10};
> Transfinite Line {9} = 4Using Progression 1;
> Line(10) = {10, 14};
> Transfinite Line {10} = 4Using Progression 1;
> Line(11) = {14, 5};
> Transfinite Line {11} = 4Using Progression 1;
> Line(13) = {3, 5};
> Transfinite Line {13} = 4Using Progression 1;
> Line(14) = {4, 6};
> Transfinite Line {14} = 4Using Progression 1;
> Line(18) = {1, 10};
> Transfinite Line {18} = 4Using Progression 1;
> Line(22) = {2, 14};
> Transfinite Line {22} = 4Using Progression 1;
> Line Loop(6) = {3, 4, 1, 2};
> 
> Plane Surface(6) = {6};
> Transfinite Surface {6};
> Recombine Surface {6};
> 
> 
> Line Loop(15) = {3, 14, -8, -13};
> Ruled Surface(15) = {15};
> Transfinite Surface {15};
> Recombine Surface {15};
> 
> 
> Line Loop(19) = {4, 18, -9, -14};
> Ruled Surface(19) = {19};
> Transfinite Surface {19};
> Recombine Surface {19};
> 
> 
> Line Loop(23) = {1, 22, -10, -18};
> Ruled Surface(23) = {23};
> Transfinite Surface {23};
> Recombine Surface {23};
> 
> Line Loop(27) = {2, 13, -11, -22};
> Ruled Surface(27) = {27};
> Transfinite Surface {27};
> Recombine Surface {27};
> 
> Line Loop(28) = {8, 9, 10, 11};
> Plane Surface(28) = {28};
> Transfinite Surface {28};
> Recombine Surface {28};
> 
> Surface Loop(1) = {6, 15, 19, 23, 27, 28};
> Volume(1) = {1};
> Transfinite Volume(1);
> Recombine Volume(1);
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine