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

Update Womersley.py #117

Merged
merged 4 commits into from
Aug 11, 2023
Merged

Update Womersley.py #117

merged 4 commits into from
Aug 11, 2023

Conversation

keiyamamo
Copy link
Collaborator

Hi @hkjeldsberg

We had a new implementation of make_womersley_bc in Womersley.py (@dbruneau-mie’s contribution), where users can directly give Fourier coefficients of the flow rate instead of computing Fourier coefficients based on the specific flow rates. This PR adds such a functionality into VaMPy since we are aiming to use as much functionality as possible from VaMPy.

In addition, there were a few variables that were passed inside the function, but not used (mesh, nu, tmp_area), so I removed them.

I tested the implementation with Artery.py with tiny artery for two cardiac cycles and compared hemodynamics. Since hemodynamics were identical, I assume this implementation should not affect any problem files in VaMPy but would be nice if you could also check.

Please let me know if you have any questions!

Best,
Kei

@hkjeldsberg
Copy link
Contributor

@keiyamamo Looks very good to me! The Womersley script is very outdated and definitely needs some updates. I also think the code contains a lot of commented out code which can be removed, but this can be a minor fix for another time.

Will merge this today 👍

@hkjeldsberg hkjeldsberg merged commit 91605ba into KVSlab:master Aug 11, 2023
3 checks passed
@keiyamamo
Copy link
Collaborator Author

Thanks for merging! I agree it would be nice to clean up the whole script. In general, it is a bit hard to understand what each variable represents and the role of each functions.

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

Successfully merging this pull request may close these issues.

2 participants