<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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).<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">What I’ve tried after having read the documentation (<a href="http://geuz.org/gmsh/doc/texinfo/gmsh.html#Specifying-mesh-element-sizes">http://geuz.org/gmsh/doc/texinfo/gmsh.html#Specifying-mesh-element-sizes</a>)
is to seed the regions which I want to be meshed finer with a grid of points as follows:
<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">Point(1)={x1,y1,z1,MaxSizeLocalRefined};<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">…<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">Point(N)={xN,yN,zN,MaxSizeLocalRefined};<o:p></o:p></span></p>
<p class="MsoNormal">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).)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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 (<a href="http://eidors3d.sourceforge.net/doc/eidors/models/place_elec_on_surf.html">http://eidors3d.sourceforge.net/doc/eidors/models/place_elec_on_surf.html</a>).
<o:p></o:p></p>
<p class="MsoNormal">--------start geo file------<o:p></o:p></p>
<p class="MsoNormal">Merge "thorax.stl";<o:p></o:p></p>
<p class="MsoNormal">Surface Loop(1) = {1};<o:p></o:p></p>
<p class="MsoNormal">Volume(1) = {1};<o:p></o:p></p>
<p class="MsoNormal">Physical Volume('object') = {1};<o:p></o:p></p>
<p class="MsoNormal">Mesh.Algorithm3D=4;<o:p></o:p></p>
<p class="MsoNormal">Mesh.OptimizeNetgen=1;<o:p></o:p></p>
<p class="MsoNormal">-------end geo file-------<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any suggestions of how to modify the above geo file to force a finer mesh in certain regions?<o:p></o:p></p>
<p class="MsoNormal"><br>
Thank you very much for your hints in advance!<o:p></o:p></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal">Fabian<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">PS: I’m running gmsh 2.8.5 on a Win64 machine<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>