gmsh STL
Hi,
I want to generate a mesh around an object using gmsh. This object is defined using a STL file. My current geo file is organised as follow: 1/ importing the STL object; 2/ creating the bounding box around the object; 3/ physical surface definition. I've got different problems: - I don"t know how to link the surface of the object with the different surfaces of the box. Consequently, the generated mesh with gmsh is not taking into account the STL object. - How can determine the physical entities (surface and volume) ? The geo file is the following one: // -------------------------------------------------- // STL Object // -------------------------------------------------- // merge a surface mesh Merge "cone.stl"; // add a geometrical volume Surface Loop(1) = {1}; Volume(1) = {1}; // -------------------------------------------------- // Bounding Box // -------------------------------------------------- l = 1; xmin = -10; xmax = 10; ymin = -10; ymax = 10; zmin = -10; zmax = 10; Point(1000) = {xmin, ymin, zmin, l}; Point(1001) = {xmin, ymin, zmax, l}; Point(1010) = {xmin, ymax, zmin, l}; Point(1011) = {xmin, ymax, zmax, l}; Line(2001) = {1000, 1001}; Line(2002) = {1001, 1011}; Line(2003) = {1011, 1010}; Line(2004) = {1010, 1000}; Line Loop (2005) = {2001, 2002, 2003, 2004}; Plane Surface(10006) = {2005}; box[] = Extrude {(xmax-xmin), 0, 0}{ Surface{10006}; // Layers{1}; }; Delete { Volume{box[1]}; } // TODO // Volume(4000) = {?}; // -------------------------------------------------- // Physics // -------------------------------------------------- // Physical Surface("back") = {?}; // Physical Surface("front") = {?}; // Physical Surface("top") = {?}; // Physical Surface("bottom") = {?}; // Physical Surface("left") = {?}; // Physical Surface("right") = {?}; // Physical Surface("object") = {?}; // Physical Volume("internal") = {?}; |
Problem solved.
|
Hello David,
Could you please share with us as to how you solved this problem? Thanks, Albert |
Anyone else has any suggestions regarding generating meshes around STL objects with GMSH? Any examples would be helpful. Please?
Albert Quote:
|
All times are GMT -4. The time now is 07:57. |