Page 1 of 1
Creating "all_results-averages.txt" using command line in Ubuntu
Posted: Wed Mar 20, 2019 11:02 am
by mnicole
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
Re: Creating "all_results-averages.txt" using command line in Ubuntu
Posted: Wed Mar 20, 2019 12:38 pm
by davep
Hi Maria Nicole,
The file all_results-averages.txt is created by code in SimVascular, this functionality is not in svpost.
Cheers,
Dave
Re: Creating "all_results-averages.txt" using command line in Ubuntu
Posted: Wed Mar 20, 2019 2:16 pm
by mnicole
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
Re: Creating "all_results-averages.txt" using command line in Ubuntu
Posted: Wed Mar 20, 2019 10:37 pm
by davep
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
Re: Creating "all_results-averages.txt" using command line in Ubuntu
Posted: Thu Mar 21, 2019 4:13 am
by mnicole
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
Re: Creating "all_results-averages.txt" using command line in Ubuntu
Posted: Thu Mar 21, 2019 10:10 am
by davep
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
Re: Creating "all_results-averages.txt" using command line in Ubuntu
Posted: Sat Mar 23, 2019 5:12 am
by mnicole
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
Re: Creating "all_results-averages.txt" using command line in Ubuntu
Posted: Sat Mar 23, 2019 12:04 pm
by davep
Hi Maria Nicole,
Great that it works! I think this tool will be useful to other users.
Cheers,
Dave