Skip to main content

DPF Mechanical 2026 R1

vtk_to_fields class

Last update: 18.06.2026

Namespace: 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

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

vtk_to_fields()

Constructor

vtk_to_fields(field_name, streams, data_sources, config)

Parameters:

  • field_name (object)
  • streams (object)
  • data_sources (object)
  • config (OperatorConfig)

Constructor

vtk_to_fields(config)

Parameters:

  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

# Get or set the property
value = obj.inputs
obj.inputs = new_value

outputs

Type: OutputSpec

# Get or set the property
value = obj.outputs
obj.outputs = new_value

defaultConfig

Type: Config

# Get the property (read-only)
value = obj.defaultConfig

Connect with Ansys