Mass conservation

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Sita Drost
Posts: 18
Joined: Thu Jan 24, 2019 5:42 am

Mass conservation

Post by Sita Drost » Fri Feb 08, 2019 11:33 am

Hello all,

After running the Coronary Normal demo project, I noticed that the flow rates in all_results-flows.txt and all_results-averages.txt don't add up to zero. There's a net flow rate of a few ml/s, which is only about 1% of the flow rate in the aorta, but it's considerable compared to the flow rates in the coronary arteries. Is there a solver setting that I should set to a more strict value to avoid this?

Thanks!
Sita

User avatar
Sita Drost
Posts: 18
Joined: Thu Jan 24, 2019 5:42 am

Re: Mass conservation

Post by Sita Drost » Mon Feb 11, 2019 11:17 am

In the meantime I've been experimenting with this Residual Criteria parameter, which does seem to help improving mass conservation. I was wondering, how is the residual norm defined here? And apart from reducing the value of Residual Criteria, would it also help to increase those Maximum Number of Iterations parameters (under linear solver options)? And/or are there other useful settings to tune? I've gone through the Simulation Guide and the SimVascular paper by Updegrove et al. (2017), but I'm not very familiar with the details of the solver.

Thanks!
Sita

User avatar
Weiguang Yang
Posts: 110
Joined: Mon Apr 07, 2008 2:17 pm

Re: Mass conservation

Post by Weiguang Yang » Mon Feb 11, 2019 5:04 pm

Generally, there are two things you can try.
1. You can consider reducing your mesh size for the coronary artery to improve mass conservation.
2. If I remember correctly, the solver adds the squares of continuity and momentum residuals for each node and then calculates the root of mean squared residual. This value is printed in the third column of histor.dat. If your residual is low, you should expect to see good mass conservation. You can increase the number of nonlinear iterations in order to reduce the residual. In solver.inp, "Step Construction : 0 1 0 1 0 1" corresponds to 3 iterations per timesteps. Just adding additional pairs of 0 1 to increase the number of iterations at each time step.

User avatar
Sita Drost
Posts: 18
Joined: Thu Jan 24, 2019 5:42 am

Re: Mass conservation

Post by Sita Drost » Mon Feb 11, 2019 11:15 pm

Thanks a lot, that's really helpful!
Sita

POST REPLY