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

Consider numpy arrays for nodes and elements instead of lists with instantiated classes [optimizing] #17

Open
Krande opened this issue May 20, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Krande
Copy link
Owner

Krande commented May 20, 2021

The current implementation of storing nodes and elements in lists as instantiated classes (Elem and Node) seems highly inefficient.

Consider storing the information as numpy arrays or something similar to meshio implementation (or perhaps use the Mesh object from meshio directly if it allows for node and element numbering with gaps?).

Then the Elem and Node can be implemented as pointers to the numpy arrays only (i.e. only instantiated when the user interacts with nodes and elements in code elsewhere).

@Krande Krande added the enhancement New feature or request label May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant