[Gmsh] local mesh refinement of STL

BRAUN Fabian Fabian.BRAUN at csem.ch
Tue Aug 26 10:53:45 CEST 2014


Hi all,

I'm giving it another try...I am still looking for a solution to locally refine a mesh created from an STL 3D surface.

Since I am using the Netgen algorithm for meshing, I was wondering whether there is a possibility to pass a Netgen msz-File and accomplish the desired behavior in this way.

Else I'd just need a hint on how to include Points (defining local mesh size) into a Volume defined by a 3D surface loaded from an STL file (see my previous message).

Many thanks even for the slightest hint!
Best regards,
Fabian


From: gmsh [mailto:gmsh-bounces at ace20.montefiore.ulg.ac.be] On Behalf Of BRAUN Fabian
Sent: 28 July 2014 15:16
To: gmsh at geuz.org
Subject: [Gmsh] local mesh refinement of STL

Dear all,

For bio-impedance simulations I am creating a 3D volume mesh (of a human thorax) out of a 3D surface mesh from an STL file.

Now I would like my volume mesh to be finer in certain regions (e.g. aorta and heart regions have 10-fold finer mesh than the other elements).
What I've tried after having read the documentation (http://geuz.org/gmsh/doc/texinfo/gmsh.html#Specifying-mesh-element-sizes) is to seed the regions which I want to be meshed finer with a grid of points as follows:
Point(1)={x1,y1,z1,MaxSizeLocalRefined};
...
Point(N)={xN,yN,zN,MaxSizeLocalRefined};
However, I am unsure of how to embed these points into the volume of the STL mesh. (I guess they somehow need to be included into the Volume(1).)

Above there is the initial .geo file (without the point grid) which is automatically generated by the EIT EIDORS toolbox' function place_elec_on_surf.m (http://eidors3d.sourceforge.net/doc/eidors/models/place_elec_on_surf.html).
--------start geo file------
Merge "thorax.stl";
Surface Loop(1) = {1};
Volume(1) = {1};
Physical Volume('object') = {1};
Mesh.Algorithm3D=4;
Mesh.OptimizeNetgen=1;
-------end geo file-------

Any suggestions of how to modify the above geo file to force a finer mesh in certain regions?

Thank you very much for your hints in advance!
Best regards,
Fabian

PS: I'm running gmsh 2.8.5 on a Win64 machine

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140826/f5edf58d/attachment.html>