Mechanical 2022R2 DPF VTK Export of Assembly & Plotting Parts.

Mike Rife
Mike Rife Member, Employee Posts: 51
Second Anniversary 10 Comments First Answer 5 Likes
✭✭✭✭

Can we add something to the Mechanical DPF "VTK Export" operation so that it is easy to plot individual parts if wanted. For example if we were using PyVista.

Tagged:

Answers

  • James Derrick
    James Derrick Administrator, Employee Posts: 283
    Ancient Membership 100 Comments 100 Likes 25 Answers
    admin

    excellent colormaps! :smiley:

  • Mike Rife
    Mike Rife Member, Employee Posts: 51
    Second Anniversary 10 Comments First Answer 5 Likes
    ✭✭✭✭

    Sorry I just realized that I left in a 'magic number' on lines 14 & 15 of the fist shown code snippet. Creating the size of the element field and looping over all the elements. The number 12237 can be replaced by len(mesh.Elements) .
    Mike

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 366
    25 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    @Mike Rife , can you comment about what VTK files are and how they are used? Can they be used in the ANSYS Viewer, in ppt files, html files etc…? Do they require any license or additional software to use?

  • Mike Rife
    Mike Rife Member, Employee Posts: 51
    Second Anniversary 10 Comments First Answer 5 Likes
    ✭✭✭✭

    @Mike.Thompson VTK is the Visualization Toolkit, an open source scientific data manipulation/visualization tool. It's cross platform and supports several different languages. PyVista is an open source streamlined interface to VTK for 3D plotting and mesh analysis. You can think of PyVista is to VTK as PyDPF Post is to PyDPF Core.

    PyVista is used by both PyMAPDL and PyDPF in interactive visualization of meshes and data.

    Do a search for VTK in the Ansys help...you might be surprised.