11 comments

[ 3.1 ms ] story [ 40.2 ms ] thread
BloodFlowTrixi.jl is a Julia package that implements one-dimensional (1D) and two-dimensional (2D) blood flow models for arterial circulation. These models are derived from the Navier-Stokes equations and focus on cardiovascular pathologies such as aneurysms and stenosis.
Of all the languages, it often seems like Julia has the coolest libraries. Great work!
In the same vein[1], there's actually a lumped parameter model of the cardiovascular system[2]. ie: there is an analogous electrical model for how our blood flows.

1. intended

2. https://en.wikipedia.org/wiki/Lumped_parameter_model_for_the...

Having good quality valves is how you die old. How come there is no source in the model?
You mean source term or source articles ? For source terms there actually is and you can add your own, for articles I used the ones from my PhD for now but once I add models for other people I will add their articles with it obviously
Yes for now i only added 2 models for 1D and 1 for 2D i plan to add some more : 1. Noslip + polynomial profile driven models 2. Other complex profile and pressure laws 3. Visco elastic case 4. Radius layered models 5. Obviously but the hardest full 3D FSI with wall model and/or immersed body methods (will need help on that one)
Good for brain hemodynamics?
Missing branching, however 2D model supports non-axisymetric aneurysm really well and you can give a parametrised curve to the visualisation in last release, give it a try. I will add examples for aneurysm and stenosis soon enough
If the author is reading...

Why specify compat in this manner? https://github.com/yolhan83/BloodFlowTrixi.jl/blob/03a78be28...

Normally you want to specify "up to which major version" or "up to which (major, minor) version" your lib is compatible with, while allowing that all minor or path respectively are automatically upgraded.

EDIT: To the person who said "Of all the languages, it often seems like Julia has the coolest libraries"

It's just a very good language for writing libraries. Which is a crazy thing to say, because you're think that being good for writing libraries is something that every language would want to get exactly right, but it appears not.

It's my first package and I had no idea how to properly write that aqua.jl helped a lot not making crazy decisions but I will change compact I just need to look at other packages exemples, also I just realised registrator bot updates make auto pr for those compact so no need for those ^ things, at first it was because Trixi is still in production and version comes up often
Thanks a lot for making this forum I hope people try the package and don't hesitate issuing and/or make PR for what they want to see inside it.