> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# result:migrate to h5dpf

**Version: 0.0.0**

## Description

Read mesh properties from the results files contained in the streams or data sources and make those properties available through a mesh selection manager in output.User can input a GenericDataContainer that will map an item to a result name. Example of Map: \{\{ default: wf1}, \{EUL: wf2}, \{ENG\_SE: wf3}}.

## 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) |
| - | - | - | - |
| **-5** | [dataset\_size\_compression\_threshold](#input_-5) | | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container) |
| **-2** | [h5\_native\_compression](#input_-2) | | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), [`abstract_data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-tree), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container) |
| **-1** | [export\_floats](#input_-1) | | [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container) |
| **0** | [filename](#input_0) | Required | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **1** | [comma\_separated\_list\_of\_results](#input_1) | | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **2** | [all\_time\_sets](#input_2) | | [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **3** | [streams\_container](#input_3) | | [`streams_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#streams-container) |
| **4** | [data\_sources](#input_4) | | [`data_sources`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-sources) |
| **6** | [compression\_workflow](#input_6) | | [`workflow`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#workflow), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container) |
| **7** | [filtering\_workflow](#input_7) | | [`workflow`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#workflow), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container) |

### dataset\_size\_compression\_threshold (Pin -5)

* **Required:** No
* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container)

Integer value that defines the minimum dataset size (in bytes) to use h5 native compression Applicable for arrays of floats, doubles and integers.

### h5\_native\_compression (Pin -2)

* **Required:** No
* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), [`abstract_data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-tree), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container)

Integer value / DataTree that defines the h5 native compression used For Integer Input \{0: No Compression (default); 1-9: GZIP Compression : 9 provides maximum compression but at the slowest speed.}For DataTree Input \{type: None / GZIP / ZSTD; level: GZIP (1-9) / ZSTD (1-20); num\_threads: ZSTD (>0)}

### export\_floats (Pin -1)

* **Required:** No
* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container)

Converts double to float to reduce file size (default is true).If False, nodal results are exported as double precision and elemental results as single precision.

### filename (Pin 0)

* **Required:** Yes
* **Expected type(s):** [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

filename of the migrated file

### comma\_separated\_list\_of\_results (Pin 1)

* **Required:** No
* **Expected type(s):** [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

list of results (source operator names) separated by semicolons that will be stored. (Example: U;S;EPEL). If empty, all available results will be converted.

### all\_time\_sets (Pin 2)

* **Required:** No
* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Deprecated. Please use filtering workflows instead to select time scoping. Default is false.

### streams\_container (Pin 3)

* **Required:** No
* **Expected type(s):** [`streams_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#streams-container)

streams (result file container) (optional)

### data\_sources (Pin 4)

* **Required:** No
* **Expected type(s):** [`data_sources`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-sources)

if the stream is null then we need to get the file path from the data sources

### compression\_workflow (Pin 6)

* **Required:** No
* **Expected type(s):** [`workflow`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#workflow), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container)

BETA Option: Applies input compression workflow.

### filtering\_workflow (Pin 7)

* **Required:** No
* **Expected type(s):** [`workflow`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#workflow), [`generic_data_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#generic-data-container)

Applies input filtering workflow.

## 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) |
| - | - | - |
| **0** | [migrated\_file](#output_0) | [`data_sources`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-sources) |

### migrated\_file (Pin 0)

* **Expected type(s):** [`data_sources`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-sources)

## Configurations

This operator supports [configuration options](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/operator-configurations.md) that modify its behavior.

### [mutex](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/operator-configurations.md#mutex)

* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)
* **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**: result

**Plugin**: core

**Scripting name**: migrate\_to\_h5dpf

**Full name**: result.migrate\_to\_h5dpf

**Internal name**: hdf5::h5dpf::migrate\_file

**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.

<details>
  <summary>C++</summary>

  ```cpp theme={null}
  #include "dpf_api.h"

  ansys::dpf::Operator op("hdf5::h5dpf::migrate_file"); // operator instantiation
  op.connect(-5, my_dataset_size_compression_threshold);
  op.connect(-2, my_h5_native_compression);
  op.connect(-1, my_export_floats);
  op.connect(0, my_filename);
  op.connect(1, my_comma_separated_list_of_results);
  op.connect(2, my_all_time_sets);
  op.connect(3, my_streams_container);
  op.connect(4, my_data_sources);
  op.connect(6, my_compression_workflow);
  op.connect(7, my_filtering_workflow);
  ansys::dpf::DataSources my_migrated_file = op.getOutput<ansys::dpf::DataSources>(0);
  ```
</details>

<details>
  <summary>CPython</summary>

  ```python theme={null}
  import ansys.dpf.core as dpf

  op = dpf.operators.result.migrate_to_h5dpf() # operator instantiation
  op.inputs.dataset_size_compression_threshold.connect(my_dataset_size_compression_threshold)
  op.inputs.h5_native_compression.connect(my_h5_native_compression)
  op.inputs.export_floats.connect(my_export_floats)
  op.inputs.filename.connect(my_filename)
  op.inputs.comma_separated_list_of_results.connect(my_comma_separated_list_of_results)
  op.inputs.all_time_sets.connect(my_all_time_sets)
  op.inputs.streams_container.connect(my_streams_container)
  op.inputs.data_sources.connect(my_data_sources)
  op.inputs.compression_workflow.connect(my_compression_workflow)
  op.inputs.filtering_workflow.connect(my_filtering_workflow)
  my_migrated_file = op.outputs.migrated_file()
  ```
</details>

<details>
  <summary>IPython</summary>

  ```python theme={null}
  import mech_dpf
  import Ans.DataProcessing as dpf

  op = dpf.operators.result.migrate_to_h5dpf() # operator instantiation
  op.inputs.dataset_size_compression_threshold.Connect(my_dataset_size_compression_threshold)
  op.inputs.h5_native_compression.Connect(my_h5_native_compression)
  op.inputs.export_floats.Connect(my_export_floats)
  op.inputs.filename.Connect(my_filename)
  op.inputs.comma_separated_list_of_results.Connect(my_comma_separated_list_of_results)
  op.inputs.all_time_sets.Connect(my_all_time_sets)
  op.inputs.streams_container.Connect(my_streams_container)
  op.inputs.data_sources.Connect(my_data_sources)
  op.inputs.compression_workflow.Connect(my_compression_workflow)
  op.inputs.filtering_workflow.Connect(my_filtering_workflow)
  my_migrated_file = op.outputs.migrated_file.GetData()
  ```
</details>

## Changelog

* Version 0.0.0: Initial release.
