pyvista-frd-reader#

Read and write CalculiX .frd result files as pyvista.UnstructuredGrid objects, backed by a C++ core behind a C ABI.

Get started

Install it, read a file, plot the result.

Getting started
Examples

A gallery, every entry run against real solver output.

Examples
API reference

The Python API and the C ABI underneath it.

API reference
import pyvista_frd

mesh = pyvista_frd.read("result.frd")
mesh.plot(scalars="STRESS_Mises")
_images/sphx_glr_plot_c_time_steps_001.png

The first four modes of a cantilever, read from the four steps CalculiX wrote for them. Step through a multi-step file#

What it is#

CalculiX writes its results to FRD. PyVista has read the ASCII half of that format since pyvista#8255; this package reimplements the whole of it in C++ behind a plain C ABI, so the same answers are available to a caller who is not writing Python, and adds a writer.

All four encodings

Both ASCII widths and both binary ones. Binary FRD is what CalculiX writes from *REFINE MESH and from a DOUBLE output card, and an ASCII-only reader returns an empty mesh for those files without raising anything.

A writer graded on CalculiX’s bytes

A document read and emitted again is the input byte for byte, over 1,111 external files. CalculiX itself reads what this package writes.

Agreement, measured

1,766 FRD files nobody here wrote, compared array by array against PyVista’s reader. Zero divergences.

ctypes, not an extension module

One wheel per platform serves every supported interpreter. The core is also usable from C++, or from WebAssembly, with no Python involved.