Page 1 of 1

How are the flow files obtained in the clinical examples?

Posted: Thu Jul 11, 2019 1:33 pm
by justintso1199
Hi, I was wondering how the flow files for the inlet boundary conditions were obtained in your clinical examples (or the general standard for obtaining these flow files)? In addition, in your coronary normal clinical example, I see that the flow and pressure were graphed against time after the simulation was performed. The user guide doesn't go into how to create these graphs? Is it through Paraview, as I don't see a way to access the raw data produced by the simulation to create these graphs?

Re: How are the flow files obtained in the clinical examples?

Posted: Tue Jul 16, 2019 10:06 am
by wgyang
The inlet flow such as Figure 8: Aortic inflow waveform is usually obtained by PCMRI (phase contrast) that gives you flow rate vs time for a imaging plane. If you don't have your own measurements, you can obtain the inflow waveform data from some MRI studies. To plot pressure/flow vs time, you can use matlab or python or excel. Simvascular postsolver generates txt files for pressure/flow on each outlet/inlet based on the vtu/vtp files converted from restart.x files. (https://simvascular.github.io/docsFlowS ... ostprocess). Then, you can load them into matlab to get a plot shown in the example.

Re: How are the flow files obtained in the clinical examples?

Posted: Fri Jul 26, 2019 3:03 pm
by justintso1199
Hi, thank you for your help. I have access to PCMRI data, but how exactly do you convert this data into a .flow file? Alternatively, if I wanted to make a simple constant flow file like the one in the User Guide, how do I create this .flow file? Looking it up online, the only thing I've seen that can open or create .flow files is Expression Sketchflow. Is this the program being used, or is it something else? Thank you!

Re: How are the flow files obtained in the clinical examples?

Posted: Mon Jul 29, 2019 11:43 am
by wgyang
You can use some software to process the PCMRI data (usually in Dicom format) to obtain volumetric flow rate vs time. For example, http://medviso.com/segment/

Once you have time vs flow rate, you can copy and paste them into a text editor (e.g. vim or gedit) and save them as .flow file. Similarly, for constant inflow, just put two lines of data into the .flow file.

Re: How are the flow files obtained in the clinical examples?

Posted: Wed Sep 18, 2019 6:12 pm
by nsuriana
Hi Developers,

I see the all_results-flow file and I find some values to be negative. Is it the same convention as the inflow file, where we assume that negative means flow inside the model and positive means flow out of the model?

Please explain!

Thank you,
Nishanth