add generated initial conditions from ROM simulation to 3D simulation

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
yan qing
Posts: 32
Joined: Tue Dec 06, 2016 4:56 am

add generated initial conditions from ROM simulation to 3D simulation

Post by yan qing » Mon Apr 10, 2023 8:35 pm

Hello everyone,
I have ran the ROM simulation and converted the results using the 'Project results to volume mesh' .And I got a '.vtu' file, I want to set the 3D simulation initial conditons with the '.vtu' file.
However, I don't know how to use vtu file to generate the initial conditions of 3D simulation: restart file, is there a way to convert vtu file to restart file? Or how to set the initial conditions via simvascular using vtu files?


Thanks Yan

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

Re: add generated initial conditions from ROM simulation to 3D simulation

Post by David Parker » Tue Apr 11, 2023 11:43 am

Hi Yan,

The VTU file created from the ROM simulation can be used as an initial condition by selecting Basic Parameters / IC FIle under the Parameter column in the SV SV Simulation Tool panel. This will display a file browser use dto select the VTU file.
Screen Shot 2023-04-11 at 11.40.36 AM.png
Screen Shot 2023-04-11 at 11.40.36 AM.png (46.35 KiB) Viewed 359 times
Cheers,
Dave

User avatar
yan qing
Posts: 32
Joined: Tue Dec 06, 2016 4:56 am

Re: add generated initial conditions from ROM simulation to 3D simulation

Post by yan qing » Tue Apr 11, 2023 7:47 pm

Hi, Dave,

Thank you for your reply. I used the VTU file created from ROM simulation as the initial condition by selecting the basic parameters/IC file. However, I received an error:
Simulation job '' failed with an exit code of non zero -3.

As mentioned in the post viewtopicPhpbb.php?f=188&t=14040&p=40422&start=0&view=, I have attempted to use the svpre command line to convert the vtu file to a restart file,and I obtained a restart.0.1 file, which I used as input in the IC file and successfully ran.

This is my simulation, including the vtu and restart file:
https://drive.google.com/file/d/1GE276G ... share_link
I think IC files can only use restart files as input, not vtu files?

Thanks,
YAN

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

Re: add generated initial conditions from ROM simulation to 3D simulation

Post by David Parker » Mon Apr 17, 2023 10:01 am

Hi Yan,

The IC is indeed a svSOlver restart file. I selected a VTU file and SV accepted it so I thought it was OK, sorry to mislead you on that!

Cheers,
Dave

POST REPLY