Example for GenBC

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Hadi Wiputra
Posts: 13
Joined: Sat Jul 07, 2018 11:32 pm

Example for GenBC

Post by Hadi Wiputra » Fri Sep 03, 2021 11:00 am

HI all,

I downloaded the sample for GenBC from: "https://simvascular.github.io/docsGenBC.html". I obtained two zipped filles: genbc_project and genbc_source, without file extension name. I tried opening as a project in simvascular but simvascular project only read folders. The files are also written in binary, returning gibberish when opened in notepad++. I wonder if there is another place to get an example for GenBC or maybe a way to read these files.

Thank you.

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

Re: Example for GenBC

Post by David Parker » Tue Sep 07, 2021 2:52 pm

Hi Hadi,

You can extract the .gz files using

Code: Select all

unzip GenBCTutorialExampleFiles-latest.zip 
This should give you the following files

Code: Select all

genbc_project.gz
genbc_source.gz
You can then do

Code: Select all

tar xvf genbc_project.gz
tar xvf genbc_source.gz
to get the GenBC_tutorial_project and sim_files directories.

Cheers,
Dave

User avatar
Hadi Wiputra
Posts: 13
Joined: Sat Jul 07, 2018 11:32 pm

Re: Example for GenBC

Post by Hadi Wiputra » Thu Sep 16, 2021 12:04 pm

Hi David,

Thank you for the reply, I've already extracted the .zip file and used tar to try to extract the .gz files, I got the following errors (as attached).

Regards,
Hadi
Attachments
Capture.PNG
Capture.PNG (61.88 KiB) Viewed 229 times

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

Re: Example for GenBC

Post by David Parker » Fri Sep 17, 2021 10:50 am

Hi Hadi,

Are you on a Linux machine? You may need to use tar -xvf or maybe even tar -zxvf.

Cheers,
Dave

User avatar
Hadi Wiputra
Posts: 13
Joined: Sat Jul 07, 2018 11:32 pm

Re: Example for GenBC

Post by Hadi Wiputra » Fri Sep 17, 2021 11:14 am

Hi Dave,

I am working on windows machine, using 7z to unpack all of those, but still cant open it. The resulting files have no file extension, so windows does not know what program to open it with. I tried using simvascular to open, to no avail, and notepad++ showed gibberish.

Therefore I followed your direction in linux virtual machine. I used the -xvf or -zxvf options and both returned the same error (Image attached).

Thank you for the help.

Regards,
Hadi
Attachments
Capture.PNG
Capture.PNG (81.06 KiB) Viewed 211 times

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

Re: Example for GenBC

Post by David Parker » Fri Sep 17, 2021 11:41 am

Hi Hadi,

I just brought up my own Linux VM and now I see the problem. The .gz files seem to be some sort of zip format so on Linux you need to use gunzip on them. Tar works OK on a Mac where I develop so I didn't see the problem. Sorry!

Cheers,
Dave

User avatar
Hadi Wiputra
Posts: 13
Joined: Sat Jul 07, 2018 11:32 pm

Re: Example for GenBC

Post by Hadi Wiputra » Fri Sep 17, 2021 3:02 pm

Hi David,

At the same time, I actually used my friend's mac to open the file, and it works now. Thank you!

Regards,
Hadi

POST REPLY