morphogen.io.export

One entry point for every export: export() writes an object to the format of the suffix of its path, choosing the writer from the object and the suffix.

object

suffixes

voxel image

.vti .vtk .xdmf .mhd .npz .npy .tif (data); .png .svg .pdf .tex (sections); .csv .txt .xlsx (voxels); .mp4 .gif (kind: “sections” along axis, “orthoslices”, “turntable”)

mesh (tetrahedra,

.vtu .inp .msh .mesh .xdmf .stl and meshio’s (data); .png (a view);

voxels, surface)

.csv .txt .xlsx (nodes and elements); .mp4 .gif (kind: “turntable”, “sweep” along axis, “field” with displacement; field colours them)

microstructure

.json .csv .geo; the others voxelized (shape, by default 64, or voxel_size)

band structure

.csv .txt .xlsx (the bands); figure suffixes (the plot)

bifurcation analysis

.csv .txt .xlsx (irreps and patterns); .vtu (patterns of a mesh); figure suffixes with frame (patterns of a frame)

loading path result

.csv .txt .xlsx (its curve)

frame of beams

.mp4 .gif with pattern (its dofs: a pattern oscillating), in the plane or in space

matplotlib figure

.png .tif .jpg .svg .pdf .eps .tex

frames (RGB arrays)

.mp4 .gif or a folder

table

.csv .txt .tsv .xlsx (records, columns, an array)

Videos take fps, mode (“once”, “loop”, “bounce”) and repeat; 3D views cmap, clim, size; field animations magnification, wave and section.

morphogen.io.export.export(obj, path, **options) → Path | list[Path][source]

Write obj to path in the format of its suffix (see the module); the options go to the writer.