INSIGNEO / openBF

1D blood flow model
https://INSIGNEO.github.io/openBF
Other
28 stars 16 forks source link

Steady state #8

Open alemelis opened 6 years ago

alemelis commented 6 years ago

Write a tutorial for steady state simulations

DeepaMahm commented 4 years ago

Hi @alemelis I'm interested in performing a steady-state simulation using OpenBF. Could you please let me know if the tutorial for steady-state simulation is available?

alemelis commented 4 years ago

Hi @DeepaMahm

I haven't wrote a tutorial (yet..) but it very simple. In short, just create an inlet file as following

0.0 1e-8
0.5 1e-6
1.0 1e-4
10.0 1e-4

this is a simple piecewise function which uses the first second of the simulation to get from a very small flow (1e-8 ml/s) to the nominal steady state flow (1e-4 ml/s). Then you can set the cardiac period to 10 seconds in the config.yaml and run for a single cycle. This effectively fakes a steady state simulation and your result will be represented by the last time step in the entire simulation.

Hope this helps!

DeepaMahm commented 4 years ago

Hi @alemelis

Thanks a lot! I will give this a try.