Skip to main content
Namespace: Ans.DataProcessing.operators.math

Summary

Converts an input field/fields container or mesh of a given unit to another unit. available inputs: entity_to_convert (Field, FieldsContainer, MeshedRegion, MeshesContainer), unit_name (string, Int32, Field) available outputs: converted_entity (Field ,FieldsContainer ,MeshedRegion ,MeshesContainer)

Example

Class Information

Inputs

entity_to_convert

Type: LinkableInput

unit_name

unit as a string, ex ‘m’ for meter, ‘Pa’ for pascal,… Or ansys unit system’s ID, or a field from which expected unit will be extracted. Type: LinkableInput

Outputs

converted_entity

the output entity is the same as the input (inplace operator) Type: LinkableOutput

Constructors

Constructor

Constructor

Parameters:
  • entity_to_convert (object)
  • unit_name (object)
  • config (OperatorConfig)

Constructor

Parameters:
  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

outputs

Type: OutputSpec

defaultConfig

Type: Config