<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Esteban,<br><br>Ok. In this case, you need to comment lines 38 and 39 of the code. With that, the surface of the sphere will be draw, but it will not be considered as a volume. So, you will get an box with a hole with the shape of a sphere, as you desire.<br><br>What do you mean by corrupted? Aren't you achieving the mesh yet? If this is the case, change the parameters of the point size. If you increase them, the elements will be larger and it is likely that you will get a mesh.<br><br>In respect of the problem that you are facing in the Ubuntu, I've got no idea how to fix it. May be if you uninstall it and install the new version it could work. You could also try to compile the source code directly. However, before trying to reinstall, try this to generate the mesh: gmsh name_of_input_file.geo -3 -optimize -o name_of_output_file.msh<br><br>If you get in troubles, set the output of the gmsh with that command.<br><br>Hugo<br><br><div><hr id="stopSpelling">Date: Wed, 24 Sep 2014 23:08:00 -0500<br>Subject: Re: [Gmsh] Problem meshing a sphere. gmsh crash meshing or not recognize the volume.<br>From: vb.esteban@gmail.com<br>To: hugomaiamilan@hotmail.com; gmsh-request@geuz.org; gmsh@geuz.org<br><br><div dir="ltr">Hi Hugo.<div><br></div><div>Well, what I'm trying to find is something like the file attached, where the flow goes around an element. Is what your code do too? If you note, the submarine volume is empty, and the all mesh is located around the submarine. </div><div><br></div><div>The gmsh file of that case is corrupted so it's impossible to see, that's the reason what I'm confuse.</div><div><br></div><div>Thanks for the patient and the answers.</div><div><br></div><div>Best regards, and thankyou again!</div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">2014-09-24 7:00 GMT-05:00 Hugo Fernando Maia Milan <span dir="ltr"><<a href="mailto:hugomaiamilan@hotmail.com" target="_blank">hugomaiamilan@hotmail.com</a>></span>:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Hi,<br><br>I didn't unterstand your question. What do you mean by "volume of the sphere without mesh"? If you are simply using my code, you can get the volume by the radius in the file. As you can see in the code, "raio" is the radius of the sphere.<span class="ecxHOEnZb"><font color="#888888"><br><br>Hugo<br></font></span><div class="ecxhm ecxHOEnZb"><br></div><div><div class="ecxhm ecxHOEnZb"><hr>Date: Tue, 23 Sep 2014 23:32:43 -0500<br>Subject: Re: [Gmsh] Problem meshing a sphere. gmsh crash meshing or not recognize the volume.<br>From: <a href="mailto:vb.esteban@gmail.com" target="_blank">vb.esteban@gmail.com</a><br>To: <a href="mailto:hugomaiamilan@hotmail.com" target="_blank">hugomaiamilan@hotmail.com</a><br>CC: <a href="mailto:gmsh-request@geuz.org" target="_blank">gmsh-request@geuz.org</a>; <a href="mailto:gmsh@geuz.org" target="_blank">gmsh@geuz.org</a></div><div><div class="h5"><br><br><div dir="ltr">Thanks hugo. <div><br></div><div>That works nice and finally can get the mesh.</div><div><br></div><div>But, how do I proceed to get the volume of the sphere with no mesh? It's possible? </div></div><div><br><div>2014-09-23 8:00 GMT-05:00 Hugo Fernando Maia Milan <span dir="ltr"><<a href="mailto:hugomaiamilan@hotmail.com" target="_blank">hugomaiamilan@hotmail.com</a>></span>:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Hi,<br><br>It looks that the size of the point that you defined are very small compared to the size of the object. I had created a new file, check it in the attached.<br><br>In this file, you can specify the radius of the sphere and the lengths of the rectangle. Pay attention in the size of the points because they are critical in regard of the size of your elements (and the mesh, consequently).<br><br>If it is too slow or you can't create the mesh, just increase the values of lc and lesfera in the file.<br><br>Hugo.<br><br><div><hr>Date: Mon, 22 Sep 2014 10:28:20 -0500<br>From: <a href="mailto:vb.esteban@gmail.com" target="_blank">vb.esteban@gmail.com</a><br>To: <a href="mailto:gmsh-request@geuz.org" target="_blank">gmsh-request@geuz.org</a>; <a href="mailto:gmsh@geuz.org" target="_blank">gmsh@geuz.org</a><br>Subject: [Gmsh] Problem meshing a sphere. gmsh crash meshing or not recognize the volume.<div><div><br><br><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi.<br><br></div>I'm a new user of gmsh, I have developed some tutorials in it, but now i have several problemas.<br><br></div>I'm trying to simulate the flow around a sphere, the main goal is calculate the drag force and drag coefficient in OpenFOAM. However, I'm having a lot of problems creating the mesh, I've made two process to generate the mesh with no success at all.<br><br></div>First way.<br></div>1. I generate a CAD model in solidEDGE, in that model I draw a solid volume with the hole of the sphere (boolean operation). The volume represent the all fluid.<br></div>2. I export the CAD Model into step, stl and igs files.<br></div>3. In gmsh, merge the step model.<br></div>4. gmsh show the surfaces, points and volumes rigth (gmsh show the walls in gray solid color).<br></div>5. Define the physical groups, surfaces with no problem.<br></div>6. When I try to select the volume in physical group is just impossible.<br><br></div>Second Way<br></div>As the geometry is a bit simple, I decided to draw the sphere and the box in which its embeded in gmsh.<br><br></div>1. I draw some points to define the sphere.<br></div>2. Create circle arc to define the sphere.<br></div>3. With those circle arcs created I defined ruled surface in the sphere.<br></div>4. Then Create the box around the sphere.<br></div>5. The surfaces in physical groups are defined normally, but I created a surface call sphere, in which I select the all ruled surfaces created on the sphere.<br></div>6. Select the volume in the physical groups (WHEN I DEFINED THE PHYSICAL GROUPS I'VE ALREADY DEFINED THE VOLUME AND SURFACES IN ELEMENTARY ENTITIES)<br></div>7. Then, with everything O.K. I try to create the mesh, but the program just crash, and close.<br><br></div>I have a problem to open gmsh to, everytime I try to open it I have to write in the console (Ubuntu) this: gmsh primary.geo -tol 1e-9<br><br></div>I attach the geo file.<br><br></div>Thanks! I really appreciate any comment about it.<br><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br></div><div>spheredesarrollada.geo is the second way file generated.<br></div><div>sphereNueva.geo is the first way file<br></div><div>-- <br><div dir="ltr">Esteban Vargas Bolívar<div>Metálicas Léguz S.A.</div><div>Tel.: <a target="_blank">(4)5203600 Ext. 103</a></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br></div></div>_______________________________________________
gmsh mailing list
<a href="mailto:gmsh@geuz.org" target="_blank">gmsh@geuz.org</a>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a></div> </div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Esteban Vargas Bolívar<div>Metálicas Léguz S.A.</div><div>Tel.: <a target="_blank">(4)5203600 Ext. 103</a></div></div>
</div></div></div></div> </div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Esteban Vargas Bolívar<div>Metálicas Léguz S.A.</div><div>Tel.: (4)5203600 Ext. 103</div></div>
</div></div> </div></body>
</html>