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

KeyError: <ElementType.NSIDED: 'nsided'> and <ElementType.NSIDED: 'nfaced'> #35

Open
shangwenqiang opened this issue Apr 30, 2024 · 1 comment

Comments

@shangwenqiang
Copy link

Recently, I'm applying pyLowOrder Module to perfoming POD for a large dataset with Ensight Gold format. The ElementType in my data contains the 'nsided' and 'nfaced' types, however, the code can not recognize them. Is there any solution on that? Your response would be greatly appreciated.

@ArnauMiro
Copy link
Owner

Hello!

Our Ensight reader is legacy and very simple, we are based on the ensight-reader module on python (https://pypi.org/project/ensight-reader/). If they support your data then it can be adapted for pyLowOrder. In fact you can use ensight-reader to read your dataset and then directly call the POD.run with a numpy array containing the data on the points or cells, whatever you work with. Then you could store the output back to ensight for visualization. To adapt to vtkhdf you would need to know the conversion of nsided and nfaced to vtk.

If you can produce a working example for us in this way we can consider adding this functionality to the tool.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants