Closed stefsmeets closed 1 year ago
Dear @stefsmeets ,
Thank you for pointing out this issue. We believe the first two errors may be related to the issues we have experienced using the vmtkMeshWriter
in the past due to errors in parsing in binary mode versus text mode. We tried to add a hotfix for this issue in #108, which has been merged to the master branch.
The last error experienced in Artery.py
is likely caused by a defect in the volumetric mesh due to the segmentation fault above. I would recommend removing the .vtu
and .xml.gz
files, and see if re-meshing the geometry will help.
I hope this, and the changes made in PR #108 can help fix these issues.
Best regards, Henrik
Thanks, the first 2 errors are resolved with #108
I still get the third error, but maybe this is more of an oasis issue than a vampy issue?
I tried the work-around by updating the vmtk library, but this doesn't work either. Any other ideas?
If it helps, these are the commands I'm running from a clean repository:
vampy-mesh -i models/artery/artery.vtp -c 1.3
cd src/vampy/simulation
oasis NSfracStep problem=Artery mesh_path=../../../models/artery/artery.xml.gz save_solution_after_cycle=0
This gives the RuntimeError: gzip error: iostream error
error even if the vampy-mesh
command does not fail.
Actually, I still get the first 2 errors as well. I didn't realize the .vtu
/.xml.gz
files are cached. They are in the .gitignore
file so I didn't realize they were not part of the repo.
Hi @stefsmeets,
Thanks for your patience. I investigated this further and think I have found out what is causing the issues you're experiencing.
Through the latest pull request (#110), I believe your two first errors should be fixed. I successfully tested this update thoroughly for both the artery.vtp
model, and the c0001
model on a Linux (Ubuntu), and tested this for multiple Python versions, including 3.8, 3.9, and 3.10. Essentially the error is caused by some instability using the vtkvmtkTetGenWrapper
, which I realise have been previously reported. Hopefully, with the changes in PR #110, you should now be able to mesh both models.
As for the third error, I think it is related to the first two errors. However, if the latest update does not seem to fix this issue I would try the following steps:
artery.xml.gz/artery.vtu
file generated by the vampy-mesh
command is not corrupted or empty. One way to do this is to check that the artery.vtu
file is not hollow using a visualization tool such as Paraview. It should be a dense mesh full of tetrahedral cells. oasis
and vampy
.I hope this, and the recent changes to vampy
can help fix these issues.
Best regards, Henrik
Cool, everything seems to work as expected now! Thanks for the fix!
Hi, I'm trying out vampy for the JOSS review (https://github.com/openjournals/joss-reviews/issues/5278). These are some issues I run into with the examples in the documentation. This is on Linux using Python 3.9 with the development version of vampy. I'm not sure if I did something wrong with the installation. Two error seem to be related to 'tetgen' inside of dolfin, and the other with some gzip related error.
Artery tutorial fails on tetgen part:
The artery example also fails with tetgen.
Finally, I get this error when running the simulation example: