splinepy.io.mfem#

Supports single nurbs export for mfem.

Currently hardcoded for 2D-single-patch-splines.

Functions

dof_mapping(spline)

MFEM stores vertices in a special order.

export(fname, nurbs[, precision])

Exports current nurbs in mfem format.

export_cartesian(fname, spline_list[, tolerance])

Export list of bezier splines in mfem export.

load(fname)

Reads mfem spline and returns a spline.

read_solution(fname, reference_nurbs)

Given solution and reference_nurbs, returns solution-nurbs-dict.