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

Options
Mike Rife
Mike Rife Member, Employee Posts: 35
First Answer 5 Likes First Anniversary First Comment

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: 248
    First Anniversary Solution Developer Community of Practice Member Ansys Employee 5 Up Votes
    admin
    Options

    excellent colormaps! :smiley:

  • Mike Rife
    Mike Rife Member, Employee Posts: 35
    First Answer 5 Likes First Anniversary First Comment
    Options

    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: 280
    First Anniversary First Comment 5 Likes Ansys Employee
    Options

    @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: 35
    First Answer 5 Likes First Anniversary First Comment
    Options

    @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.