<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<pre class="moz-quote-pre" wrap=""><div class="moz-txt-sig">Hi Laurent,</div><div class="moz-txt-sig">
</div><div class="moz-txt-sig">Indeed, if you could have your terrain surface as a topology in e.g. STEP format, you could then import it in Gmsh and use it to "slice" a box (using boolean operations through the OCC kernel). I have done it multiple times.</div><div class="moz-txt-sig">
</div><div class="moz-txt-sig">A work-around is to do that with freecad (see e.g. the attached commands) and load the resulting STEP file in Gmsh.</div><div class="moz-txt-sig">
</div><div class="moz-txt-sig">Julien
</div><div class="moz-txt-sig">
</div><div class="moz-txt-sig">
</div><div class="moz-txt-sig">On Wed, 20 Mar 2019 08:01:41, Christophe Geuzaine <a class="moz-txt-link-rfc2396E" href="mailto:cgeuzaine@uliege.be"><cgeuzaine@uliege.be></a> wrote:
Hi Laurent,
It's doable, but since you would need to connect this discrete surface with new CAD surfaces to build a volume, it would be easier if the input mesh had a topology, i.e. if you provided the surface + the bounding curves + points for the 4 corners.
Then new surfaces and a volume could be constructed, connected to these curves/points, and all the standard meshing algorithms could be used.
Christophe
</div></pre>
<blockquote type="cite" style="color: #000000;">
<pre class="moz-quote-pre" wrap="">On 19 Mar 2019, at 21:54, Laurent BRICTEUX <a class="moz-txt-link-rfc2396E" href="mailto:Laurent.BRICTEUX@umons.ac.be"><Laurent.BRICTEUX@umons.ac.be></a> wrote:
Dear all,
Is it possible to obtain a volume mesh starting from an stl terrain surface (see attachment)?
I would like to make a CFD mesh consisting in a volume box for which the bottom surface is a prescribed terrain.
The elements should be tets only.
Is there any example geo file that could help to solve my problem ?
Thank you for your help and the nice piece of soft.
Laurent
<AskerveinHill.stl.zip>_______________________________________________
gmsh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gmsh@onelab.info">gmsh@onelab.info</a>
<a class="moz-txt-link-freetext" href="http://onelab.info/mailman/listinfo/gmsh">http://onelab.info/mailman/listinfo/gmsh</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">?
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
<a class="moz-txt-link-freetext" href="http://www.montefiore.ulg.ac.be/~geuzaine">http://www.montefiore.ulg.ac.be/~geuzaine</a>
</pre>
</body>
</html>