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
Mapping of results onto different mesh
- David Parker
- Posts: 1756
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Mapping of results onto different mesh
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
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
- Sita Drost
- Posts: 18
- Joined: Thu Jan 24, 2019 5:42 am
Re: Mapping of results onto different mesh
Hi Dave,
Great, thanks, I'll give that a try!
Sita
Great, thanks, I'll give that a try!
Sita
- Sita Drost
- Posts: 18
- Joined: Thu Jan 24, 2019 5:42 am
Re: Mapping of results onto different mesh
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
Thanks!
Sita
- David Parker
- Posts: 1756
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Mapping of results onto different mesh
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
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
- Sita Drost
- Posts: 18
- Joined: Thu Jan 24, 2019 5:42 am
Re: Mapping of results onto different mesh
Awesome, thanks a lot, I'll try that!