Page 1 of 1

Create svpre and inp files

Posted: Tue Sep 29, 2020 9:45 am
by smatsumoto
Hi,

I would like to run a batch of simulations through the Python API. Is there a way I can generate the .svpre and .inp files needed for each project from a set of BCs specified through something like a JSON file?

This is assuming that each project folder has already been created and all the meshes have been generated for each geometry. I am interested because I would like to experiment with various BCs (resistance, RCR) but doing that through the GUI takes a lot of time.

Thanks,
Shion

Re: Create svpre and inp files

Posted: Tue Sep 29, 2020 3:25 pm
by davep
Hi Shion,

I am planning on adding a simulation module to the Python API that would allow you to do this but it will probably be several weeks before I have the time to do this.

If you just want to change BC values then it should not be difficult to create the .svpre and .inp files directly, the formats for those files are documented in http://simvascular.github.io/docsFlowSolver.html.

Cheers,
Dave