Import Mesh from Ansys

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mfarnham
    Junior Member
    • Aug 2016
    • 14

    Import Mesh from Ansys

    Hello,

    I was wondering if it is possible to import mesh geometry from ANSYS into PreView. According to the User Manual this should be possible, but when I try to import the files into PreView I get an error message that there are zero nodes. What format should I export from ANSYS in order to successfully import into PreView?

    Thanks,
    Margot
  • maas
    Lead Code Developer
    • Nov 2007
    • 3400

    #2
    Hi Margot,

    Our Ansys importer currently only supports the NBLOCK and EBLOCK keywords. If one of these aren't there, then that's probably why you are getting the error.

    I can look into expanding our Ansys support if you send me a small example file, but please note that we are limited to mesh definitions only. We cannot support CAD geometry.

    Cheers,

    Steve
    Department of Bioengineering, University of Utah
    Scientific Computing and Imaging institute, University of Utah

    Comment

    • mfarnham
      Junior Member
      • Aug 2016
      • 14

      #3
      I guess I'm not sure how the Ansys text file should be formatted...when I try to import the entire file I get error "no nodal data defined". When I edit the text file and delete all but the actual nodes and NBLOCK command, I get "error reading NBLOCK".

      Here is what the beginning of the file looks like:

      !
      ! File created at Fri Nov 11 12:31:30 2016
      !
      ! This template extracts the FEModeler mesh in a format
      ! compatible with Mechanical APDL input.
      !
      /PREP7
      SHPP,OFF
      /NOPR
      !
      ! COORDINATE SYSTEMS
      !
      !
      ! MATERIAL PROPERTIES
      !
      !
      ! PHYSICAL PROPERTIES
      !
      !
      ! ELEMENT TYPES
      !
      /com, Element Types <SECTION=ELEMENTTYPES>
      et,1,MESH200
      keyopt,1,1,10
      !
      ! NODES
      !
      nblock,3
      (1i9,3e21.13e3)
      1 0.0000000000000E+000 1.8500000000000E+001 1.0000000000000E+000
      2 0.0000000000000E+000 1.8500000000000E+001 0.0000000000000E+000



      Do you know why this isn't importing? My actual file was too big to attach here, let me know if you need more info.

      Comment

      • maas
        Lead Code Developer
        • Nov 2007
        • 3400

        #4
        Hi,

        It looks like PreView is expecting keywords in all caps. Try changing it to NBLOCK and see if that works (same with the EBLOCK keyword). If that does it, I'll fix it for further versions and make the ansys file parser case insensitive. If not, I'll need to see the actual file or at least a file that allows me to reproduce the issue on my end. If the file is too big to attach, feel free to email it to me directly.

        Cheers,

        Steve
        Department of Bioengineering, University of Utah
        Scientific Computing and Imaging institute, University of Utah

        Comment

        • mfarnham
          Junior Member
          • Aug 2016
          • 14

          #5
          Hello again Steve,

          I tried changing the keywords to be in all caps, unfortunately that did not work. I'll email you my file directly.

          Best,
          Margot

          Comment

          Working...
          X
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎