> On 5 Jul 2019, at 19:09, Miguel Rodriguez-Segade Alonso 
> <[email protected]> wrote:
> 
> Hi
> 
> 
> I want to convert a mesh from .med format to nastran .bdf using gmsh. The 
> process works good, but the resulting mesh nodes are renumbered. Is there any 
> way to prevent this from happening?

No, currently the BDF exporter always re-indexes the nodes. Changing this 
behavior would entail replacing 

* _index by _num in MVertex::writeBDF()
* getVertexBDF(i)->getIndex() by getVertexBDF(i)->getNum() in 
MElement::writeBDF()

Now that the default Gmsh mesh format (MSH 4.1) does not use such a re-indexing 
scheme anymore, so it could make sense to change all the other formats to 
follow suit. You could maybe open an issue in our Gitlab tracker to  request 
this, so that we keep track of the issue?

> I tried the Mesh.Renumber  option but it didn't work,

This option governs the renumbering of nodes/elements when Gmsh generates 
meshes, not when saving them.

Christophe


> is there any other way, preferably that can be applied from the command line?
> 
> 
> Thanks
> 
> 
> _______________________________________________
> gmsh mailing list
> [email protected]
> 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
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to