Page 1 of 1
Mapping of results onto different mesh
Posted: Thu Jan 31, 2019 5:05 am
by sitadrost
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
Re: Mapping of results onto different mesh
Posted: Thu Jan 31, 2019 5:04 pm
by davep
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
Re: Mapping of results onto different mesh
Posted: Fri Feb 01, 2019 12:12 am
by sitadrost
Hi Dave,
Great, thanks, I'll give that a try!
Sita
Re: Mapping of results onto different mesh
Posted: Mon Feb 04, 2019 8:52 am
by sitadrost
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
Re: Mapping of results onto different mesh
Posted: Mon Feb 04, 2019 10:49 am
by davep
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
Re: Mapping of results onto different mesh
Posted: Tue Feb 05, 2019 4:19 am
by sitadrost
Awesome, thanks a lot, I'll try that!