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

# serialization:vtk export

**Version: 0.0.0**

## Description

Write the input field and fields container into a given vtk path

## 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) |
| - | - | - | - |
| **-1** | [export\_type](#input_-1) | | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **0** | [file\_path](#input_0) | Required | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **1** | [mesh](#input_1) | | [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#meshed-region) |
| **2** | [fields](#input_2) | Required | [`fields_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#fields-container), [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#field) |

### export\_type (Pin -1)

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

Either export volume elements in the mesh with their fields with value 0 or faces elements in the mesh with their fields with value 1 (default is 0)

### file\_path (Pin 0)

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

path with vtk extension were the export occurs

### mesh (Pin 1)

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

necessary if the first field or fields container don't have a mesh in their support

### fields (Pin 2)

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

fields 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](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**: serialization

**Plugin**: vtk

**Scripting name**: vtk\_export

**Full name**: serialization.vtk\_export

**Internal name**: vtk\_export

**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("vtk_export"); // operator instantiation
  op.connect(-1, my_export_type);
  op.connect(0, my_file_path);
  op.connect(1, my_mesh);
  op.connect(2, my_fields);
  ```
</details>

<details>
  <summary>CPython</summary>

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

  op = dpf.operators.serialization.vtk_export() # operator instantiation
  op.inputs.export_type.connect(my_export_type)
  op.inputs.file_path.connect(my_file_path)
  op.inputs.mesh.connect(my_mesh)
  op.inputs.fields1.connect(my_fields1)
  op.inputs.fields2.connect(my_fields2)
  ```
</details>

<details>
  <summary>IPython</summary>

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

  op = dpf.operators.serialization.vtk_export() # operator instantiation
  op.inputs.export_type.Connect(my_export_type)
  op.inputs.file_path.Connect(my_file_path)
  op.inputs.mesh.Connect(my_mesh)
  op.inputs.fields.Connect(my_fields)
  ```
</details>

## Changelog

* Version 0.0.0: Initial release.
