[Gmsh] How to create single mesh with multiple bodies

李昊 lihao71862b at gmail.com
Tue Nov 12 13:14:34 CET 2019


Dear all,

I use Solidworks to sketch a 3D part as shown below. In this model, there
are 9 volumes.
[image: image.png]
Then I export ".step" and import into the gmsh.

Then I use Gmsh to generate 3D mesh as below:
[image: image.png]
Till now, everything looks good.

After that, I export ".mesh" to FreeFem for numerical simulation. Now
something strange happens:
I apply a force on the left side wall, and make the right side wall to be
fixed.
However, both rings does not have any displacement. That means the rings do
not take part in the computation.
[image: image.png]

Next, I used Boolean operation in Gmsh to merge all the nine volumes to be
a single volume
[image: image.png]
This time, the result seems reasonable:
[image: image.png]


*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.*
*Therefore, is there any way to create a single mesh with multiple bodies?*

The CAD model "auto_part_2.STEP" is attached.
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".

Please kindly check them.

Thanks very much!


Best regards,
Hao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20191112/ed524a97/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 153816 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20191112/ed524a97/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 335223 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20191112/ed524a97/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 143592 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20191112/ed524a97/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 27928 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20191112/ed524a97/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 114071 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20191112/ed524a97/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auto_part_2.STEP
Type: application/octet-stream
Size: 110054 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20191112/ed524a97/attachment-0001.STEP>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auto_part_2_1.mesh
Type: application/octet-stream
Size: 167592 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20191112/ed524a97/attachment-0002.mesh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auto_part_2.mesh
Type: application/octet-stream
Size: 175574 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20191112/ed524a97/attachment-0003.mesh>


More information about the gmsh mailing list