Creating "all_results-averages.txt" using command line in Ubuntu

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Maria Nicole Antonuccio
Posts: 19
Joined: Fri Nov 30, 2018 3:36 am

Creating "all_results-averages.txt" using command line in Ubuntu

Post by Maria Nicole Antonuccio » Wed Mar 20, 2019 11:02 am

Dear SimVascular community,

I would like to know if there is a command line (Linux Ubuntu 18.04.1) that allows me to create the file "all_results-averages.txt" using svpost.

Thank you for your valuable support.

Kind regards,
Maria Nicole

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

Re: Creating "all_results-averages.txt" using command line in Ubuntu

Post by David Parker » Wed Mar 20, 2019 12:38 pm

Hi Maria Nicole,

The file all_results-averages.txt is created by code in SimVascular, this functionality is not in svpost.

Cheers,
Dave

User avatar
Maria Nicole Antonuccio
Posts: 19
Joined: Fri Nov 30, 2018 3:36 am

Re: Creating "all_results-averages.txt" using command line in Ubuntu

Post by Maria Nicole Antonuccio » Wed Mar 20, 2019 2:16 pm

Dear Dave,

I am very grateful to you for your answer. Please, can you explain what I should do to get that file without using GUI?

Many thanks in advance,
Maria Nicole

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

Re: Creating "all_results-averages.txt" using command line in Ubuntu

Post by David Parker » Wed Mar 20, 2019 10:37 pm

Hi Maria Nicole,

I have created a program called create-flow-files that creates the all_results-averages.txt flow files you want from the command line.

You can download the program source using

git clone https://github.com/ktbolt/cardiovascular.git

The program is in the create-flow-files directory. There is a README.md that explains how to compile the program and how to use it. I also put an Ubuntu 18 executable in the create-flow-files/bin directory in case you have trouble building. You will still need to install VTK as explained in the README.

Cheers,
Dave

User avatar
Maria Nicole Antonuccio
Posts: 19
Joined: Fri Nov 30, 2018 3:36 am

Re: Creating "all_results-averages.txt" using command line in Ubuntu

Post by Maria Nicole Antonuccio » Thu Mar 21, 2019 4:13 am

Thank you, Dave! I really appreciated your effort in the helping with this matter.

I have installed SimVascular version 2019-01-27 from binaries (I did not compile it on my machine).
I would be tempted to install your program from binary as well (since it was built from the same Linux distribution as mine). Please, could you tell me in which directory I should place your executable. For example, should it be placed here: /usr/local/sv/simvascular/2019-01-27/bin?
If this does not work, do you think there will be an incompatibility between your compiled code "reate-flow-files" and my binaries from SimVascular?

Many thanks for your help.

Kind regards,
Maria Nicole

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

Re: Creating "all_results-averages.txt" using command line in Ubuntu

Post by David Parker » Thu Mar 21, 2019 10:10 am

Hi Maria Nicole,

The create-flow-files binary does not depend on SimVascular so you can put it anywhere. You can create a $HOME/bin directory and put it there and use it like $HOME/bin/create-flow-files or add $HOME/bin to your PATH environment variable in your .bashrc like this

export PATH=$PATH:$HOME/bin:

You will need to have VTK installed to run create-flow-files. You can install VTK like this

sudo apt-get install libvtk6-dev

Cheers,
Dave

User avatar
Maria Nicole Antonuccio
Posts: 19
Joined: Fri Nov 30, 2018 3:36 am

Re: Creating "all_results-averages.txt" using command line in Ubuntu

Post by Maria Nicole Antonuccio » Sat Mar 23, 2019 5:12 am

Dear Dave,

I followed your advice to run create-flow-file and this works fine. I appreciated your valuable support and I thank you a lot.

Kind regards,
Maria Nicole

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

Re: Creating "all_results-averages.txt" using command line in Ubuntu

Post by David Parker » Sat Mar 23, 2019 12:04 pm

Hi Maria Nicole,

Great that it works! I think this tool will be useful to other users.

Cheers,
Dave

POST REPLY