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

# vtk_to_fields class

**Namespace:** [Ans.DataProcessing.operators.serialization](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/serialization)

## Summary

Write a field based on a vtk file.

available inputs: `field_name` (string) (optional), `streams` (StreamsContainer) (optional), `data_sources` (DataSources)

available outputs: `fields_container` (FieldsContainer)

## Example

```python theme={null}
op = vtk_to_fields()

op = vtk_to_fields(field_name=my_field_name,streams=my_streams,data_sources=my_data_sources)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.serialization` |
| Assembly | `meshOperatorsCore_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### field\_name

name of the field in the vtk file

**Type:** *LinkableInput*

### streams

**Type:** *LinkableInput*

### data\_sources

**Type:** *LinkableInput*

## Outputs

### fields\_container

fields\_container

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
vtk_to_fields()
```

#### Constructor

```python theme={null}
vtk_to_fields(field_name, streams, data_sources, config)
```

**Parameters:**

* `field_name` (*object*)
* `streams` (*object*)
* `data_sources` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
vtk_to_fields(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
