serialization:serialize to hdf5
Last update: 31.07.2026Version: 0.0.0
Description
This operator is deprecated: use 'hdf5dpf_generate_result_file' instead. Serialize the inputs in an hdf5 format.
Inputs
This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.
| Pin number | Name | Status | Expected type(s) |
|---|---|---|---|
| 0 | file_path | Required | string |
| 1 | export_floats | bool |
|
| 2 | export_flat_vectors | bool |
|
| 3 | data | Required |
file_path (Pin 0)
- Required: Yes
- Expected type(s):
string
output file path with .h5 extension
export_floats (Pin 1)
- Required: No
- Expected type(s):
bool
converts double to float to reduce file size (default is true)
export_flat_vectors (Pin 2)
- Required: No
- Expected type(s):
bool
if true, vectors and matrices data are exported flat (x1,y1,z1,x2,y2,z2..) (default is false)
data (Pin 3)
- Required: Yes
- Expected type(s):
only the data set explicitly to export is exported
Outputs
This table lists the output pins for this operator. Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.
| Pin number | Name | Expected type(s) |
|---|
Configurations
This operator supports configuration options that modify its behavior.
mutex
- Expected type(s):
bool - Default value: false
If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
Scripting
This operator can be accessed through scripting interfaces using these identifiers.
Category: serialization
Plugin: core
Scripting name: serialize_to_hdf5
Full name: serialization.serialize_to_hdf5
Internal name: serialize_to_hdf5
License: None
Examples
These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.
C++
#include "dpf_api.h"
ansys::dpf::Operator op("serialize_to_hdf5"); // operator instantiation
op.connect(0, my_file_path);
op.connect(1, my_export_floats);
op.connect(2, my_export_flat_vectors);
op.connect(3, my_data);
CPython
import ansys.dpf.core as dpf
op = dpf.operators.serialization.serialize_to_hdf5() # operator instantiation
op.inputs.file_path.connect(my_file_path)
op.inputs.export_floats.connect(my_export_floats)
op.inputs.export_flat_vectors.connect(my_export_flat_vectors)
op.inputs.data1.connect(my_data1)
op.inputs.data2.connect(my_data2)
IPython
import mech_dpf
import Ans.DataProcessing as dpf
op = dpf.operators.serialization.serialize_to_hdf5() # operator instantiation
op.inputs.file_path.Connect(my_file_path)
op.inputs.export_floats.Connect(my_export_floats)
op.inputs.export_flat_vectors.Connect(my_export_flat_vectors)
op.inputs.data.Connect(my_data)
Changelog
- Version 0.0.0: Initial release.