Page 1 of 1

Using Externally Generated Centerlines in the 0D Simulator

Posted: Mon Sep 11, 2023 12:33 pm
by riro3277
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

Re: Using Externally Generated Centerlines in the 0D Simulator

Posted: Tue Sep 12, 2023 10:32 am
by davep
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 100 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