Menu

creating .unv mesh from gmsh

2017-05-17
2017-05-17
  • Devansh Gupta

    Devansh Gupta - 2017-05-17

    Hi,

    I am trying to create mesh from gmsh to use on MaxFEM and am encountering the below errors:

    1. The .unv file I create directly from gmsh is rejected by the Visualization in MaxFEM with the following error:"Unknown Format" followed by "errormsg: Error converting mesh to vtk. Not creating plot". Interestingly this error goes when I introduce a blank line in the first line of the .unv file generated by gmsh.
    2. But running the visualization with this modified .unv gives the following error: "self.nodes None". This makes me feel that at least the file is being read but something else is missing.

    Can you please throw some light on what this error about self.nodes is and whether it can be corrrected by making some changes in the .unv file? Or has it been generated by adding that new line in the original .unv file generated by gmsh.

    I know you have recommended SALOME for generating meshes, but I do not have access to visual studio to build it rightn now and wanted to see if I can do some workaround with gmsh.

    Thanks in anticipation.

    Devansh

     
    • Fran Pena

      Fran Pena - 2017-05-18

      Dear Devansh,

      GMSH is a bad idea to create UNV files for MaxFEM. The reason is that, in
      order to assign boundary conditions, some groups of elements (faces,
      edges,...) must be created in the UNV file to represent frontiers. MaxFEM
      expect those groups to be stored in dataset 2477. Instead, GMSH only
      creates groups of nodes, and in a different dataset. Node groups are not
      suitable when natural and essential boundary conditions are mixed. See more
      details in http://onelab.info/pipermail/gmsh/2009/004354.html

      For this reason, we did not tested MaxFEM with UNV files generated with
      GMSH.

      By other hand, I only have experience working with SALOME in Linux. If you
      need to build SALOME from source using Visual Studio, you could try the
      free version of Visual Studio,
      https://www.visualstudio.com/vs/visual-studio-express/

      Best regards,
      Francisco Pena

       

      Last edit: Fran Pena 2018-04-03
      • Fran Pena

        Fran Pena - 2017-05-18

        A small correction: MaxFEM expect the groups to be stored in dataset 2467.

         

        Last edit: Fran Pena 2018-04-03
  • Devansh Gupta

    Devansh Gupta - 2017-05-19

    Hello Francisca,

    Thank you for your detailed reply. I will find a way to work it out with Salome!

    Sincerely,
    Devansh

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.