VaMPy icon indicating copy to clipboard operation
VaMPy copied to clipboard

Bug in computing hemodynamic indicies

Open keiyamamo opened this issue 1 year ago • 2 comments

Same problem as https://github.com/KVSlab/VaSP/issues/157

keiyamamo avatar Apr 09 '24 19:04 keiyamamo

@keiyamamo Any updates on this? A fix for P1 elements would be of great interest!

hkjeldsberg avatar May 05 '24 23:05 hkjeldsberg

Hi @hkjeldsberg Fixing the problem of wall shear stress magnitude having negative value should be easy. You just need to replace tawss = project(inner(tau, tau) ** (1 / 2), U_b1) as follows.

https://github.com/KVSlab/VaSP/pull/160/files

This should work for P1 since we are just taking the magnitude of dofs instead of using project.

To me, the other problem is that VaSP and VaMPy produce different values. I tested VaSP implementation against analytical solution and it is integrated as pytest. Therefore, I’m pretty confident that the implantation in VaSP is correct, but I might be wrong. Additionally, the old (see below) and current implementation of wall shear stress seems different in VaMPy . Maybe they produce the same result anyway, but it is unclear why or how these changes are made.

Screenshot 2024-05-06 at 9 34 33

keiyamamo avatar May 06 '24 07:05 keiyamamo