Skip to content

VTKHDFRecorder

VTKHDFRecorder

VTKHDFRecorder(**kwargs)

Bases: Recorder

Whole-model recorder exporting geometry and results in VTK HDF format.

VTKHDFRecorder records the entire model mesh geometry, elements, and selected response field variables (such as displacement, stress, or strain) into a binary .h5 file format, allowing high-performance 3D visualization in ParaView.

Tcl form

recorder vtkhdf <fileBaseName> [options] <respTypes...>

Example
from femora.core.model import Model

model = Model()
# Create a VTKHDF whole-model recorder
recorder = model.recorder.vtkhdf(
    file_base_name="results.h5",
    resp_types=["disp", "stress3D6"],
)

Create a VTK HDF recorder.

Parameters:

Name Type Description Default
**kwargs

Key-value parameters: file_base_name: Base name of the file to which output is sent (required). resp_types: List of strings indicating response types to record (required). delta_t: Optional time interval for recording. r_tol_dt: Optional relative tolerance for time step matching. region: Optional region tag, name, or RegionBase instance used to restrict VTKHDF output to one region. If not specified, the entire model will be recorded. group: Optional ElementGroup or element group name used to restrict VTKHDF output.

{}

Raises:

Type Description
ValueError

If file_base_name or resp_types are not specified, or if invalid response types are supplied.