[Gmsh] terrain meshing with an sth file

Christophe Geuzaine cgeuzaine at uliege.be
Fri Apr 5 20:15:45 CEST 2019



> On 20 Mar 2019, at 08:01, 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.
> 

I've played a bit with your file and you can actually do all of this directly with the Gmsh api (here in Python):

-------------- next part --------------
A non-text attachment was scrubbed...
Name: laurent.py
Type: text/x-python-script
Size: 3554 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190405/e8b386e9/attachment.py>
-------------- next part --------------


Christophe


> 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
> 
> 
> 
> 
> _______________________________________________
> 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





More information about the gmsh mailing list