Using Externally Generated Centerlines in the 0D Simulator

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Ricardo Roopnarinesingh
Posts: 15
Joined: Fri Sep 17, 2021 9:56 am

Using Externally Generated Centerlines in the 0D Simulator

Post by Ricardo Roopnarinesingh » Mon Sep 11, 2023 12:33 pm

Hi,

I have a complex heart-to-brain arterial geometry that SimVascular is unable to generate a centerline for. Using a module in 3D slicer, I was able to extract the entire centerline for this arterial pathway. I ultimately want to use this centerline to complete 0D simulations for resistance boundary condition tuning. Is there anyway of importing this externally generated centerline back into SimVascular to then utilize the 0D simulator?

Thanks,

Ricardo Roopnarinesingh

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

Re: Using Externally Generated Centerlines in the 0D Simulator

Post by David Parker » Tue Sep 12, 2023 10:32 am

Hi Ricardo,

You can import the externally generated centerlines into SV by copying the file to your SV project's ROMSimulations directory centerlines.vtp file

Code: Select all

DemoProject/ROMSimulations/sim1:
centerlines.vtp		inlet_face_names.dat	model_surface.vtp
The tricky bit will be to convert the externally generated centerlines to the format that is used by SV that contains the following data arrays
Screen Shot 2023-09-12 at 10.24.27 AM.png
Screen Shot 2023-09-12 at 10.24.27 AM.png (95.76 KiB) Viewed 98 times
I think only the BranchId and BifurcationId data arrays are used to create the 0D/1D elements. The Python script that generates the 0D/1D elements is in https://github.com/SimVascular/SimVascu ... simulation.

Cheers,
Dave

POST REPLY