[Gmsh] Different mesh size for different volumes

jeremy theler jeremy at seamplex.com
Mon Aug 8 18:53:29 CEST 2016


Hi Bernd!


Gmsh can assign a characteristic mesh length to nodes. If from FreeCAD you
can identify the number of the nodes that surround the solids (or faces)
then you can assign them different lengths. For the heat sink example,
nodes 1-8 correspond to the outer box. So you can do:

Merge "heat_sink.brep";

For n In {1:8}
  Characteristic Length { n } = 50;
EndFor

For n In {9:97}
  Characteristic Length { n } = 5;
EndFor


Does that work for you?

--
jeremy


On Sat, Jul 30, 2016 at 1:41 PM Bernd Hahnebach <gmsh at b75.ch> wrote:

> I use CompSolids to make volume meshes which are glued together on
> faces. I was wondering if it is possible to use different mesh sizes
> for the solids (volumes) the CompSolid is made off. Find an brep
> example in an post on FreeCAD forum. Remove .txt
>
> http://forum.freecadweb.org/viewtopic.php?f=18&t=16750&p=132256#p132256
>
> cheers bernd
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>
[image: nodes.png]
[image: heat_sink.png]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160808/876d01fd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nodes.png
Type: image/png
Size: 21742 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160808/876d01fd/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: heat_sink.png
Type: image/png
Size: 73233 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160808/876d01fd/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: heat_sink.brep
Type: application/octet-stream
Size: 115162 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160808/876d01fd/attachment-0001.brep>


More information about the gmsh mailing list