[Gmsh] meshing circular inclusions with desired element size

Nguyen Vinh Phu nvinhphu at gmail.com
Fri Jul 24 11:58:52 CEST 2015


A non-text attachment was scrubbed...
Name: generateRVE.m
Type: application/octet-stream
Size: 4170 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150724/178a6e67/attachment.m>
-------------- next part --------------


Hi Saber,

Please find attached a Matlab script for what you need. 
It reads a *.dat file with three columns, x,y and radius of every inclusions and write a gmsh geo file. I used it to generate that you might have seen.

Best regards,
Phu


> On 24 Jul 2015, at 7:23 pm, Saber Ayoub Chelaghma <saber.chelaghma at gmail.com> wrote:
> 
> Hi,
> 
> I'am trying to mesh a geometry like this : a square with circles inside, but i have much more circles (500-2000). How can i create a geometry with this important number of circles (I have the coordinates of their centers and their radius in a .txt file from python). How can i import data in gmsh to create a geometry, and how can i automatise this.
> 
> Regards