open-lasso-python / lasso-python

Home of the open-source CAE library lasso-python 🐍
BSD 3-Clause "New" or "Revised" License
50 stars 12 forks source link

Unable to load some of the D3plot due to Invalid header entry ndim #52

Open mystic-comets opened 2 months ago

mystic-comets commented 2 months ago

Raise RuntimeError(f"Invalid header entry ndim: {self.raw_header['ndim']}") RuntimeError: Invalid header entry ndim: 7653631721478

ballaln commented 2 months ago

Could you give a bit more information about in which line the issue was raised, and what you mean by 'some' of the D3plot? Anything that could help reproduce the issue. I use the library regularly and haven't found any similar issues, so these would help.

mystic-comets commented 2 months ago

Run2.zip i want to extract data above d3plot file. but it shows run time error

codie3611 commented 2 months ago

Thanks for providing a file, that is great. I unfortunately won't be able to attend this issue soon. So either stay patient, try to fix it yourself or someone else here can jump in.

mystic-comets commented 2 months ago

image it unable to convert binary format to ascii format so it shows error for ndim (values are high),

ballaln commented 2 months ago

You might be right. It appears that there might be a conversion error occurring within the '_read_file_buffer' function. According to both the LS-DYNA documentation and the Lasso code snippet, the variable 'ndim' should hold a value of either 2 or 3, depending on the dimensionality of the data. In this specific case, it should have been 3. I am not sure if I could help you out on this.

image

mystic-comets commented 2 months ago

I attempted to view the data in LS-PrePost and HyperView, where it successfully opened and I could access the data. However, I encountered an issue with the Lasso library as I couldn't extract the data from it. Can you assist in resolving this problem?