ansys / pydpf-post

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

Entire mesh is fetched when initializing a Simulation object #421

Closed FedericoNegri closed 1 year ago

FedericoNegri commented 1 year ago

Before submitting the issue

Description of the bug

Initializing a Simulation object requires fetching the entire mesh because of Simulation._units["distance"] , see https://github.com/ansys/pydpf-post/blob/ea886a391276c5ff0743eb3162cc25536d4f6fc3/src/ansys/dpf/post/simulation.py#L86

For large models, this makes the initialization very slow.

Steps To Reproduce

from ansys.dpf import post

path = r"<path/to/large/model>"
simulation = post.load_simulation(path)

Which Operating System are you using?

Windows

Which DPF/Ansys version are you using?

Ansys 2024 R1

Which Python version are you using?

3.10

Installed packages

ansys-dpf-core @ git+https://git@github.com/ansys/pydpf-core.git ansys-dpf-post @ git+https://github.com/ansys/pydpf-post.git