[Gmsh] Structured meshing -- merging objects
Almanstoetter, Juergen
J.Almanstoetter at osram.de
Tue Jan 18 08:30:44 CET 2005
Hello,
I have got a question on how to merge to objects, in my case an arc and
a line to a single object, so I can use it for structured meshing with hexaeders.
The problem I want to solve is given by the input above. I would like to merge
two objects Circle (3) and Line (4) in order to use the resulting X for a
structured hexaeder meshing.
How can I do this ?
-------------------------------------------------------------------------------
Rlamp = 5;
Relek = 0.5;
// Points
Point(1) = {0, 0, 0, 1};
Point(2) = {0, Rlamp, 0, 1.0};
Point(3) = {Rlamp/2, 0 , 0, 1.0};
Point(4) = {Rlamp/2+Relek, 0, 0, 1.0};
Point(5) = {Rlamp/2+Relek, Relek, 0, 1.0};
Point(6) = {Rlamp, Relek, 0, 1.0};
// Lines
Line (1) = {1,2};
Line (2) = {1,3};
Circle (3) = {3, 4, 5} Plane{0, 0, 1};
Line (4) = {5,6};
Circle (5) = {2, 1, 6} Plane{0, 0, 1};
--> Merge Circle (3) and Line (4) to an object X <-----------
Line Loop (6) = {-1,2,X,-5}; <-------------- Merged object X needed here
Plane Surface (10) = {6};
// Meshing
Transfinite Line{1,2,X,5} = 10; <-------------- Merged object X needed here
Elliptic Surface {10} = {1,3,6,2};
Recombine Surface{10};
-------------------------------------------------------------------------------
Thank you very much !
Best regards,
Jürgen Almanstötter
OSRAM
DMC-SM
Mittelstetter Weg 2
86830 Schwabmünchen
Germany
Tel. +49 8232 182 -330
FAX +49 8232 182 -367
E-mail: j.almanstoetter at osram.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20050118/97010457/attachment.html>