On 13/04/11 11:29, [email protected] wrote:
I have some quastions for gmsh:

1. How can i set the first length of node when i mesh a line. In
transfinite doesnt give any choice.
When you use transfinite for meshing a line, the characteristic length is ignored.
It will be taken into account for the surrounding elements of the geometry.
For instance:
lc =  0.1 ;
Point(1) = {0,0,0, lc};
Point(2) = {0,1,0,lc};
Line(1) = {1,2} ;
Transfinite Line(1) = 20 ;

The line is divided in 20 elements and not in 10 as it would be the case with the lc.
2. How can i create boundary layers with qads or hex's? (for example near
wall which require orthogonal mesh lines).
Using the extrude command.
See the attached example.
Ruth

By now these equaetions...:)

K.P

_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh


--
Dr. Ir. Ruth V. Sabariego
University of Liege, Dept. of Electrical Engineering&  Computer Science,
Applied&  Computational Electromagnetics (ACE),
phone: +32-4-3663737 - fax: +32-4-3662910 - http://ace.montefiore.ulg.ac.be/

lc = 1/5;

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

Line Loop(13) = {2,8,-10};
Ruled Surface(14) = {13};
Line Loop(15) = {10,3,7};
Ruled Surface(16) = {15};
Line Loop(17) = {-8,-9,1};
Ruled Surface(18) = {17};
Line Loop(19) = {-11,-2,5};
Ruled Surface(20) = {19};
Line Loop(21) = {-5,-12,-1};
Ruled Surface(22) = {21};
Line Loop(23) = {-3,11,6};
Ruled Surface(24) = {23};
Line Loop(25) = {-7,4,9};
Ruled Surface(26) = {25};
Line Loop(27) = {-4,12,-6};
Ruled Surface(28) = {27};

Recombine Surface{14:28:2};

Extrude {
  Surface{14:28:2}; Layers{5, 0.2}; Recombine;
}
_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to