[Gmsh] refine existing mesh

Christophe Geuzaine cgeuzaine at uliege.be
Mon Feb 12 21:41:19 CET 2018



> On 12 Feb 2018, at 15:42, Juan E. Sanchez <juan.e.sanchez at gmail.com> wrote:
> 
> Hello,
> 
> Unfortunately, I do not have the geometrical description.  Is there a way to convert the mesh to a geometrical description?
> 

No ; we are working on a new implementation of our “reparametrization” algorithm, which will allow you to do some of this, but it’s not ready yet...


> Regards,
> 
> Juan
> 
> On 2/12/18 1:21 AM, Christophe Geuzaine wrote:
>>> On 10 Feb 2018, at 22:06, Juan E. Sanchez <juan.e.sanchez at gmail.com <mailto:juan.e.sanchez at gmail.com>> wrote:
>>> 
>>> Hello,
>>> 
>>> I have an existing msh file, and a pos file containing a background mesh.  Is there a script example showing how to use these files to create a refined mesh using the background field?
>>> 
>> Start from the geometrical description (not the mesh): this way Gmsh will be able to place the new vertices correctly, i.e. on the CAD
>> gmsh -3 test.geo -bgm test.pos
>> CG
>>> Using
>>> 
>>> gmsh -3 test.msh -bgm test.pos
>>> 
>>> results in a mesh where there is the same number of nodes and elements, but it appears that the physical entity number is lost:
>>> 
>>> last element in original file:
>>> 
>>> 36210 4 3 15 15 0 5786 5791 5792 5800
>>> 
>>> last element in new file:
>>> 
>>> 36210 4 2 0 15 2603 5822 2604 2605
>>> 
>>> Now all of the mesh elements belong to the same physical entity, 0.
>>> 
>>> If I perform a "refine by splitting" in the gui, the physical entity information is maintained:
>>> 
>>> 266256 4 2 15 15 42825 10009 41452 9710
>>> 
>>> The file is a 3d tetrahedral mesh, and it also contains triangular surfaces to impose boundary conditions.
>>> 
>>> Regards,
>>> 
>>> Juan
>>> 
>>> 
>>> _______________________________________________
>>> gmsh mailing list
>>> gmsh at onelab.info <mailto: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
>> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
> 
> 
> _______________________________________________
> 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

Free software: http://gmsh.info | http://getdp.info | http://onelab.info

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180212/4a506121/attachment.html>


More information about the gmsh mailing list