Skip to main content

DPF Mechanical 2026 R1

unit_convert_fc class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.math

Summary

Converts an input fields container of a given unit to another unit.

available inputs: fields_container (FieldsContainer), unit_name (string)

available outputs: fields_container (FieldsContainer)

Example

op = unit_convert_fc()

op = unit_convert_fc(fields_container=my_fields_container,unit_name=my_unit_name)

Class Information

Property Value
Namespace Ans.DataProcessing.operators.math
Assembly Ans_Dpf_Native_dll_cs
Base Class Ans.DataProcessing.internal_objects.BaseOperator

Inputs

fields_container

Type: LinkableInput

unit_name

unit as a string, ex 'm' for meter, 'Pa' for pascal,...

Type: LinkableInput

Outputs

fields_container

FieldsContainer with converted units (inplace operation)

Type: LinkableOutput

Constructors

Constructor

unit_convert_fc()

Constructor

unit_convert_fc(fields_container, unit_name, config)

Parameters:

  • fields_container (object)
  • unit_name (object)
  • config (OperatorConfig)

Constructor

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