magpack.io.save_vtk#

save_vtk(filename, scalars=None, vectors=None, colors=None)#

Saves data into a VTK file.

Parameters:
filenamestr

Name of output file.

scalarsdict (optional)

Dictionary of scalar fields.

vectorsdict (optional)

Dictionary of vector data. Vectors should be provided in the shape (3, …).

colorsdict (optional)

Dictionary of color data. Colors should be provided in the shape (…, 3).