ansys / pydpf-post

Data Processing Framework - Post Processing Module
https://post.docs.pyansys.com
MIT License
43 stars 10 forks source link

Return Fields with time step values for transient simulations #237

Open GuillemBarroso opened 1 year ago

GuillemBarroso commented 1 year ago

Before submitting the issue

Description of the bug

The displacement for a transient simulation can be requested for all time steps as

from ansys.dpf.post import examples, load_simulation
simulation = load_simulation(examples.download_transient_result())
disp = simulation.displacement()
print(disp)

This was introduced in this PR.

And the information of the displacement is showed as: image

The times are shown as integers instead of the real time value as shown below:

image

Steps To Reproduce

Execute code above.

Which Operating System are you using?

Windows

Which Python version are you using?

3.10

Installed packages

N/A