[Gmsh] Exporting mesh without renumbering

Miguel Segade miguelrsegade at gmail.com
Sun Jul 14 23:28:24 CEST 2019


Thanks! I will open an issue in the Gitlab tracker.


On 7/14/19 11:02 PM, Christophe Geuzaine wrote:
>
>> On 5 Jul 2019, at 19:09, Miguel Rodriguez-Segade Alonso <miguelrsegade at gmail.com> 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
>> 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