That depends on the numbers that gmsh gives to the surfaces of your
geometry.
The easiest way to do it is using the GUI of gmsh. You choose the
surfaces that close your volume with the mouse for getting the surface
loop.
Gmsh will add the line to your .geo file.
Regards,
Ruth
Eliam wrote:
Thank You.
I don't understand what I must put at :
"Surface Loop(2) = {******};"
Ruth V. Sabariego a écrit :
You have to add a box around your geometry in Gmsh and define the
volume between the surfaces.
For doing that, you should use a .geo file where your stl file with the
conected surfaces of your plane are defined.
For instance:
Merge 'yourfile.stl' ;
Point(201) = {*,*,*};
Point(202) = {*,*,*};
Point(203) = {*,*,*};
Point(204) = {*,*,*};
Line(203) = {202,204};
Line(204) = {204,203};
Line(205) = {203,201};
Line(206) = {201,202};
Line Loop(207) = {203,204,205,206};
Plane Surface(208) = {207};
Extrude {0,***,0} { Surface{208}; }
Surface Loop(1) = {1};
Surface Loop(2) = {******};
Volume(1) = {2,1};
Where the stars should be replaced by the suitable dimensions, line
numbers and surface numbers.
Regards,
Ruth
Eliam wrote:
Hi all
I must study the airflow around a car using OpenFOAM and I have my
model as a STL file.
I would like to know how can I obtain a volume mesh around the car
using Gmesh. The expected results would be something like what there is
on the screenshots A319_1 and A319_2.
Thank you for helping.
Eliam
_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh
--
Dr. Ir. Ruth V. Sabariego
University of Liege, Institut Montefiore,
Dept. of Electrical Engineering & Computer Science,
Applied & Computational Electromagnetics (ACE),
Sart Tilman Campus, Grande Traverse, 10 (B28), B-4000 LIEGE, Belgium
phone: +32-4-3663737 -- fax: +32-4-3662910 -- http://elap.montefiore.ulg.ac.be/
_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh
--
Dr. Ir. Ruth V. Sabariego
University of Liege, Institut Montefiore,
Dept. of Electrical Engineering & Computer Science,
Applied & Computational Electromagnetics (ACE),
Sart Tilman Campus, Grande Traverse, 10 (B28), B-4000 LIEGE, Belgium
phone: +32-4-3663737 -- fax: +32-4-3662910 -- http://elap.montefiore.ulg.ac.be/
|