write_fmx module

Python wrapper for native FMX-writer library.

write_fmx.read(fnam, ityp, data)[source]

This function reads a rectangular matrix from a binary FMX-file for FEDEM.

Parameters:
fnamstr

Absolute path to the fmx-file to be read

itypint

Type of matrix to read, 1=stiffness matrix, 2=mass matrix, 3=gravity force vectors

datalist of float

Matrix content, column-wise storage

Returns:
int

Zero on success, otherwise negative

write_fmx.write(fnam, ityp, data)[source]

This function writes a rectangular matrix as a binary FMX-file for FEDEM.

Parameters:
fnamstr

Absolute path to the fmx-file to be written

itypint

Type of matrix to write, 1=stiffness matrix, 2=mass matrix, 3=gravity force vectors

datalist of float

Matrix content, column-wise storage

Returns:
int

Zero on success, otherwise negative