Page 1 of 1

Pressure inlet condition

Posted: Mon Feb 25, 2019 1:49 am
by sitadrost
Hello all,

Is it possible in SimVascular to use a pressure waveform instead of a flow rate waveform as an inlet condition? I couldn't find anything on this in the documentation or on the forum.

Thanks in advance for your help,
Sita

Re: Pressure inlet condition

Posted: Tue Feb 26, 2019 11:34 am
by wgyang
Technically, you can prescribe a pressure waveform for an inlet using a GenBC boundary condition. The GenBC tutorial shows how to prescribe an RCR BC for an outlet by providing dp/dt=f(Q,R,C,Rd) at each time step. Similarly, you can prescribe a pre-defined pressure waveform by providing dp/dt at any time point t for the inlet. If dp/dt=0, a constant pressure is prescribed. I am providing an example for a constant pressure prescribed at the inlet of a cylinder.
https://www.dropbox.com/s/qqlehpi46fw0j ... ar.gz?dl=0

You can modify it to add a pressure waveform.

Apart from potentially increased computational cost and numerical instability (which might be insignificant), prescribing a pressure waveform doesn't necessarily make the flow satisfy your target values. So you still need extra work to adjust other parameters in order to match target pressures and flow. Just don't forget to check your resulting inflow data when the Nuemann BC (pre-defined pressure or a lumped parameter model defined pressure) is applied to the inlet. Sometimes the flow is not physiological. Generally speaking. I don't recommend doing that.

Re: Pressure inlet condition

Posted: Wed Feb 27, 2019 12:24 am
by sitadrost
Thanks a lot for this comprehensive explanation! I'll start with the example you provided and work from there, see if it gets me where I want to go.

Re: Pressure inlet condition

Posted: Tue Aug 23, 2022 10:57 am
by c0274
Hi Weiguang Yang,
Could you share again the cylinder example with the pressure prescribed at inlet ?
Thanks,
Alexandre

Re: Pressure inlet condition

Posted: Thu Sep 01, 2022 11:46 am
by c0274
Screenshot from 2022-09-01 15-45-45.png
Screenshot from 2022-09-01 15-45-45.png (57.88 KiB) Viewed 435 times