Mapping of results onto different mesh

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Sita Drost
Posts: 18
Joined: Thu Jan 24, 2019 5:42 am

Mapping of results onto different mesh

Post by Sita Drost » Thu Jan 31, 2019 5:05 am

Hello all,

Would it be possible in SimVascular to map simulation results onto a slightly different mesh, e.g. same geometry, different mesh size, or slightly different geometry with similar mesh size? Something like the mapFields utility in OpenFOAM?

Many thanks!
Sita

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

Re: Mapping of results onto different mesh

Post by David Parker » Thu Jan 31, 2019 5:04 pm

Hi Sita,

This functionality to map simulation results onto another mesh is currently not supported in SimVascular. You might could do this in Paraview Resample with Dataset or using VTK directly, VtkProbeFilter can interpolate cell data to sample points.

Cheers,
Dave

User avatar
Sita Drost
Posts: 18
Joined: Thu Jan 24, 2019 5:42 am

Re: Mapping of results onto different mesh

Post by Sita Drost » Fri Feb 01, 2019 12:12 am

Hi Dave,

Great, thanks, I'll give that a try!

Sita

User avatar
Sita Drost
Posts: 18
Joined: Thu Jan 24, 2019 5:42 am

Re: Mapping of results onto different mesh

Post by Sita Drost » Mon Feb 04, 2019 8:52 am

Sorry, just a follow-up question: if I use this Resample with Dataset filter in ParaView to map pressure/velocity results from one mesh onto another, is there any way to convert the results back into a restart-file for SimVascular? I'd like to use something like this to be able to use the end-result of one simulation as a starting point for the next (slightly altered) simulation. For example, a healthy vessel and a stenosed one. Would that be possible?

Thanks!
Sita

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

Re: Mapping of results onto different mesh

Post by David Parker » Mon Feb 04, 2019 10:49 am

Hi Sita,

You can write the pressure values to a VTK .vtu file and read them in as initial values by adding a read_pressure_vtu command to the .svpre file written to your project's Simulations directory. The .svpre file is written when you select the Create Data Files for Simulation button in the Simulations plugin.

See http://simvascular.github.io/docsFlowSo ... eatingdata.

Cheers,
Dave

User avatar
Sita Drost
Posts: 18
Joined: Thu Jan 24, 2019 5:42 am

Re: Mapping of results onto different mesh

Post by Sita Drost » Tue Feb 05, 2019 4:19 am

Awesome, thanks a lot, I'll try that!

POST REPLY