Skip to main content

math:unit convert

Version: 0.0.0

Description​

Converts an input field/fields container or mesh of a given unit to another unit.

Inputs​

InputNameExpected type(s)Description
Pin 0
Required
entity_to_convertfield, fields_container, abstract_meshed_region, meshes_container
Pin 1
Required
unit_namestring, int32, fieldunit 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.

Outputs​

OutputNameExpected type(s)Description
Pin 0converted_entityfield, fields_container, abstract_meshed_region, meshes_containerthe output entity is the same as the input (inplace operator)

Configurations​

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
permissiveboolfalseIf this option is set to true, warning checks (like unit or data sizes) won't be done.

Scripting​

Category: math

Plugin: core

Scripting name: None

Full name: None

Internal name: unit_convert

License: None

Changelog​

  • Version 0.0.0: Initial release.