<div dir="ltr">Dear Prof. Geuzaine,<div><br></div><div>Thanks so much for your reply! I tried to use "fragment". And it does work, now the results look reasonable:</div><div><div><img src="cid:ii_k2vv7xlg0" alt="image.png" width="498" height="434" class="gmail-CToWUd gmail-a6T" tabindex="0" style="cursor: pointer; outline: 0px;"><br></div></div><div><br></div><div>The multiple bodies have remained as well:</div><div><div><img src="cid:ii_k2vv96lr1" alt="image.png" width="535" height="425" class="gmail-CToWUd gmail-a6T" tabindex="0" style="cursor: pointer; outline: 0px;"><br></div></div><span class="gmail-im" style="color:rgb(80,0,80)"><div><br></div><div>Thanks very much!</div><div><br></div><div>Best regards,</div><div>Hao</div></span><div>-------------------------------</div><div>Kyoto University</div><div>Department of Mechanical Engineering</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Christophe Geuzaine <<a href="mailto:cgeuzaine@uliege.be">cgeuzaine@uliege.be</a>> 于2019年11月12日周二 下午9:39写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 12 Nov 2019, at 13:14, 李昊 <<a href="mailto:lihao71862b@gmail.com" target="_blank">lihao71862b@gmail.com</a>> wrote:<br>
> <br>
> Dear all,<br>
> <br>
> I use Solidworks to sketch a 3D part as shown below. In this model, there are 9 volumes.<br>
> <image.png><br>
> Then I export ".step" and import into the gmsh.<br>
> <br>
> Then I use Gmsh to generate 3D mesh as below:<br>
> <image.png><br>
> Till now, everything looks good.<br>
> <br>
> After that, I export ".mesh" to FreeFem for numerical simulation. Now something strange happens:<br>
> I apply a force on the left side wall, and make the right side wall to be fixed.<br>
> However, both rings does not have any displacement. That means the rings do not take part in the computation.<br>
> <image.png><br>
> <br>
> Next, I used Boolean operation in Gmsh to merge all the nine volumes to be a single volume<br>
> <image.png><br>
> This time, the result seems reasonable:<br>
> <image.png><br>
> <br>
> <br>
> Please note that we hope to maintain the multiple bodies rather than a single body. Because we need to apply different physical properties for each domain.<br>
> Therefore, is there any way to create a single mesh with multiple bodies?<br>
> <br>
<br>
Yes, use BooleanFragments instead of BooleanUnion: it will preserve the internal boundaries.<br>
<br>
Christophe<br>
<br>
<br>
<br>
> The CAD model "auto_part_2.STEP" is attached.<br>
> Both meshes are uploaded as well. The multiple volume one is named as "auto_part_2.mesh". The single volume one is names as "auto_part_2_1.mesh".<br>
> <br>
> Please kindly check them.<br>
> <br>
> Thanks very much!<br>
> <br>
> <br>
> Best regards,<br>
> Hao<br>
> <br>
> <auto_part_2.STEP><auto_part_2_1.mesh><auto_part_2.mesh>_______________________________________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
> <a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<br>
— <br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science <br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" rel="noreferrer" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
<br>
<br>
</blockquote></div>