We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
LS Dyna

LS Dyna

Topics related to LS-DYNA, Autodyn, Explicit STR and more.

Load matsum file in Ansys DPF Python

    • anhtung.ho
      Subscriber

      Hello, after I run LS-run to obtain d3plot and matsum files. How can I take data like part's acceleration and HIC15 from matsum file using ansys.dpf.core? Could you please give me an example code? Thank you so much. 

    • mrife
      Ansys Employee

      Hi @anhtung.ho

      PyDPF supports the d3plot and binout files for reading; you could write the matsum data to the binout file and access it there.  The LS-Dyna example on the PyDPF Core documentation site has an example of accessing that data from the binout file (about half way down the page): https://dpf.docs.pyansys.com/version/stable/examples/14-lsdyna/00-lsdyna_operators.html#sphx-glr-examples-14-lsdyna-00-lsdyna-operators-py

      The matsum file itself is an ascii file so you could open it via Python and parse out the necessary data.  You can pose scripting questions here, https://discuss.ansys.com/ , though normally for Ansys product scripting questions.  But you may find someone to discuss this with there.  Or you can pose this to the PyDPF GitHub Discussion site here https://github.com/ansys/pydpf-core/discussions

      Mike

       

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.