First time here? Checkout the FAQ!
x
0 votes
by (180 points)
Hello

I have a question, is it possible to visualize the simulation of electrophysiology without using the visual interface of the meshalyzer?

I want to create a pipeline that will automatically run a wave propagation calculation and then output the result as a series of images. This can easily be done in the visual interface of the meshalyzer, but I would like to do without this intermediate step. Perhaps this can be implemented using some python library, but I couldn't find out how.

Thank you in advance!

1 Answer

0 votes
by (19.2k points)

meshalyzer supports offscreen rendering, which is described in chapter 8 of its manual:

https://opencarp.org/documentation/meshalyzer-manual

Together with interactively prepared state files, this could be an option for you.

Alternatively, you can also convert the output to VTK and use ParaView's offscreen rendering options.

by (180 points)
Thank you so much, after some efforts everything worked out!
by (610 points)
Hi Axel,

Can you please elaborate how I can convert the output to vtk format or get the output immediately in the vtk format? I cannot find any tutorial on this online.

Best regards,

Marie
by (19.2k points)

Meshtool is a good option for this: https://bitbucket.org/aneic/meshtool/src/master/

meshtool convert 

by (610 points)
I managed to get the mesh in .vtk format for visualization in Paraview. However, how can I visualize the .igb data file on this mesh using Paraview? Would there be a tutorial on this?
by (19.2k points)

There is one being developed as an outcome of last month's user meeting:

https://git.opencarp.org/openCARP/experiments/-/merge_requests/53/diffs

Not rendered nicely on the web page yet but I hope it's useful already.

by (610 points)

That worked, thank you Axel!

In the meantime I also found the class carputils.carpio.igb.IGBFile with which an .igb file can be loaded in Python. The simulation data is then in the IGBFile.data() property, and after resizing using

IGBFile.data().reshape(IGBFile.header()['t'], IGBFile.header()['x'], IGBFile.header()['y'], IGBFile.header()['z'])

the data can be visualized using matplotlib. I hope this might be useful additional information to people with a similar question.

Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...