Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entire mesh is fetched when initializing a Simulation object #421

Closed
3 tasks done
FedericoNegri opened this issue Jun 19, 2023 · 0 comments · Fixed by #422
Closed
3 tasks done

Entire mesh is fetched when initializing a Simulation object #421

FedericoNegri opened this issue Jun 19, 2023 · 0 comments · Fixed by #422
Labels
bug Something isn't working

Comments

@FedericoNegri
Copy link
Contributor

Before submitting the issue

  • I have checked for Compatibility issues
  • I have searched among the existing issues
  • I am using a Python virtual environment

Description of the bug

Initializing a Simulation object requires fetching the entire mesh because of Simulation._units["distance"] , see

"distance": self._model.metadata.meshed_region.unit,

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://[email protected]/ansys/pydpf-core.git
ansys-dpf-post @ git+https://github.com/ansys/pydpf-post.git

@FedericoNegri FedericoNegri added the bug Something isn't working label Jun 19, 2023
@FedericoNegri FedericoNegri linked a pull request Jun 21, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant