pyvista.FRDReader

pyvista.FRDReader#

class FRDReader(*args, **kwargs)[source]#

Reader for CalculiX FRD ASCII result files (.frd).

Supported element types include: HE8, PE6, PE15, TE4, HE20, TE10, TR3, TR6, QU4, QU8, BE2, BE3.

For datasets containing 6-component tensors (e.g. STRESS or STRAIN), this reader automatically pre-computes and appends the following derived scalar arrays to the output mesh: - <NAME>_Mises: equivalent von Mises magnitude. - <NAME>_sgMises: signed von Mises magnitude. - <NAME>_PS1, _PS2, _PS3: principal components.

Added in version 0.48.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_frd(load=False)
>>> Path(filename).name
'mesh.frd'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-FRDReader-68187eb81adc6465_00_00.png

Methods#

FRDReader.set_active_time_point(time_point)

Set the active time point.

FRDReader.set_active_time_value(time_value)

Set the active time value.

FRDReader.time_point_value(time_point)

Return the time value associated with the given time point.

Attributes#

FRDReader.active_time_value

Return the active time value.

FRDReader.number_time_points

Return the total number of time points.

FRDReader.time_values

Return the list of available time values.