Difference between input flow rate and result flow rate

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
HyeonWoo Park
Posts: 4
Joined: Tue Jun 27, 2023 10:17 pm

Difference between input flow rate and result flow rate

Post by HyeonWoo Park » Wed Oct 18, 2023 6:53 pm

I'm studying aortic blood flow through Simvascular.
To do this, an issue occurred in the flow rate during several tests through the cylinder model.
I'm aiming for the flow rate I entered to match exactly in the results as well.
However, I tested several flow conditions and found that the flow rate was different.
Is there a way to solve this? I'd appreciate your help.
Attachments
result flow.png
result flow.png (30.75 KiB) Viewed 901 times
input.png
input.png (16.58 KiB) Viewed 901 times

User avatar
David Parker
Posts: 1716
Joined: Tue Aug 23, 2005 2:43 pm

Re: Difference between input flow rate and result flow rate

Post by David Parker » Thu Oct 19, 2023 10:17 am

Hello,

Finite elements is a discrete approximation to a physical process, the finer the mesh the better the approximation. Try increasing the mesh density to get a better approximation.

Cheers,
Dave

User avatar
Vijay Vedula
Posts: 63
Joined: Mon Feb 09, 2015 1:27 pm

Re: Difference between input flow rate and result flow rate

Post by Vijay Vedula » Thu Oct 19, 2023 1:41 pm

You have a very steep rise and fall in the flow rates in your input file. The code uses Fourier modes internally to interpolate this prescribed flow rate at each time step. However, Fourier modes cannot capture such sharp gradients and will create a smoother profile, which is sometimes oscillatory. Increasing the number of Fourier modes will help, but it still cannot match such sharp gradients.

If you still want an exact match with the input profile, you may use General BC and prescribe the flow rate over the entire face (similar to a bct.dat file or an ASCII as described in https://github.com/SimVascular/svFSI/bl ... r.inp#L890). For General BC, the code uses linear interpolation in time and will be able to capture these sharp gradients.

-- Vijay

User avatar
HyeonWoo Park
Posts: 4
Joined: Tue Jun 27, 2023 10:17 pm

Re: Difference between input flow rate and result flow rate

Post by HyeonWoo Park » Thu Oct 19, 2023 5:11 pm

davep wrote:
Thu Oct 19, 2023 10:17 am
Hello,

Finite elements is a discrete approximation to a physical process, the finer the mesh the better the approximation. Try increasing the mesh density to get a better approximation.

Cheers,
Dave
I'll try. Thank you Dave

User avatar
HyeonWoo Park
Posts: 4
Joined: Tue Jun 27, 2023 10:17 pm

Re: Difference between input flow rate and result flow rate

Post by HyeonWoo Park » Thu Oct 19, 2023 5:15 pm

vvedula22 wrote:
Thu Oct 19, 2023 1:41 pm
You have a very steep rise and fall in the flow rates in your input file. The code uses Fourier modes internally to interpolate this prescribed flow rate at each time step. However, Fourier modes cannot capture such sharp gradients and will create a smoother profile, which is sometimes oscillatory. Increasing the number of Fourier modes will help, but it still cannot match such sharp gradients.

If you still want an exact match with the input profile, you may use General BC and prescribe the flow rate over the entire face (similar to a bct.dat file or an ASCII as described in https://github.com/SimVascular/svFSI/bl ... r.inp#L890). For General BC, the code uses linear interpolation in time and will be able to capture these sharp gradients.

-- Vijay
Vijay, thank you.
Then, would it be helpful to use the same method you suggested when there are many points in the waveform, such as the attachment file?
Attachments
flow rate_data.txt
(16.65 KiB) Downloaded 64 times

User avatar
Vijay Vedula
Posts: 63
Joined: Mon Feb 09, 2015 1:27 pm

Re: Difference between input flow rate and result flow rate

Post by Vijay Vedula » Fri Oct 20, 2023 12:06 am

In principle, yes. You can apply General BC even if you have many data points, but the input file size will be large. Unless there is some reason for you to apply the exact profile, you may create a smooth interpolant that is periodic, e.g., by using Fourier modes. This will also reduce the total number of points. Your current waveform still has sharp variations in the flow.
flow.png
flow.png (29.42 KiB) Viewed 797 times

POST REPLY