[Gmsh] Label Different Regions of Continuous Mesh, Geometry from .stp files

Christophe Geuzaine cgeuzaine at uliege.be
Wed May 1 09:40:35 CEST 2019



> On 1 May 2019, at 01:56, Justin Clough <justin.clough1 at gmail.com> wrote:
> 
> Hello, 
> 
> I need to create a FE mesh for a geometry made of multiple materials using Gmsh. The original geometry is from other software packages and is read into Gmsh via .stp files. Each stp file has one component of the larger assemble and will need its own material properties.
> 
> I'm currently able to read the components into Gmsh and label them with the `Physical Volume` syntax. The issue is that the surface mesh elements at the boundaries do not line up with one another; the elements in one component are not connected to the elements in another.
> 

You need to fuse the two surfaces: this can be achieved with the "fragment" operation - see attached file.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: two_materials_conformal.geo
Type: application/octet-stream
Size: 913 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190501/c7f41a45/attachment.geo>
-------------- next part --------------


Christophe

> I made a similar MWE to my problem (files attached). Here I'm trying to stack two unit cubes in the X direction. The first is made of copper, the second of tin. My question is: How would I create a single surface mesh at X=1 which is shared by the two volume meshes instead of two, independent, surface meshes? Further, how would I do this if the common surface is very organic in shape?
> 
> Thank you in advance for your help! Please let me know if I can provide any further information.
> 
> best,
> -Justin Clough
> <two_materials.geo><copper_box.stp><tin_box.stp>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

? 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine





More information about the gmsh mailing list