Closed FedericoNegri closed 1 year ago
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
Simulation._units["distance"]
For large models, this makes the initialization very slow.
from ansys.dpf import post path = r"<path/to/large/model>" simulation = post.load_simulation(path)
Windows
Ansys 2024 R1
3.10
ansys-dpf-core @ git+https://git@github.com/ansys/pydpf-core.git ansys-dpf-post @ git+https://github.com/ansys/pydpf-post.git
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#L86For large models, this makes the initialization very slow.
Steps To Reproduce
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