How do i extract h5 results using DPF?

Options
mahmane
mahmane Member Posts: 6
First Comment
edited June 2023 in Structures

Hello Ansys developers:


I'am trying to extract some results from an h5 file to plot them using Python Result, but i couldn't found how to read the h5 file and extract my fields. is it even possible ?

Thank you in advance

Tagged:

Comments

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 804
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Options

    @AKD-Scripting-Team could someone help out please? Thanks

  • Pierre Thieffry
    Pierre Thieffry Member, Moderator, Employee Posts: 98
    First Anniversary Ansys Employee Solution Developer Community of Practice Member Photogenic
    Options

    @mahmane At a first glance, I would say you should use the field_factory function to create fields which you then use like any other field in DPF. Where does your h5 file come from? Do you already have a reader for it?

  • mahmane
    mahmane Member Posts: 6
    First Comment
    edited August 2023
    Options

    The h5 file mentioned is generated as a result of a study using an EF file from a Workbench analysis. I am using HDFview to read it.

  • mahmane
    mahmane Member Posts: 6
    First Comment
    Options

    it worked, Thank youu