<div dir="ltr"><div><div>Hi Ali,<br><br></div>Geometry definition and meshing are different processes, and Gmsh is rather a meshing tool. That said, it has quite reach tools for geometry definition. They are weaker than in mid-size CAD program though. So, if you have a more or less simple model - you can use Gmsh for both geometry definition and mesh building. For complex models one can use a third-party CAD software to define a geometry, and then use Gmsh only for meshing. That's why I supposed that the first model with spherical grains could be modelled in Gmsh, whereas the second one - with grains of complicated shapes - couldn't.<br>
<br></div>As for your second question - if you don't want to save the mesh inside the circles (but the mesh will be built), comment the line describing the corresponding volumes as "physical":<br><br><pre class="">
Physical Volume (t) = thehole ;<br><br></pre>If you don't want the mesh in the circles be even built, comment the line (as well as the previously mentioned one):<br><br><pre class="">Volume(thehole) = theloops[t] ;</pre>
<br><div><div><div><div><div><div class="gmail_extra">Best,<br></div><div class="gmail_extra">Mikhail<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 27, 2014 at 3:35 AM, Ali Nasab <span dir="ltr"><<a href="mailto:nrdpali@gmail.com" target="_blank">nrdpali@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif;color:rgb(11,83,148)">Hi Mikhail, <br><br>
</div><div style="font-family:verdana,sans-serif;color:rgb(11,83,148)">Thank you for following up my question. <br>

</div><div style="font-family:verdana,sans-serif;color:rgb(11,83,148)">I am a bit confused here. You mentioned that "Gmsh can build meshes for both cases". You, then stated that " For the second model - I honestly think that you'll not be able to define such a geometry in Gmsh". Can you please clarify about this sentence? Can I use Gmsh for the second case or not? <br>


</div><div style="font-family:verdana,sans-serif;color:rgb(11,83,148)">I am not sure which one is case 1 or 2. <br></div><div style="font-family:verdana,sans-serif;color:rgb(11,83,148)">

<br>The t5.geo is a good example. In this example, the mesh is created for all of the shapes. Now, can I exclude the circles from the mesh (no mesh inside the circles)?<br><br></div><div style="font-family:verdana,sans-serif;color:rgb(11,83,148)">


Regards,<br></div><div style="font-family:verdana,sans-serif;color:rgb(11,83,148)">Ali<br></div><div style="font-family:verdana,sans-serif;color:rgb(11,83,148)"><br><br></div><div class="gmail_extra"><div><div class="h5">


<br><br><div class="gmail_quote">On Sat, Jul 26, 2014 at 6:22 PM, Mikhail Artemyev <span dir="ltr"><<a href="mailto:artemiev.mikhail@gmail.com" target="_blank">artemiev.mikhail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div dir="ltr"><div><div>Hi Ali,<br><br></div>Gmsh can build meshes for both cases. For the first model you will be even able to define a geometry with Gmsh - look at t5.geo tutorial for example. For the second model - I honestly think that you'll not be able to define such a geometry in Gmsh, so you'll need to use some CAD tool (best of all - based on OpenCascade) and import the model from it into Gmsh in STEP or BRep format.<br>



<br></div><div>Best,<br>Mikhail<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<br>
<br>
??Dear Professor Geuzaine,<br>
<br>
?I am a research scientist collaborating with NJIT. We are planning to<br>
develop a code to conduct simulations of water flow in pore scale. The<br>
first figure below, represents the porous media. In this figure you can see<br>
the grain phase in red circles and the void space in white (and black)<br>
color.<br>
<br>
[image: Inline image 1]<br>
<br>
?<br>
?I need to be able to create the 3D mesh for 1) only the void space<br>
(ignoring the grain phase) and 2) both the grain phase and the void space<br>
like the image below (grain phase is in light blue and void space in<br>
green).  ?<br>
<br>
<br>
[image: Inline image 2]<br>
<br>
<br>
?Please let me know if Gmsh is suitable for our purpose.<br>
Please let me know if you need further clarifications.<br>
<br>
?Regards,?<br>
<br>
</blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><br></div></div><div class="">-- <br><div dir="ltr"><div><span style="font-family:verdana,sans-serif"><span style="background-color:rgb(255,255,255)"><font color="#073763">Ali 
Abdollahi-Nasab, PhD<br></font></span></span></div><span style="font-family:verdana,sans-serif"></span><div style="font-size:13px"><span style="font-family:verdana,sans-serif"><font style="background-color:rgb(255,255,255)" color="#073763">Center for Natural Resources Development and Protection</font></span></div>


<div><span style="font-family:verdana,sans-serif"><span style="font-size:13px;background-color:rgb(255,255,255)"><font color="#073763">Department of Civil and Environmental Engineering</font></span></span></div><div><span style="font-family:verdana,sans-serif"><font style="background-color:rgb(255,255,255)" color="#073763"><span style="font-size:13px">N</span><span style="font-size:13px">ewark College of Engineering</span></font></span></div>


<div style="font-size:13px"><div><span style="font-family:verdana,sans-serif"><font style="background-color:rgb(255,255,255)" color="#073763">The New Jersey Institute of Technology</font></span></div><div><span style="font-family:verdana,sans-serif"><font style="background-color:rgb(255,255,255)" color="#073763">323 MLK Blvd, Newark, NJ 07102</font></span></div>


</div><div style="font-size:13px"><font style="background-color:rgb(255,255,255)" color="#073763" face="verdana, sans-serif">Ph: <a href="tel:267-237-2302" value="+12672372302" target="_blank">267-237-2302</a></font></div>
<div style="font-size:13px"><font style="background-color:rgb(255,255,255)" color="#073763" face="verdana, sans-serif">Email: <a href="mailto:nrdpali@gmail.com" target="_blank">nrdpali@gmail.com</a></font></div>

<div style="font-size:13px"><a href="http://nrdp.njit.edu/" target="_blank"><font style="background-color:rgb(255,255,255)" color="#073763" face="verdana, sans-serif">http://nrdp.njit.edu</font></a></div></div>
</div></div></div>
</blockquote></div><br></div></div></div></div></div></div></div>