<div dir="ltr"><div class="gmail_default" style="font-size:small">thank you for your reply,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I have found an another way to import a brep file. However I can't understand how the characteristic sizes are applied. I want to apply a more dense mesh around the internal surfaces without the cost of a field command. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">However no matter how I apply the internal sizes I can't get a good mesh. Is there a way to achieve a more dense mesh by using characteristic commands only?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">kind regards</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Andrew tsiantis<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-03 0:38 GMT+03:00 Christophe Geuzaine <span dir="ltr"><<a href="mailto:cgeuzaine@ulg.ac.be" target="_blank">cgeuzaine@ulg.ac.be</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Andrew,<br>
<br>
Yes, I think that a combination of BooleanFragments and embedded surfaces should do what you want:<br>
<br>
SetFactory("OpenCASCADE");<br>
Block(1) = {-0, 0, 0, 1, 1, 1};<br>
// intersecting:<br>
Rectangle(7) = {0.4, 0.7, 0.2, 0.3, 0.3, 0};<br>
Rectangle(8) = {-0.2, 0.3, 0.5, 0.3, 0.3, 0};<br>
Rectangle(9) = {0.8, -0.2, 0.5, 0.3, 0.3, 0};<br>
BooleanFragments{ Volume{1}; Delete; }{ Surface{7:9}; Delete; }<br>
// fully inside<br>
Rectangle(30) = {0.3, 0.3, 0.5, 0.3, 0.3, 0};<br>
Surface {30} In Volume{1};<br>
<br>
Christophe<br>
<div><div class="h5"><br>
<br>
<br>
<br>
> On 2 May 2017, at 19:57, andrew <<a href="mailto:armitatz@gmail.com">armitatz@gmail.com</a>> wrote:<br>
><br>
><br>
> hi,<br>
><br>
> In Salome which uses the opencascade model there is a Boolean operation called partition. With this you can create a solid from two others but with a shared face. A usage of that is the creation of meshes with internal walls in it with zero thickness aka 'baffles'. Is there a procedure in gmsh that can give the same results given that it has implemented the same opencascade model? Obviously there is a way to have such results if you give the precise geometry but sometimes it is very difficult to cut geometries and it is easier if gmsh could do that.<br>
><br>
> Attached is an image of a mesh with internal baffles created with partitioning and the geometry that created it. I would prefer t if gmsh could do the meshing but I haven't found a way to load the geometry to gmsh from Salome.<br>
><br>
> kind regards<br>
><br>
> Andrew<br>
><br>
</div></div>> <crop1.jpg><crop2.jpg>________<wbr>______________________________<wbr>_________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br>
> <a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank" rel="noreferrer">http://onelab.info/mailman/<wbr>listinfo/gmsh</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science<br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank" rel="noreferrer">http://www.montefiore.ulg.ac.<wbr>be/~geuzaine</a><br>
<br>
Free software: <a href="http://gmsh.info" target="_blank" rel="noreferrer">http://gmsh.info</a> | <a href="http://getdp.info" target="_blank" rel="noreferrer">http://getdp.info</a> | <a href="http://onelab.info" target="_blank" rel="noreferrer">http://onelab.info</a><br>
<br>
</font></span></blockquote></div><br></div>