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: Requested fields (required). Nodal fields are disp, vel, accel. Element fields are force2D, force3D, localForce2D, localForce3D, stress2D3, strain2D3, stress3D6, strain3D6. Availability depends on the OpenSees recorder build and each element's implemented responses. Inspect the output datasets to confirm availability; some older binaries silently ignore force keywords. Continuum stress/strain fields are not substitutes for beam-fiber recorders. 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.