Skip to main content

DPF Mechanical 2026 R1

vtk_export class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.serialization

Summary

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

available inputs: export_type (Int32) (optional), file_path (string), mesh (MeshedRegion) (optional), fields1 (FieldsContainer, Field), fields2 (FieldsContainer, Field)

available outputs:

Example

op = vtk_export()

op = vtk_export(export_type=my_export_type,file_path=my_file_path,mesh=my_mesh,fields1=my_fields1,fields2=my_fields2)

Class Information

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

Inputs

export_type

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)

Type: LinkableInput

file_path

path with vtk extension were the export occurs

Type: LinkableInput

mesh

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

Type: LinkableInput

fields1

fields exported

Type: LinkableInput

fields2

fields exported

Type: LinkableInput

Outputs

Constructors

Constructor

vtk_export()

Constructor

vtk_export(export_type, file_path, mesh, fields1, fields2, config)

Parameters:

  • export_type (object)
  • file_path (object)
  • mesh (object)
  • fields1 (object)
  • fields2 (object)
  • config (OperatorConfig)

Constructor

vtk_export(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