[Gmsh] terrain meshing with an stl file
Julien Hess
julien.hess.ch at gmail.com
Wed Mar 20 13:49:11 CET 2019
Hi Laurent,
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.
A work-around is to do that with freecad (see e.g. the attached
commands) and load the resulting STEP file in Gmsh.
Julien
On Wed, 20 Mar 2019 08:01:41, Christophe Geuzaine <cgeuzaine at uliege.be>
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
> On 19 Mar 2019, at 21:54, Laurent BRICTEUX<Laurent.BRICTEUX at umons.ac.be> 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
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
?
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190320/274a5ac7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freecad_cmds.py
Type: text/x-python
Size: 998 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190320/274a5ac7/attachment.py>
More information about the gmsh
mailing list