<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:0 0 0 .8ex;border-left:1px #ccc solid;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>