pymor.discretizers.builtin.grids.io

Module Contents

Functions

to_meshio

Transform given Grid and VectorArray data into a sequence of meshio.Mesh objects

pymor.discretizers.builtin.grids.io.to_meshio(grid, data, codim=2)[source]

Transform given Grid and VectorArray data into a sequence of meshio.Mesh objects

Parameters

grid

A Grid with triangular or rectilinear reference element.

data

VectorArray with either cell (ie one datapoint per codim 0 entity) or vertex (ie one datapoint per codim 2 entity) data in each array element.

codim

the codimension associated with the data

Returns

list of meshio.Mesh objects